2013-10-16, 12:27 PM
johnsonx42 Wrote:No, "%1" is correct. "%~1" is invalid, and %1 without the quotes would break due to the space in the path ("Manual Recordings").I'm pretty sure the %1 parameter comes with qoutes.
There's a couple of possibilities: one, when NRecord runs a .bat file, it's running as Local System, not your normal user. It could be that Local System doesn't have the permissions it needs to write the file to C:\. Try making a directory for it, and make sure Local System has permissions. Google "command prompt as local system" and you'll find a way to manually launch a command prompt with local system permissions so that you can test your batch file.
two, when NRecord runs a script the starting directory is not what you want it to be... I've forgotten what it is, might be c:\windows\system32 or something like that. you should start with a cd command to a valid directory, like "cd /d c:\temp" if you have a temp folder there, or "cd /d "%dp0"" if you want to run in the NPVR scripts directory.
"I'd rather have a bottle in front of me than a frontal lobotomy"