Computing.Net > Forums > Windows XP > Executing a batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Executing a batch file

Reply to Message Icon

Name: buzzstpoint
Date: May 4, 2004 at 09:00:20 Pacific
OS: Windows XP
CPU/Ram: 512 1.8ghz
Comment:

On our PC at work we have about 7 users. This creates lost of temp files. I have configured a task to reboot the computer at night.

I have created a Batch file that will clean all junk files out of the PC.

Question is: How do I run the batch file before the user logs on?



Sponsored Link
Ads by Google

Response Number 1
Name: scooter_mcgoo
Date: May 4, 2004 at 10:05:19 Pacific
Reply:

If you are using Win2K or XP, add the batch file as a startup script. For that matter, 2K and XP can execute shutdown scripts too. Both can be set up in Group Policy.

Run > gpedit.msc
Select Computer Configuration | Windows Settings | Scripts

From there, its pretty simple. Just point it at your batch file. Hope this helps.

-SMcG

FEITCTAJ


0

Response Number 2
Name: buzzstpoint
Date: May 6, 2004 at 09:58:47 Pacific
Reply:

Thanks a bunch,, It works perfectly now!!

Since browsing around the group policys, I have removed my software that locks everything down, and I'm changing the policys..

Thanks


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Executing a batch file

Creating a Batch File www.computing.net/answers/windows-xp/creating-a-batch-file/163600.html

convert a batch file to exe www.computing.net/answers/windows-xp/convert-a-batch-file-to-exe/53610.html

Creating a batch file (back up) www.computing.net/answers/windows-xp/creating-a-batch-file-back-up/172281.html