Hi Everyone,
I have a batch file that formats a HDD and then copys files to it using xcopy, with switches that keep the ntfs permissions.
My problem is, in the batch file, the drive letter is set to C, but I now need the drive letter to be a variable as it could be any letter. (its going to copy to removable media), but I cant find out how to format a drive in vbscript or if its even possible?
A section of my batch file is below
Thanks,
Wazz
label c: XXX
format C: /fs:ntfs /q /v:xxx /y
xcopy z:\xxx\*.* c:\ /s/e/r/c/h/k/o/y
I have a batch file that formats a HDD and then copys files to it using xcopy, with switches that keep the ntfs permissions.
My problem is, in the batch file, the drive letter is set to C, but I now need the drive letter to be a variable as it could be any letter. (its going to copy to removable media), but I cant find out how to format a drive in vbscript or if its even possible?
A section of my batch file is below
Thanks,
Wazz
label c: XXX
format C: /fs:ntfs /q /v:xxx /y
xcopy z:\xxx\*.* c:\ /s/e/r/c/h/k/o/y