Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xp_cmdshell - batch file

Status
Not open for further replies.

TheJFM

Programmer
Jun 13, 2002
65
GB
Hi

I need run a batch file located on the E: drive of the server on which SQL server is installed.


I have tried xp_cmdshell 'E:\myfile.bat'

However the ouput indicates that the system is searching for the file in C:\WINNT\system32 and not in the directory I specified.

Any ideas?
 
Does the same command work from the command line? Any mapped network drives on the server?
 
It works from the command line with no problem

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top