Archived

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

Guest K1u

auto Yes in batch file?

18 posts in this topic

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?

0

Share this post


Link to post
Share on other sites

noob.png

You wil be sorry for making me write some unessasery code lol ;)

0

Share this post


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

lol well ur help is appreciated

0

Share this post


Link to post
Share on other sites

Hey do u know of any tutorials that help u learn how to do advanced batch files?

0

Share this post


Link to post
Share on other sites

Ya, thats a really good one

0

Share this post


Link to post
Share on other sites

I resized my avatar is this ok or should i size it down some more?

0

Share this post


Link to post
Share on other sites

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

(Authority post here with a real reply)

0

Share this post


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

0

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.

0

Share this post


Link to post
Share on other sites
...

I guess you are right...

The /y is when you Copy....

and /-y is to overwrite !!!

Sorry...

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

U could do a del /? to get all the parameters it can take.

/? works with most dos commands.

0

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

0

Share this post


Link to post
Share on other sites