I've tried messing around with sleep functions to no avail and besides, i don't think thats the root cause here. In the code below I've commented out the diskpart formatting commands and leaving only "select disk" output to a message box to test. txt extension for the "select disk" command before performing the rest of the commands in diskpart to repartition and format the drives.Įach function performs as expected but when I run the script, the function FormatFixedDisks() seems to execute before the text files containing the "USB" string get deleted so it ends up formatting all disks connected to the system. Finally it uses the remaining file names as without the. ![]() Then it searches each text file for the string "Type : USB" and if found, deletes that file leaving only text files relating to fixed disks. ![]() The script is supposed to loop through every disk listed and capture the disk detail to a text file named with disk id (disk 0.txt, disk 1.txt, etc). I'm running in to a problem with my second AutoIt script and can't seem to figure it out.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |