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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shell command

Status
Not open for further replies.

CooterBrown

IS-IT--Management
Aug 17, 2001
125
US
Hi.. How do I get this command to work:

Sh.Run "cmd /C ""C:\documents and settings\ThisUser\desktop\TESTMACRO\CallQuery.bat""", 1, True

after replacing the path C:\documents... with the variable

gstrAppPath = Workbooks("ThisBook").Path

Thanks..

Coot
 
Sh.Run "cmd /C """ & gstrAppPath & "\CallQuery.bat""", 1, True

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks.. It get confusing for a rookie when all them quotes are involved... I tried everything..but that..:? )

Worked perfectly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top