07-24-2023, 10:14 AM
I am trying to write a windows JS script that iterates through a bunch of folders and deletes each one with a special program because for some reason these folders don't delete normally. My problem is that I can't figure out how to just simply run a command on the command line like you would in a batch file. Obviously, you can't just call it directly, but I've googled and googled and can't find anything.
The command string I want to run is `"C:\Program Files\Unlocker\Unlocker.exe" "E:\.Trash-1000\expunged\2443302239\recup_dir.275" -D`. If someone could write me out a simple script that can do this, that would be great. Also, if you could put it in a for loop from 100 to 999 and replace the 275 with the loop var that would be even better.
The command string I want to run is `"C:\Program Files\Unlocker\Unlocker.exe" "E:\.Trash-1000\expunged\2443302239\recup_dir.275" -D`. If someone could write me out a simple script that can do this, that would be great. Also, if you could put it in a for loop from 100 to 999 and replace the 275 with the loop var that would be even better.