Exception: A file was not found

Nov 30, 2009 at 9:34 PM

I can ConnectToVMWareVIServer, Open virtualmachine and LoginInGuest succesfully. But when I try RunProgramInGuest I get an Exception with message "A file was not found" and stacktrace:

Vestris.VMWareLib.VMWareException: A file was not found
en Vestris.VMWareLib.VMWareInterop.Check(UInt64 errCode)
en Vestris.VMWareLib.VMWareJob.Wait[T](Object[] properties)
en Vestris.VMWareLib.VMWareJob.Wait[T](Object[] properties, Int32 timeoutInSeconds)
en Vestris.VMWareLib.VMWareVirtualMachine.RunProgramInGuest(String guestProgramName, String commandLineArgs, Int32 options, Int32 timeoutInSeconds)
en Vestris.VMWareLib.VMWareVirtualMachine.RunProgramInGuest(String guestProgramName, String commandLineArgs)
en Vestris.VMWareLib.VMWareVirtualMachine.RunProgramInGuest(String guestProgramName)

I have installed vix 1.8.1 and the same command with vmrun utility and RunProgramInGuest option works ok.

Coordinator
Dec 1, 2009 at 6:16 AM

What command are you trying to run?

Dec 1, 2009 at 10:07 AM

A bat file: "c:\test.bat"

 

The same command for vmrun works ok.

Coordinator
Dec 1, 2009 at 1:05 PM

I don't know why it would work with vmrun, but I would try cmd.exe /C c:\test.bat as a workaround. VixCOM forum might have an explanation.