Quantcast
Channel: Questions in topic: "sql-agent"
Viewing all articles
Browse latest Browse all 80

Why can I use the cmd.exe on a vbs file but not a bat file?

$
0
0
I am using SQL 2008 R2 on Server A. In a SQL job, I set the following command to execute on a different server. **cmd.exe /c "\\\\mchsbiess01p\\Scripts\\Test\\TestEmailUtility.vbs"** with success. when I use **cmd.exe /c "\\\\mchsbiess01p\\Scripts\\Bat\\Planning\\RunPullLawsonLoad.bat"** I get the error "Executed as user: MCHSNT\\SPSQLS1. C:\\Windows\\system32>D: D:\\>D:\\Oracle\\Middleware\\user_projects\\epmsystemEss01P\\EssbaseServer\\essbaseserver1\\bin\\startMaxL.bat -D D:\\Scripts\\Maxl\\Planning\\PullLawsonLoad.mxls 581060833,1161870527 The system cannot find the path specified. Process Exit Code 1. The step failed." I have verified the path on server mchsbiess01p, but it seems the command is executing on the sql server A, not the specified server mchsbiess01p. Can someone help? thanks, Maggie

Viewing all articles
Browse latest Browse all 80

Trending Articles