How to change working folder
Feb 12, 2013 2:17:32 GMT -5
Post by ezmoney on Feb 12, 2013 2:17:32 GMT -5
I was trying to use the shell$ command to get some data and perform some operations.
But it starts in the RB directory and I want this to work on "my documents" files.
I tried a Change directory CD command but it did not change anything.
print shell$("dir") gives the RB directory.
print shell$("cd mydirectorypath")
print shell$("dir") gives the RB directory again..
What I really want is to sort my file..
print shell$(sort/+1 filein.txt >fileout.txt) but I must be in the right directory for this to happen.
Another thing is after I issue the command then the program will go on regardless of the
time required for the instruction to finish....
other than testing for the created out put file is there a way to get the program to
wait or sleep till this operation complets?
But it starts in the RB directory and I want this to work on "my documents" files.
I tried a Change directory CD command but it did not change anything.
print shell$("dir") gives the RB directory.
print shell$("cd mydirectorypath")
print shell$("dir") gives the RB directory again..
What I really want is to sort my file..
print shell$(sort/+1 filein.txt >fileout.txt) but I must be in the right directory for this to happen.
Another thing is after I issue the command then the program will go on regardless of the
time required for the instruction to finish....
other than testing for the created out put file is there a way to get the program to
wait or sleep till this operation complets?