Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hardcoding paths with coms
Message
From
21/03/2000 19:10:31
 
 
To
21/03/2000 14:56:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00348550
Message ID:
00348665
Views:
19
>We're using asp with vfp com on nt server and have to hard code the drive letter right in the
>com, i.e. cappstartpath = c:\inetpub\wwwroot\imconform\.
>
>Any way that we do this without hardcoding ? Any input would be appreciated.
>

You could store the information somewhere that can be retrieved in a consistently resolvable fashion, like in a registry key, and read the value from the registry at runtime. Or any other consistently resolvable data store would do just as well.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform