Has anyone managed to get his to work on SCO Openserver with the mv or cp commands? I can get ls to work, but no matter what I try I get the command usage output to std err. These are such basic commands I can't believe they wouldn't work for USER as it is described in the manual.<br>
<br>All I really want is to list the csv files in a directory, process them, then move them to another directory. This extremely basic file manipulation to be ridiculous difficult to do in filePro! <br><br>Here is what I have:<br>
<br>::DECLARE filepath(128,*); filepath="/public/mailerListsSent/Prospects/":<br>::DECLARE filename(32,*):<br>::debug on:<br>::USER dirlist = ls:<br>::USER move = mv:<br>::dirlist=filepath{"/*.csv"; filename=dirlist:<br>
loop01s:filename eq "":goto loop01e:<br>::show filename:<br>::'msgbox filepath{filename<filepath{"imported/"{filename:<br>::'goto loop01n:<br>::move = "-f":<br>::move = filepath{filename:<br>
::move = filepath{"imported/"{filename:<br>::i=move:<br>::end:<br>loop01n::filename=dirlist; goto loop01s:<br>loop01e:::<br><br>Can anyone tell me how to use cp or mv with the USER command? Or is it just garbage and I should go back to SYSTEM?<br>