Sorting filePro Arrays

Jay R. Ashworth jra at baylink.com
Sun May 18 20:40:39 PDT 2008


On Sun, May 18, 2008 at 06:20:18PM -0400, Bob Stockler wrote:
>        If: DOS
>      Then: TEMP1 = "C:\temp\sort.tmp"
>        If: DOS
>      Then: TEMP2 = "C:\temp\sorted.tmp"
>        If: DOS
>      Then: system noredraw "SORT" < TEMP1 < ">" < TEMP2
> 
> The file "sorted.tmp" is created, but doen't contain the redirected
> output of SORT.
> 
> Can anyone offer any suggestions?

That's going to leave a space between the redirect character > and the
argument following it.  Unix (usually) doesn't care about that space,
but CMD.EXE might, and I don't even know whether SYSTEM calls that or
COMMAND.COM.

Try putting cmd.exe *explicitly* at the head of your system command.

Cheers,
-- jra
-- 
Jay R. Ashworth                   Baylink                      jra at baylink.com
Designer                     The Things I Think                       RFC 2100
Ashworth & Associates     http://baylink.pitas.com                     '87 e24
St Petersburg FL USA      http://photo.imageinc.us             +1 727 647 1274

	     Those who cast the vote decide nothing.
	     Those who count the vote decide everything.
	       -- (Joseph Stalin)


More information about the Filepro-list mailing list