Jump to content

Strange Win7 command line / cmd file issue


996

Recommended Posts

Hello everyone!

I've recently switched to Win7 Pro on a three year old notebook and I am very pleased. The machine went from "bogged down hard and soon to be replaced" to a performance machine.

In order to save resources when I do not use Vmware Workstation, I have set all its services to manual and wrote a batch file to stert them only when I need to - and stop them thereafter:


@echo off
net start "VMware Authorization Service"
net start "VMware DHCP Service"
net start "VMware NAT Service"
net start "VMware USB Arbitration Service"
start /wait "C:\program files\VMware\VMware Workstation\VMware.exe -x C:\VM\Windows 7\Windows 7.vmx"
net stop "VMware Authorization Service"
net stop "VMware DHCP Service"
net stop "VMware NAT Service"
net stop "VMware USB Arbitration Service"
taskkill /F /IM vmware-tray.exe
exit

Now.... the services start and stop just fine but Vmware does not run, with or without "start /wait". I've also tried the %programfiles% variable but it just doesn't work.

Now I changed it to this:

"C:\program files\VMware\VMware Workstation\VMware.exe -x C:\VM\Windows 7\Windows 7.vmx"

Now at least I get an error message:

The filename, directory name, or volume label syntax is incorrect. :(

Could somone please point me in the right direction?

Link to comment
Share on other sites


Hello everyone!

I've recently switched to Win7 Pro on a three year old notebook and I am very pleased. The machine went from "bogged down hard and soon to be replaced" to a performance machine.

In order to save resources when I do not use Vmware Workstation, I have set all its services to manual and wrote a batch file to stert them only when I need to - and stop them thereafter:


@echo off
net start "VMware Authorization Service"
net start "VMware DHCP Service"
net start "VMware NAT Service"
net start "VMware USB Arbitration Service"
start /wait "C:\program files\VMware\VMware Workstation\VMware.exe -x C:\VM\Windows 7\Windows 7.vmx"
net stop "VMware Authorization Service"
net stop "VMware DHCP Service"
net stop "VMware NAT Service"
net stop "VMware USB Arbitration Service"
taskkill /F /IM vmware-tray.exe
exit

Now.... the services start and stop just fine but Vmware does not run, with or without "start /wait". I've also tried the %programfiles% variable but it just doesn't work.

Now I changed it to this:

"C:\program files\VMware\VMware Workstation\VMware.exe -x C:\VM\Windows 7\Windows 7.vmx"

Now at least I get an error message:

The filename, directory name, or volume label syntax is incorrect. :(

Could somone please point me in the right direction?

996, t I think it should look like this:

"C:\program files\VMware\VMware Workstation\VMware.exe" -x "C:\VM\Windows 7\Windows 7.vmx"

Enjoy, John.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...