kavika13/RemCom — Issue #5: Error when opening "C:\Program Files (x86)\Vim\Vim72\vim.exe" - The system cannot find the file specified.
Author: kavika13
Created: 2011-11-09 13:46:52+00:00
State: open

I can open C:\windows\system32\notepad.exe on \\localhost, but I cannot open C:\Program Files (x86)\Vim\Vim72\vim.exe, even though the file exists.

I believe this is because it can't handle spaces in the filename.

Repro:
1) Copy an executable file (notepad.exe) to C:\test dir with space\
2) Launch RemCom.exe \\localhost /user:*username* /pwd:*password* "C:\test dir with space\notepad.exe"

Expected:
The program launches correctly

Actual:
An error message is displayed -

Localhost entered for Target Machine .. Going to RunAs Command

Launching Local Process ...
ERROR: API = CreateProcessWithLogonW.
error code = 2.
message = The system cannot find the file specified.