Well, the point was to create bat file that formats d drive.... I know how to format d drive.... But I wanted to create a bat file that does it...
oh, try right clicking the batch file, and pressing run as admin.
im pretty sure it would work
and for better debugging of a batch file.
open cmd.exe > type the path of your batch file then it should say the error and resume back to the command prompt
so cmd > c:\path of file\file.bat
Syntax error: blah blah blah
c:\>
I tried.
C:\Users\Admin\Desktop\zzz.bat
C:\Windows\system32>format d:
Tiedostojärjestelmän tyyppi on NTFS.
Kirjoita aseman D: nykyinen asemanimi
(means... File system is NTFS. Write D: drive's current drivename)