Page 1 of 1

Can't execute a dos command

Posted: Wed Nov 21, 2018 4:49 pm
by momocampo
Hello all,

I need to modify the "modified date" of files in a folder. The dos command works well and there is :
"copy /B /Y file.mov +"

But when I put this command in an executor node, no way (error code 1).
My command executor script is :
%comspec% /c "copy /B /Y "C:\Users\ctvf2avidtech2\Desktop\TEMP\*.*"+" (for all files in folder)
I tried with %comspec% /c "copy /B /Y "C:\Users\ctvf2avidtech2\Desktop\TEMP\CASTLE_221118_GENINT1.mov"+" (with a real file name)

I tired even with complete path in dos and works well.

Any idea?
Thanks

Cheers
Benjamin

Re: Can't execute a dos command

Posted: Sun Nov 25, 2018 10:34 pm
by emcodem
To test your command, i created a new empty workflow and insert the command executor component with this code an no other changes like checked anything.

%comspec% /c "copy /B /Y "C:\Users\my user\Desktop\test\*.*"+"

After saving the workflow and starting the component using rightlick-> submit file, the date modified was changed and i got success in the job monitor.

Is it possible you deal with a access right issue, e.g. UAC enabled and ffastrans running as Service using the System user?

Re: Can't execute a dos command

Posted: Mon Nov 26, 2018 10:59 am
by momocampo
Hello Encodem,
Thank you very much for your help, it's really possible you're right(it's the error message indeed "access refused"). I have now to find where is the issue.
Thanks again ;)

Cheers.

Benjamin