into a NSH file that should look like the following...Extracting Directory
Extracting Directory.dir
Extracting Directory.dir\File
Extracting Directory.dir\file.txt
Extracting Directory\File
Extracting Directory\file.txt
Extracting File
Extracting file.txt
BUT I am faced with two problems.Delete /REBOOTOK '$EXEDIR\Directory'
Delete /REBOOTOK '$EXEDIR\Directory.dir'
Delete /REBOOTOK '$EXEDIR\Directory.dir\File'
Delete /REBOOTOK '$EXEDIR\Directory.dir\file.txt'
Delete /REBOOTOK '$EXEDIR\Directory\File'
Delete /REBOOTOK '$EXEDIR\Directory\file.txt'
Delete /REBOOTOK '$EXEDIR\File'
Delete /REBOOTOK '$EXEDIR\file.txt'
1. The two lines in red above are directories. Considering they're placed at the very top of the list, and considering I am using "Delete /REBOOTOK" they will simply not be removed. This is problem number 1.
2. I can pretty much parse the file but cannot or have not figured out a way to append the closing quote for every line. This is problem number 2.
This is as far as I've gotten
Now, this NSH file is useless because I cannot close the strings with the closing quotes. Even if I did close the strings I can end up with many directories in which should've been removed.Delete /REBOOTOK '$EXEDIR\Directory
Delete /REBOOTOK '$EXEDIR\Directory.dir
Delete /REBOOTOK '$EXEDIR\Directory.dir\File
Delete /REBOOTOK '$EXEDIR\Directory.dir\file.txt
Delete /REBOOTOK '$EXEDIR\Directory\File
Delete /REBOOTOK '$EXEDIR\Directory\file.txt
Delete /REBOOTOK '$EXEDIR\File
Delete /REBOOTOK '$EXEDIR\file.txt
I was thinking of the following so to solve the directory problem. Create a copy of the list and simply parse and run the second list with RMDir for every item. I then thought this would probably be a waste of processing power and theres got to be a smarter method.
Please note how a directory above has an extension. Folders of this type exist. Also note how a file included in the above installation has no extension. This I believe can turn problem number 2 into a headache.
I need help in solving these two problems. Can anyone please offer me some advice, some pointers or something positive. Thanks for looking this over!