Friday, September 3, 2010

Running Batch file at Remote System

Step1 :- Map the Drive.

Step2 :- Open Command prompt here x is the mapped Drive.

C:\Documents and Settings\odughatp.GEOMETRIC>net use x:
Local name X:
Remote name \\pun-ebs1211\INVENTORY_DUMPS
Resource type Disk
Status OK
# Opens 0
# Connections 1
The command completed successfully.

C:\Documents and Settings\odughatp.GEOMETRIC>x:

X:\>cd test

X:\test>test.bat

This will execute the command on server.

No comments:

Post a Comment