Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining OS System Directory
Message
 
To
30/08/2000 16:59:18
Ronald Suen
Epic Solutions Inc.
Edmonton, Alberta, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00411030
Message ID:
00411046
Views:
11
This is what I've used for a long time:
DECLARE INTEGER GetSystemDirectory IN Win32API AS GetSysDir ;
	String @cBuffer, Integer nBufferSize

pcBuffer = SPACE(199)
=GetSysDir(@pcBuffer, 200)
pcBuffer = ALLT(STRTRAN(pcBuffer, CHR(0), ""))
IF .NOT.EMPT(pcBuffer)
	lcWinSysDir = pcBuffer
ENDIF
>I am trying to develop an application that will self-distribute itself and install the OCX and DLL files it needs but I don't know what syntax is or function to call to locate the System directory of the OS to copy these files to. I cannot use the Setup Wizard to generate the setup files or to install the OCX and DLL files. I need my application to do it. Can someone help me on this one?
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform