net share in a script

  • Thread starter Thread starter Jens
  • Start date Start date
J

Jens

Hello,
I have a share on windows 2000 server and i have a problem
with my backup, if there is a user connected to this share
during the backup.
i want now to delete the share before the backup via
script, but i do not succeed in, if a user is connected to
the share, because i get the message, that a user is
connected, and i have to confirm a deletion. but i want
not spend the nigt in office t klick "Y" and return!
i tried it with net share /delete <y
or with atext file net share /delete <y.txt with a "y" and
a carriage return, but nothing helps.
Has anyone an idea?
Thanx in advance
Jens
 
Back
Top