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
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?
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..
Summary: Thanks for the reply. When I run expect from the command line, here is what I'm typing: C:\Tcl\bin\tclsh.exe package require Expect spawn telnet 192.168.0.1 23 exp_send "mypassword\n" exp_send "24\n" ...
Summary: Why must you have an exe instead of a batch file? To make an EXE file, get a language compiler, such as C++ or Visual Basic, write the source code (which is alot more complex than "c:/Sierra/counter-s...
Summary: I am using this line in the batch file and it prompts me if I want the File (F) or Directory (D), I just want to copy a batch file that wont' prompt and copy the destination and source directly withou...