Shell command

B

Bill

Why, when I type:

AppID = Shell("c:\program
files\accessories\backup\msbackup.exe", 1)

then try to run the command, do I get the error message
that "the file cannot be found"? If I copy and paste the
command between the quotation marks above into the
Windows "Start\Run" dialogue box MSBackup.exe opens as it
should. Is this specific to MSBackup? Is VBA prohibitted
from opening that app?
 
C

Clint McGee

What application are you executing this from within?
What OS are you using?
It could be the space in the path name...try making a
test.bat file in the "C:\program files\" folder and see if
you can Shell run that.

Clint
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top