I am using Windows Xp, and I want to create a batch file for running different program for different users.
I have four users, and I placed the shortcut of batch file on the desktop of each user. I want to use
one batch file and I want to use if command with AND / OR, but I do not know the syntax, I have read posts about
if command but I am unable to understand how can I create the batch file. Below is the example of batch file which I want
to create, needs to be modified.
( if %USERNAME% == user1 run c:\Program1.exe,
if %USERNAME% == user2 run C:\Program2.exe,
if %USERNAME% == user3 run c:\Program3.exe,
if %USERNAME% == user dont run any program and show a message, that "batch file will not run if you're logged in as user" )
Waiting for response, Thanks...