Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending a to the C Shell

Status
Not open for further replies.

FJAY

Programmer
Apr 23, 2003
106
CA
Good Afternoon - I have a opened a C shell (Posix.exe) from my VB program and I need to send a some commands to the prompt of C Shell from my VB program.

Note:
I opened the C Shell from my Vb program doing the following:

Dim retVal
retval = (Shell("C:\WINDOWS\SYSTEM32\POSIX.EXE /u /c /bin/csh -l", vbNormalFocus)
 
Hey,

Maybe try to shell a batch file that contains the commands you want to run. This goes bake to the DOS days. Basically create a text file with a .bat extension, inside the batch file you can do anything you like. Batch programming is very powerful and can include not just command to execute, but can include variable and logic.

good luck,
KCI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top