Executing a batch file containing an exe path remo

2019-09-07 01:37发布

问题:

I have a batch file on Computer-A that contains several commands and a path to an exe file.

When I execute the batch file on Computer-B via wmic, I can see all the commands being executed in the batch file except that it does not run the exe. What are the things I need to check for to see why the .exe is not being executed on Computer-A?

wmic execution:

wmic /node:"<server_ip>" /user:domain\user /PASSWORD:"password" /OUTPUT:STDOUT process call create "cmd.exe /c C:\Folder\batch.bat"

回答1:

File paths in wmic need to be c style paths. So C:\\somefolder\\somefile.ext. \\ for\ in paths.



标签: wmi wmic