Tech Tip: Use 4D to take you to a network drive
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Win
Published On: April 28, 2005
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.