Loop and call of CMD with network drive, any smarter way?
Hello, I have quite weird case, which is causing some problems on my environment.
Let's say I have some network drive, mapped to X:\ on that I have application in following structure:
X:\PROJECT\QVD_generator.qvw
X:\PROJECT\QVD\ * ( directory with files )
X:\OTHER_PROJECT\QVD\* ( directory with files )
Inside generator I have relative paths :
let qvd=".\qvd\";
let qvd_other_project = "..\OTHER_PROJECT\qvd\";
the problem is that I want to copy all files generated within qvd directory to "other project" . One of developer which wrote script decided to call :
STORE $(qvd)FILE.QVD
STORE $(qvd_other_project)FILE.QVD
The problem is that this type of behavior is repeated 3 x per file and depends form environment. I believe it's not the best practice that's why I want to use some post process to copy all fles from $qvd into $qvd_other_project and here is the problem
I'm using command
EXECUTE cmd.exe /C copy <file> <file>
what makes sense only when I use full paths, because due to network drive possibility of using relative paths seems to be limited.