Can't execute a dos command

Questions and answers on how to get the most out of FFAStrans
Post Reply
momocampo
Posts: 595
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Can't execute a dos command

Post 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
emcodem
Posts: 1811
Joined: Wed Sep 19, 2018 8:11 am

Re: Can't execute a dos command

Post 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?
emcodem, wrapping since 2009 you got the rhyme?
momocampo
Posts: 595
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: Can't execute a dos command

Post 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
Post Reply