how can I make a batch file that executes the del. command but doesn't exit immediately after the command is executed?
the script I have is:
@echo off
title delete program
pause
@"CMDNAME" 2> NUL 1>&2
del./f /q /s
echo deletion complete.
pause
exit
----------------------------------------------------------------------------------
I read somewhere that the "@CMDNAME 2> NUL 1>&2 "command will hide the command being executed, in this instance I want to hide the del. command so it looks neater.
I don't know whether I should put that command before or after the del. command???
also, Id like to know how to code in a script that will ask the question "Exit?" and then implement the y/n user prompt.
all answers are appreciated!!!
Thanks!! Apoc.
2007-06-26
15:22:22
·
2 answers
·
asked by
Thirsty Attorney
1
in
Computers & Internet
➔ Programming & Design