Discussion Locked

login script

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to delete some files using my login script batch file which is just a text document.

I put in the command line

del c:\foldername\filename

When I run the batch file it asks if I am sure I want to delete it. I dont want the users to have to do this so is there a command I can put in that answers the question Y and performs a carrage return. I tried /y and that did not work.

3 replies

by quake_sinatra

what os?
at the command prompt type in del /?
and figure out the options you want.
i would suggest manually doing it on a workstation or two to make sure it acts the way you want before you add it to the login script.
del c:\foldername\filename /Q
should work Q(uiet).

by jeff anderson

Thank you. That was exactly what I was looking for. Sometimes I forget the basics like using the /? for options.
Thanks again.

This discussion is closed to new replies.