NewfieGolfer
Technical User
Hello,
I'm trying to run a batch file located on a network drive using the shell function in Access 2000. I get the commmand prompt window to appear but in the window it says:
"Your Data Access Path - C:\Docume~\User\MyDocu~ - is Invalid Press any key..."
Is this error occuring because I'm trying to access a network file? Here's my code i'm using
file = "M:\example\program batchfile"
I = Shell(file, 1)
If I type the above file in the run box in the start menu I can get it to work. But not when I'm trying to do it with the shell function.
Can someone help?
Thanks,
NG
I'm trying to run a batch file located on a network drive using the shell function in Access 2000. I get the commmand prompt window to appear but in the window it says:
"Your Data Access Path - C:\Docume~\User\MyDocu~ - is Invalid Press any key..."
Is this error occuring because I'm trying to access a network file? Here's my code i'm using
file = "M:\example\program batchfile"
I = Shell(file, 1)
If I type the above file in the run box in the start menu I can get it to work. But not when I'm trying to do it with the shell function.
Can someone help?
Thanks,
NG