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!

"Shell" Shocked - Multiple command line entries

Status
Not open for further replies.

DBSSP

Programmer
Apr 1, 2002
327
US
I'm caling a command promt with a command to execute through an Access Module. I need to enter multiple commands to the same prompt shell. Currently, i have figured out how to do one. Here is my example code:
**********************************************************
strCmdLine = "path to cmd.exe /K command for prompt here"

Call Shell(strCmdLine, vbNormalFocus)
**********************************************************

Thanks for any help you guys provide.

Jay [infinity]
"If the words up and down were reversed, would you trip and fall or trip and fly?"
 
Actually, I figured it out....I'll just use one shell and feed "SendKeys" strings to it.

Jay [infinity]
"If the words up and down were reversed, would you trip and fall or trip and fly?"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top