Hello,
I created a cmd file in progress 4gl.
In the 4gl it says "cp ../../input/filename* ../../input/filename2.txt".
However, when execute it in windows, it keeps complaining about ".." is not a valid command.
I could use os-dir and read through the matching file names and copy them, but I am afraid I would read so many files I don't want in that directory.
Is there a way to handle relative paths using "os-command" syntex?
Thanks.
Lisa
Thread created by tltang1Hello,
I created a cmd file in progress 4gl.
In the 4gl it says "cp ../../input/filename* ../../input/filename2.txt".
However, when execute it in windows, it keeps complaining about ".." is not a valid command.
I could use os-dir and read through the matching file names and copy them, but I am afraid I would read so many files I don't want in that directory.
Is there a way to handle relative paths using "os-command" syntex?
Thanks.
Lisa
Stop receiving emails on this subject.Flag this post as spam/abuse.
Your command line must be one that the OS understands.
Since you're trying to run a Unix command line on a Windows machine, that's not the case here.
For starters:
- Windows uses "copy" instead of "cp"
- Windows uses backslashes "\" instead of forward slashes "/" to delimit directory names.