Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Format Drive Disk 2K XP 2000
Format.com e: /FS:NTFS /V:VolumeLabel /Q /YWorks beautifully in WinXP. THANK YOU!!
Problem is, I need a different solution for windows 2000, because the older version of Format.com prompts me for the current volume label, and does not recognize the "/Y" parameter.
Does anyone have any suggestions on how to step around this little mess? I'd prefer something native to WB, but maybe some WMI solution?
Any help would be greatly appreciated.
; Format a disk on Windows 2000 or Windows XP ; Les Ferch, April 23, 2008 ; Change RunWait to RunHideWait for silent operation #DefineFunction Format(Vol,FS,Label) If !DiskExist(Vol) Then Return VolName = DiskVolinfo(Vol:"\",1) Temp = Environment("Temp") Comspec = Environment("Comspec") FormatDat = Temp:"\Format.dat" FilePut(FormatDat,VolName:@CRLF:"Y":@CRLF:"Y":@CRLF) RunWait(Comspec,'/c format ':Vol:' /fs:':FS:' /v:':Label:' /q <"':FormatDat:'"') FileDelete(FormatDat) #EndFunction Format("E:","NTFS","MyDisk")
Article ID: W17926
Filename: Format a disk on Windows 2000 or Windows XP.txt
File Created: 2008:04:24:07:34:54
Last Updated: 2008:04:24:07:34:54