02 August, 2009

run script only when the user got his desktop

Hi,

I had a problem, I needed to change all the workstations screen resolution at my client network.

I found a cool small tool named ResSwitch, the problem with it that it can only run when a user has it's desktop loaded.

I added the following lines to chack if the user desktop is ready.

====================================
:check_4_explorer
tasklist find "explorer"
if %errorlevel% == 1 goto check_4_explorer

"%~dp0ResSwitch.exe" /WIDTH:1280 /HEIGHT:1024
====================================

No comments:

Post a Comment