1.

Solve : MS-DOS *.bat and notepad.. HELP !!?

Answer»

this is the question...

when i WORK in notepad and enter this commands :

@ECHO off

pause

del c:\deltest



Then i save the file as a *.bat and start it in MS-DOS, here is the folowing
question



How can I make automate answer to the folowing question after the command
"Pause" : c:\deltest\*, Are u sure (Y/N)?

Use the
Del /Q filename
command,
the help is very useful - del /?
Grahami dont understand what u just said
C:\>del /?
Deletes one or more files.

DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names
ERASE [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names

names Specifies a list of one or more files or directories.
Wildcards may be used to delete multiple files. If a
directory is specified, all files WITHIN the directory
will be deleted.

/P Prompts for CONFIRMATION before deleting each file.
/F Force deleting of read-only files.
/S Delete specified files from all subdirectories.
[highlight] /Q Quiet mode, do not ask if ok to delete on global wildcard[/highlight]
/A SELECTS files to delete based on attributes
attributes R Read-only files S System files
Press any KEY to continue . . .



Discussion

No Comment Found