Running a remote Batch File

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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 <--
 
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
 
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 <--
 
Back
Top