FORUMS: list search recent posts

Re: Windows Worker Node Command Line Execution

COW Forums : Square Box CatDV

Respond to this post   •   Return to posts index   •   Read entire thread

Jeff Schaap
Re: Windows Worker Node Command Line Execution
on Apr 2, 2014 at 8:32:36 pm


Thank you so much. The cmd /c and the quotes were what I was missing. I was able to get Worker to create a directory.

Still having a small issue though... The mkdir command I'm using is creating the "shadow path" to where I'll drop new proxy files. Under the Mac I would do this:

mkdir -p /Volumes/maxxraid1/CatDV_Previews$p

and that worked great since $p was always:

/Volumes/maxxraid1/Footage/[rest of the path to file]

However, in the Windows environment $p includes the drive letter and a ":\" so the string becomes:

Y:\Footage\[rest of the path to file]

So when I try to do this:

cmd /C "mkdir Y:\CatDV_Previews$p"

it get interpereted as:

cmd /C "mkdir Y:\CatDV_Previews\Y:\Footage\[rest of the path to file]"

ARRGGHHH. So the Y:\ being in there screws up my methodology. I tried figuring out a regular expression that would drop the first three characters in $p but to no avail. Any thoughts on how to do that or another way out of the conundrum?

Many Thanks,

Posts IndexRead Thread 

Current Message Thread:

© 2020 All Rights Reserved