LuckyDuck528
Programmer
I am calling/running a .cmd file from within my .vbs but everytime I run the .cmd file I run in to a problem. I'm not sure if it's b/c we're using polyserve or just becasue I have a space in the name of the file path I am trying to access but...
Here is code I am calling my .cmd file from w/ in my .vbs file: (it works fine)
The code inside of the .cmd file is below. It is one long line.
For those who may not know what PolyServer is: It's software that lets you have multiple servers that all share one Data Repository (D:\) and the command I am trying to run can be run on any of the servers (works great from the cmd prompt) and will tell me the names of all the servers currently running in the webfarm. That is the information I need for the rest of the program to execute.
I know that my problem might be the space between "Program Files" but I'm not sure how to get around that. I have tried putting the whole cmd line in a string and doing ObjWShell.Run string, 1, True (stalls out) and I've tried putting the full string in instead of the strString and adding ' ' single quotes around it.
Any suggestions would be appreciated!
Thanks! Have a good afternoon!
Here is code I am calling my .cmd file from w/ in my .vbs file: (it works fine)
Code:
objWShell.Run "D:\data\temp_files\deploy\polyserve\WebFarm.txt", 1, True
The code inside of the .cmd file is below. It is one long line.
Code:
cmd C:\Program Files\Polyserve\MatrixServer\bin\mx server status > D:\data\temp_files\deploy\polyserve\webfarm.txt
w/ Error:
No error but the cmd window opens and stalls out.
Or
rmcd \\Server1\c$Program Files.... > D......txt
w/ Error:
Error - Failed to connect to <\\jhws17\c$\program>, Error = 3
For those who may not know what PolyServer is: It's software that lets you have multiple servers that all share one Data Repository (D:\) and the command I am trying to run can be run on any of the servers (works great from the cmd prompt) and will tell me the names of all the servers currently running in the webfarm. That is the information I need for the rest of the program to execute.
I know that my problem might be the space between "Program Files" but I'm not sure how to get around that. I have tried putting the whole cmd line in a string and doing ObjWShell.Run string, 1, True (stalls out) and I've tried putting the full string in instead of the strString and adding ' ' single quotes around it.
Any suggestions would be appreciated!
Thanks! Have a good afternoon!