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 biv343 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.

Sam74

Programmer
Aug 7, 2001
1
AU
I am having problems using the Shell command to run winword.exe with a filename as an argument. If the filename has spaces in it Word cannot find it. Is there a way around this? I have tried using quotes around the filename with no success.

eg. RetVal = Shell("winword.exe c:\My Documents\test.doc",1)
 
Shell("winword.exe ""c:\My Documents\test.doc""",1)

Aivars
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top