Computing.Net > Forums > Disk Operating System > Unattended format

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Unattended format

Reply to Message Icon

Name: UKNemesis
Date: January 26, 2005 at 02:19:26 Pacific
OS: Windows 2000 server
CPU/Ram: Duel Xeon P4
Comment:

Hi,
I run a network with a number of client computers. We have a shared PC that everyone uses with a scanner, DVD burner etc on it.

To allow users to transfer files to and from their PC or the network to the scanner / DVD burner I have a temporary shared 10 gig hard drive.

So this drive doesn't get cluttered up I'd like to write a small one line batch program that can run in windows scheduler to format the drive each week on a saturday night so it is empty for the following week.

I've tried to do this but cannot get past the DOS warning saying ABOUT TO ERASE ALL DATA (Y/N)

Is there any way of running an unattended format of this drive to clean it off automatically?

Many thanks!!



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: January 26, 2005 at 02:29:21 Pacific
Reply:

Try the following code

Echo Y | Format /V:VolumeLabel /Q

Post again if you need more support.


0

Response Number 2
Name: rogerashley
Date: January 26, 2005 at 02:35:27 Pacific
Reply:

If you need to post again please can you
put it in the programming or your O/S
forum.

This is a NT Command prompt question not a
MSDOS Command Prompt question.

Thankyou



0

Response Number 3
Name: JackG
Date: January 26, 2005 at 13:06:05 Pacific
Reply:

You could also try:

DELTREE /y d:\*.*

as it will delete all files and folders on a drive, if the "DOS" on your system supports the DOS DELTREE command (XP does not).

That is what I like about DOS, more than one way to do some things.


0

Response Number 4
Name: Mechanix2Go
Date: January 26, 2005 at 20:52:52 Pacific
Reply:

It's a little surprising that XP does not support deltree.

w2k does; and they're more alike than different.

M2


0

Response Number 5
Name: IVO
Date: January 27, 2005 at 08:28:56 Pacific
Reply:

To Mechanix2Go,

Yes, XP does not support DelTree as the command RD has the (quite) same behavior.

And by the way thank you to help the posters while I'm sleeping (yes, I sleep sometimes opposite to Terminator). I'm a lone player, but "de facto" a team is born.


0

Related Posts

See More



Response Number 6
Name: dtech10
Date: January 29, 2005 at 13:56:48 Pacific
Reply:

Hi
Deltree will work on WinXP, if you get the version from a Win98 disk it's in Win98_40.cab.



0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Unattended format

automatic format hard drive www.computing.net/answers/dos/automatic-format-hard-drive/7528.html

formating+dos www.computing.net/answers/dos/formatingdos/11804.html

Formating in Dos?? www.computing.net/answers/dos/formating-in-dos/9865.html