Shortcut - Rotate Desktop

if "%curr%"=="0" ( %DISPLAY% /rotate 90 ) else if "%curr%"=="90" ( %DISPLAY% /rotate 180 ) else if "%curr%"=="180" ( %DISPLAY% /rotate 270 ) else ( %DISPLAY% /rotate 0 )

Note: /getrotation may not work with all versions. Alternative: Use a small temp file to track state. rotate desktop shortcut

@echo off set statefile=%temp%\rotstate.txt if not exist %statefile% echo 0 > %statefile% set /p state=<%statefile% if %state%==0 ( C:\Tools\Display.exe /rotate 90 echo 1 > %statefile% ) else if %state%==1 ( C:\Tools\Display.exe /rotate 180 echo 2 > %statefile% ) else if %state%==2 ( C:\Tools\Display.exe /rotate 270 echo 3 > %statefile% ) else ( C:\Tools\Display.exe /rotate 0 echo 0 > %statefile% ) if "%curr%"=="0" ( %DISPLAY% /rotate 90 ) else

Create a new text file on desktop → rename to RotateCycle.bat %statefile% set /p state=&lt

We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.