Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing Hidden Folders
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00663618
Message ID:
00663702
Views:
13
Kevin,

I see. Just tested that with the same result. I can think of two possible solutions:

1) Change the attribute of the directory temporarily to non-hidden. Do your cleanup and set the attribute back. But maybe this is prevented by some security settings.

2) You could check out if the VFP file operation commands you want to use can get into the folder using the full path to the files you want to manipulate. If that doesn't work either, there might be some API functions, that could do that. But I don't know if they really can.

HTH,
Armin

>Thats places the names of all into an array, but I still can't CD into
>a hidden folder.
>
>For example, I have:
>
>DIMENSION aFolders[1]
>nTotal = ADIR("aFolders", "*.*", "DHS")
>

>
>nTotal now has 18, only 4 of which are NOT hidden. So If I try
>
>CD (aFolders[15,1])
>

>I get the 'Invalid path or file name' error. Element 15 has the
>name "RECENT" in it, which is a hidden folder.
>
>I want to be able to go into the Recent folder and clean up files.

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Reply
Map
View

Click here to load this message in the networking platform