Only issue with any of the automation is the Drive letter is not the same 30 
days out of 30 in a given month.
The users are have to set the drive letter some days.


From: [email protected] [mailto:[email protected]] On 
Behalf Of Joseph L. Casale
Sent: Thursday, November 12, 2015 8:51 AM
To: '[email protected]' <[email protected]>
Subject: [NTSysADM] RE: format a USB drive command line

Why must you always format it? IMHO you're looking for hurt sooner or later 
unless you use windows api's to query the drive sig etc.

I can't imagine scripting the formatting of a drive on a server.

Can't you use robocopy /MIR for example after you assert the path is the one 
you want if it has to be done in a script?
If you can do it programmatically, it would be safer...

jlc

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of David McSpadden
Sent: Thursday, November 12, 2015 6:36 AM
To: [email protected]<mailto:[email protected]>
Subject: [NTSysADM] format a USB drive command line

I have a department that puts a USB drive in their Fileserver every day.
I would like to run a command line to format W: /q /c /FS:NTFS /V:F10%day of 
month%
However the drive letter is not always W:  Some days it is D: Some H: some 
whatever.
Is there a way to command line find the USB drive, (only one each day), assign 
it a letter (W:)
Then run my format command and my backup (Copy) command later?
The variable for day of month I have sorted.  I just need to get the drive 
letter to be the same every day
So I can schedule.

Server is a 2012 R2.  I can use DISKPART if needed (Will need a little guidance 
if it is required.)



This e-mail and any files transmitted with it are property of Indiana Members 
Credit Union, are confidential, and are intended solely for the use of the 
individual or entity to whom this e-mail is addressed. If you are not one of 
the named recipient(s) or otherwise have reason to believe that you have 
received this message in error, please notify the sender and delete this 
message immediately from your computer. Any other use, retention, 
dissemination, forwarding, printing, or copying of this email is strictly 
prohibited.


Please consider the environment before printing this email.
This e-mail and any files transmitted with it are property of Indiana Members 
Credit Union, are confidential, and are intended solely for the use of the 
individual or entity to whom this e-mail is addressed. If you are not one of 
the named recipient(s) or otherwise have reason to believe that you have 
received this message in error, please notify the sender and delete this 
message immediately from your computer. Any other use, retention, 
dissemination, forwarding, printing, or copying of this email is strictly 
prohibited.

Please consider the environment before printing this email.

Reply via email to