Computing.Net > Forums > Disk Operating System > batch file login script

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.

batch file login script

Reply to Message Icon

Name: Chris
Date: July 22, 2002 at 07:19:43 Pacific
Comment:

What aould be the exact sysntax to use for a simple batch login script to delete the files and folders of a temp folder. I know that the command deltree /y c:\windows\temp\*.* will be the main line in the batch file. I am not sure on how to start and end the script.



Sponsored Link
Ads by Google

Response Number 1
Name: michdaugh
Date: July 22, 2002 at 19:22:47 Pacific
Reply:

DOS batch doesn't require any special declarations or program sections like other programming languages. If the deltree command is all you want the batch file to do, then that's all the file has to contain. Think of a batch file as just an automated way to 'type in' dos commands. It really doesn't do much more than that, other than some flow control, variable assignments and rudimentary error checking.

Hope this answers your question,
-Michael


0
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 Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: batch file login script

DOS Batch File Help www.computing.net/answers/dos/dos-batch-file-help/15090.html

Batch Files - Logoff Scripts www.computing.net/answers/dos/batch-files-logoff-scripts/14511.html

Batch files www.computing.net/answers/dos/batch-files/9418.html