Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to close a program from batch file while logged on as Guest?

Status
Not open for further replies.

Jtorres13

Technical User
Nov 11, 2006
162
US
My batch file:
Code:
set file=C:\Publication1.png
start %SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %file%
timeout 25
taskkill /F /im Rundll32.exe
timeout 30
%SystemRoot%\explorer.exe "C:\Boo" 
exit

whic I have saved to the guest Startup folder, runs when Guest logs on, then prompts to enter the Guest password. I don't want to be prompted. I just want it to close the Photo viewer. What am I doing wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top