Executing a batch file containing an exe path remo

2019-09-07 01:36发布

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"

标签: wmi wmic
1条回答
2楼-- · 2019-09-07 01:58

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

查看更多
登录 后发表回答