Computing.Net > Forums > Windows NT > Login script to delete files in any directory

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.

Login script to delete files in any directory

Reply to Message Icon

Name: Rob LaBanca
Date: December 4, 2000 at 06:32:39 Pacific
Comment:

I am a high school teacher who runs a NT4 win95/98 network. I am looking for a way to delete a file upon login, when you don't know which folder the file is located in. (ie napster installation file). Will I need a VB script to do this?
Thanks in advance for any help.
Rob



Sponsored Link
Ads by Google

Response Number 1
Name: perry
Date: December 4, 2000 at 07:53:27 Pacific
Reply:

Hi Rob,

Here is a copy of a posting I did last week. If you grab the zip file he covers much of what you would need to do if you wanted to use DOS commands to do it.

Good Luck
Perry

Check out this FAQ that Timo Salmi created for the alt.msdos.batch newsgroup newbies.
ftp://garbo.uwasa.fi/pc/ts/tsbat62.zip

I pulled out some of what he covers and pasted below to give you a taste of what is covered. Yea in NT some of this stuff can be done another way with different tools but for those of you that don't know those tools either this FAQ can come in pretty handy.

Perry

INDEX
=====
2) Deleting all files without being prompted "Are you sure (Y/N)?"
4) How can I check in a batch whether a directory exists?
9) How can I compare if two files are identical?
20) How can I run a batch once a week (testing for the weekday)
22) How can I display the time without having to press enter?
23) Alternatives for testing for the errorlevel value
24) About redirecting a batch file's output
40) A batch to put user input into an environment variable
47) How can I run a different batch depending on the weekday?
59) How get today's date into a six-character environment variable?
81) How to read a file's date and time into environment variables?
89) How to get months as letters and years in four digits in DIR?


0

Response Number 2
Name: Eddie
Date: December 4, 2000 at 09:08:56 Pacific
Reply:

How about adding a cybersitter app. or closing the port that napster uses from your router. These would prevent your students from dowloading napster.


0

Response Number 3
Name: Dave C
Date: December 5, 2000 at 12:51:21 Pacific
Reply:

Damn the liberals for banning corporal punishment!

LOL

=)


0

Response Number 4
Name: Anthony
Date: March 8, 2001 at 16:58:15 Pacific
Reply:

I want to know how I can keep lab users from
downloading software on our computers.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


DUN reporting modem alrea... NT DNS and Linux Server



Post Locked

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


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: Login script to delete files in any directory

auto delete files in batch pgrm www.computing.net/answers/windows-nt/auto-delete-files-in-batch-pgrm/12959.html

Login script dilemma www.computing.net/answers/windows-nt/login-script-dilemma/13458.html

NT LOGIN SCRIPT FOR COPYING FILES www.computing.net/answers/windows-nt/nt-login-script-for-copying-files/5469.html