Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Yes or No reply  (Read 4092 times)

0 Members and 1 Guest are viewing this topic.

boetie8008

  • Guest
Yes or No reply
« on: March 19, 2007, 04:34:14 AM »
Hi

Ive done a batch job to perform some tasks, one being to delete files in a folder. I did this with "del *.*" however it ask "Are you sure (Y/N)"

So my question is: What is the command to use to if I need my reply to be Y averytime.

Regards

LilHackerlt

  • Guest
Re: Yes or No reply
« Reply #1 on: March 19, 2007, 04:40:03 AM »
Sounds abit suss... Anyway this is how you do it

Code: [Select]
Echo y | del PATH\file
Hope this helps!
« Last Edit: March 19, 2007, 04:40:50 AM by LilHackerlt »

boetie8008

  • Guest
Re: Yes or No reply
« Reply #2 on: March 19, 2007, 04:43:51 AM »
Hi Twiceborn

It worked ok, thanks for the help and quick reply.

Regards

ghostdog74



    Specialist

    Thanked: 27
    Re: Yes or No reply
    « Reply #3 on: March 19, 2007, 06:17:22 AM »
    del has the /Q (quiet) mode
    see here

    LilHackerlt

    • Guest
    Re: Yes or No reply
    « Reply #4 on: March 20, 2007, 12:23:09 AM »
    Cool thanks, i never knew of the /Q para cheers!