I've very new to this, so this might be obvious. I have a few post-processing scripts I have written, mostly just to rename obfuscated files and move them to a different folder, but just today I ran into a problem where the NZB/Folder/File had a comma in it, and it switched my working directory to to my SABnzbd Program File folder and tried to execute there. An example might be:
TV.Show.S01E01.This,.That,.And.Another.Thing
I've been setting my working folder using:
Code: Select all
cd /d %1
Code: Select all
cd /d "%1"
I had a similar problem before with spaces, but the program has an option to switch all spaces to underscores, and once I checked that there were no more issues. If I'm missing something, or if anybody has any advice on how to deal with the commas (or any other characters for that matter), I'd appreciate the help. Thanks!