Skip to content

namhikelo/Auto-Run-Vmware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Turn on Vmware run machine:

⚡Attension: @ vmrun.exe -T ws start "Path the machine (must have extension .vmx)"

@echo off
title "Run Vmware On"
set "params=%*"
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || (  echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
@ cd "C:\Program Files (x86)\VMware\VMware Workstation"
@ vmrun.exe -T ws start "D:\SOFT\Virtual Machine\Window10\Win10.vmx"
@ echo "Open Successfully"
@ pause

Turn Off All Vmware run machine:

@echo off
title "Run Vmware off"
set "params=%*"
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || (  echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
set local
set Path=C:\Program Files (x86)\VMware\VMware Workstation
for /F "skip=1 delims=;" %%i in ('vmrun list') do (
    echo Suspending for %%i
    vmrun -T ws suspend "%%i"
)
endlocal
set /p any=press any key to continue...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published