Running a remote Batch File

G

Guest

Hello

OS: Windows XP
App: Access 2002 SP3

I want to run a batch file placed on another Networked PC. I have tried
'Shell' but I can not get it to run:

Line 1: strPath = "\\LNWSVISBILL06\c$\Data\Data.bat"
Line 2: Shell strPath

The Batch file extracts details of documents in a Temp Folder and places it
into a text file: <dir c:\temp\*.doc /OD > c:\Data\Data.txt>

Any assistance with this problem will be much appreciated.

Regards
Mike
 
S

Stefan Hoffmann

hi Mike,

Mike said:
I want to run a batch file placed on another Networked PC. I have tried
'Shell' but I can not get it to run:
Any error messages?
Line 1: strPath = "\\LNWSVISBILL06\c$\Data\Data.bat"
Line 2: Shell strPath
This should work. Have you checked your credentials? Is the batch
share-aware?

Try running it from the command prompt (cmd.exe).


mfG
--> stefan <--
 
G

Guest

Stefan

No error messages. I'll check the security permissions tomorrow.

When I map a drive to the batch file and double click it does not run.

Regards
Mike
 
S

Stefan Hoffmann

hi Mike,

Mike said:
No error messages. I'll check the security permissions tomorrow.
When I map a drive to the batch file and double click it does not run.
This sounds like a buggy batch.

mfG
--> stefan <--
 

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