Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Directory Access Errors with 'CD' or 'SET DEFAULT' comma
Message
From
26/01/1999 17:40:32
 
 
To
26/01/1999 16:02:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00180446
Message ID:
00180518
Views:
20
>I've been trying to access the fonts directory and the recycled directory with win95, and I get an 'invalid path or directory' error, but they do exist?
>
>Is there some way around this? I need to get into these...

Certain system folders are not directly accessible (VFP doesn't seem to like to change into a directory with the System attribute set), but you can manipulate the contents. What do you need to do? For example, to get a list of the files in C:\WINDOWS\FONTS, you can do something like:

DECLARE aFiles[1,5]
nFiles = ADIR(aFiles,'C:\WINDOWS\FONTS\*.*','SH')
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
Next
Reply
Map
View

Click here to load this message in the networking platform