[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Question on CALL SYSTEM
I don't recall all the details behind the system call but this was the
suggestion I received a while back and has worked well for me.
LET $COMMAND = GETENV('COMSPEC') || ' /c copy c:\source\*.* c:\target\*.*'
call system using $COMMAND #s
I think you could probably get more details on this from the archives but I'm
have a CRS day.
Anthony Leung-New York wrote:
> Dear all,
>
> I have a sqr that is running on a Windows 95 environment. I need to do a
> CALL SYSTEM to copy files from one directory to another. According to the
> SQR Reference book the syntax should be as follow:
>
> CALL SYSTEM USING 'copy c:\source\*.* c:\target\' #s
>
> where #s returns the status of the call.
>
> I ran the sqr but the return status is always 2 (which indicates an error)
> and nothing gets copied over to the target
>
> Can someone shed some light in this area.
>
> Thanks