[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Fwd: Re: Open for reading without knowing full filename



Title: RE: Fwd: Re: Open for reading without knowing full filename

Instead of hardcoding 'command.com /C ' or 'cmd.exe /C ', get the environmental variable, as in

let $cmd = getenv('COMSPEC') || ' /C ' || $Desired_Command

Regarding the WAIT, that is supposed to work on Windows and VMS only (see SQR Help CALL SYSTEM).

BTW, getenv works on non-Windows platforms too.

-----Original Message-----
From: richard.mitchell@GSA.GOV [mailto:richard.mitchell@GSA.GOV]
Sent: Friday, January 28, 2000 2:52 PM
To: SQR-USERS@list.iex.net
Subject: Re: Fwd: Re: Open for reading without knowing full filename


No, probably not messed up. I figured this out sometime back but can't find
it in the archive.

The problem is when a Win95 calls 'SYSTEM', that system in my situation is
CMD (NT) while the caller is COMMAND (W95). When the 2 environments try to
'communicate', not all of the commands are passed through. Ex. Move file1
file2 works. Copy file1 file2 does not.

One solution is to go out to the web and find code or code your own hard
call to the OS on the desktop and force it to wait.

HTH,

Rick

---------------------- Previous Replies  ---------------------------------


Unless my environment is screwed up, WAIT does not work.

Call System Using $Cmd #Status WAIT

is there an environment variable that I should set or something of the like?

Thanks to ALL,
-Hrair

>Use the 'wait' attribute of Call System.
>
>John Milardovic
>

> > Thank you very much Bob. That works very well. The only other question I > > have [you had to have known I would have another question!... 8^) ]

is:
> > How
> > do I make the SQR wait for this to finish before executing the rest of
the > > process? I was hoping to read the dirfile and process the files...
> >
> > Thanks again,
> > -Hrair
> >
> >