Jump to content
Hak5 Forums

Archived

This topic is now archived and is closed to further replies.

Guest K1u

auto Yes in batch file?

Recommended Posts

Guest K1u   
Guest K1u

Ok if i made a batch file for example-

cd C:WINDOWSsystem32

del crapshack

If crapshack is a folder when u run the batch file file u will get a Y/N message if u want to delete how can i make it automatically say yes in batch file?

Share this post


Link to post
Share on other sites
Guest K1u   
Guest K1u
You wil be sorry for making me write some unessasery code lol :wink:

lol well ur help is appreciated

Share this post


Link to post
Share on other sites
PoyBoy   

Nothing is showing up but white, but it could reasonably be double the size?

(Authority post here with a real reply)

Share this post


Link to post
Share on other sites
VaKo   
I resized my avatar is this ok or should i size it down some more?

My avatar is pushing it. Its basically a max width of 160px and up to 200px height wise.

Share this post


Link to post
Share on other sites
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.

/Q Quiet mode, do not ask if ok to delete on global wildcard

/A Selects files to delete based on attributes

attributes R Read-only files S System files

H Hidden files A Files ready for archiving

- Prefix meaning not

If Command Extensions are enabled DEL and ERASE change as follows:

The display semantics of the /S switch are reversed in that it shows

you only the files that are deleted, not the ones it could not find.

Share this post


Link to post
Share on other sites
Mick   

Well, if you want to get advanced, you could always do

echo y|del something

or even store your prerecorded answers in a file and call

del something < answers.txt

Share this post


Link to post
Share on other sites

i also highly recommend checking out http://www.ss64.com/nt/index.html

there is a lot of detailed information about window's command line applications and their syntax and sample scripts

and for quick help with any command it's always good to run the command with /? or -h or /help or --help as they usually list the syntax and usage it's that does not work google it

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×