main logo
Subject: RE: Run - How to suppress the DOS window
Author: Michael Madigan
Posted: 2006/03/31 22:52:09
 
View Entire Thread
New Search


You can put the DOS code in a batch file and use the
/n2 switch.

RUN /n2 \test.bat

These are the optional numbers that you can include
immediately following the N

1 Active and normal size
2 Active and minimized
3 Active and maximized
4 Inactive and normal size
7 Inactive and minimized

It will blink on the task bar, but that's it.


--- john harvey <john.harvey /AT/ shelbynet .DO.T com> wrote:

> Yep, keep it in Fox and don't worry be happy.
>
> John
>
> -----Original Message-----
> From: profox-bounces@leafe.com
> [mailto:profox-bounces /AT/ leafe .DO.T com] On Behalf
> Of Rob Anderson
> Sent: Friday, March 31, 2006 9:32 AM
> To: ProFox Email List
> Subject: RE: Run - How to suppress the DOS window
>
> Or you could do :-
>
> StrToFile(FileToStr("testa.txt"), "output.txt")
> StrToFile(FileToStr("testb.txt"), "output.txt", .T.)
>
> :)
>
> Robbo.
>
> -----Original Message-----
> From: profox-bounces@leafe.com
> [mailto:profox-bounces /AT/ leafe .DO.T com] On
> Behalf Of Dave Crozier
> Sent: 31 March 2006 16:22
> To: 'ProFox Email List'
> Subject: RE: Run - How to suppress the DOS window
>
> Garry
> Off the top of my head and without error checks:
>
> ******
> * Start Code
> *
> Close tables all
> File_Concat("C:\test\testA.txt",
> "C:\test\testA.txt",
> "C:\temp\Output.txt")
> *
> Return
>
> Function File_Concat(pcIn_File1, pcIn_File2,
> pcOut_File)
> LOCAL x, h, i, t1, t2
> LOCAL ARRAY laArray[1]
> h=FCREATE(cOut_File)
>
> x=FILETOSTR(pcIn_File1)
> FOR i= 1 TO ALINES(laArray,x)
> FPUTS(h, laArray[i])
> ENDFOR
> *
> x=FILETOSTR(pcIn_File2)
> FOR i= 1 TO ALINES(laArray,x)
> FPUTS(h, laArray[i])
> ENDFOR
> *
> FCLOSE(h)
> *
> Return .T.
> *
> EndFunc
> *
> * End Code
> *******
>
> Or of course you could do it all with filetostr()
> and strtofile() much
> shorter, or even using Windows scripting
>
> Dave Crozier BSc. Hons.
> "If it wasn't for C, we'd be writing programs in
> BASI, PASAL, and OBOL."
>
> -----Original Message-----
> From: profox-bounces@leafe.com
> [mailto:profox-bounces /AT/ leafe .DO.T com] On
> Behalf
> Of Garry Bettle
> Sent: 31 March 2006 15:56
> To: profox@leafe.com
> Subject: Run - How to suppress the DOS window
>
> Howdy all,
>
> Roll on the weekend!
>
> I'm trying to run a DOS copy to append two or more
> files together.
>
> However, the screen flashes up the DOS box.
>
> I thought you could suppress this - the help
> certainly says so.
>
> But, I can't get it to work.
>
> So, this flashes:
>
> run copy /b file1.txt+file2.txt file3.txt
>
> and I thought this wouldn't:
>
> run /N7 copy /b file1.txt+file2.txt file3.txt
>
> but I only get an error: "Run|! command failed"
>
> Quick, please help ... the beer monkeys are calling
> me.
>
> Garry
>
>
[excessive quoting removed by server]


 
©2006 Michael Madigan
<-- Prior Message New Search Next Message -->