Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hiding CreateProcess
Message
De
27/01/2004 10:04:14
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Hiding CreateProcess
Divers
Thread ID:
00870949
Message ID:
00870949
Vues:
58
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"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform