Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hiding the DOS Command Prompt
Message
From
02/08/2002 07:06:14
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
 
 
To
02/08/2002 06:34:05
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00682911
Message ID:
00685349
Views:
25
>>>hello everybody,
>>>
>>>how could I hide the DOS Command Prompt that pops up when I run a DOS command in my VFP program?
>>>
>>>Thanks very much,
>>>Jimi
>>
>>Take a look at file #9477. It allows to run command hidden.
>
>Seems it can only run a program hidden, but cant run DOS command such as "copy"
>or just i'm missing something? anyway, I tried to use xcopy.exe instead of copy, it seems good.
>
>But then i have another problem: since my task is to copy some files to a folder and zip them, i have to wait until all files are copied before zipping. I used LaunchAppAndWait() for this, however, the program does not aware that xcopy is finished even after all files are copied, until the user press "Esc". This problem only occurs when using xcopy, it can waits and works again in correct timing when i test with other program (e.g. pkzip)
>
>Any idea?
>
>Thanks a lot!
>Jimi

Hi Sergey,

Ohoh seems ok now, i used
do while CopiedFile < TotalFile
   CopiedFile=adir(TempArr, "C:\Test\*.*")
enddo 
to pause the program until copying is finished, dunno if this is slowing down the process or what, at least it can wait a bit now. what do you think?

Jimi
error(503): file structure failure, signature file corrupted.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform