net use x: "\\vmware-host\Shared Folders\ShareME">>logfile.txt 2>&1
ping -n 11 127.0.0.1 > nul
x:
cd "Firefox18"
call autorun.bat>>logfile.txt
cd ../
exit
当我通过双击执行上述批处理文件时,会生成 logfile.txt。但是当我使用vmrun -T ws -gu <Username> -gp <Password> runProgramInGuest <Vm-Path> <path of Batch File to execute>
脚本运行良好时,只有 logfile.txt 没有生成。这仅在 Windows 7 中发生。它适用于 Windows XP。