Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hiding CreateProcess
Message
From
27/01/2004 10:04:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Hiding CreateProcess
Miscellaneous
Thread ID:
00870949
Message ID:
00870949
Views:
57
I have been trying to do the following using createprocess instead of using the run command:
DIMENSION netline(1)
netline(1) = ''
WAIT WINDOW NOWAIT 'Determining network resources...'
IF FILE("TEMP.TXT")
	DELETE FILE TEMP.TXT
ENDIF
! NET USE >TEMP.TXT
m.handle = FOPEN('TEMP.TXT',0)
IF m.handle >= 0
	x = 0
	DIMENSION netline(1)
	netline = ''
	DO WHILE ! FEOF(m.handle)
		x = x + 1
		DIMENSION netline(x)
		netline(x) = FGETS(m.handle)
	ENDDO
	=FCLOSE(m.handle)
	WAIT CLEAR
ELSE
	DO OKAY WITH 'Unable to retrieve network connections.'
ENDIF
However, using createprocess doesn't seem to always be reliable and I cannot hide the window.

Any ideas?
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Next
Reply
Map
View

Click here to load this message in the networking platform