KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Use 4D to take you to a network drive
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Win
Published On: April 28, 2005
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

Compatible with 4D 2004.x

Using the new command, LAUNCH EXTERNAL PROCESS, 4D can very easily interact with the underlying OS. The following code will open Windows Explorer to wherever you desire.

 C_TEXT($vPath)
 $vPath:=Request("Take me to...")

LAUNCH EXTERNAL PROCESS("explorer "+$vPath)

For example:
- Type in "c:" and you'll view the content of your C:\ drive.
- Type in "\\NetworkDrive\FolderName" and you'll view the content of a network folder assuming it exists and you’re properly connected.