Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why cd .. does not work?
Message
From
05/04/2000 23:53:59
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00355830
Message ID:
00356081
Views:
14
>>cd otherdirectory works
>>cd ..
>>does not work in the prg, but it does in the command window.
>>Where am I wrong?
>
>Typically, it indicates that you're in the root directory of the currently selected drive; this could be a real root directory, the root of a mapped share, or a UNC reference at the sharename level already.
>
>Other causes in network environments include not having rights to the parent directory (in Novell networks, you have no read/write/manage rights, but do have search rights enabling you to get to lower level directories where you do have rights) or under NT/Win2K you've been denied permissions in the folder but have permissions lower in the directory tree, or you're using a file system that doesn't support tgree structures (eg an elderly CDOS/CCPM server that makes a CP/M-style volume available - there is no concept of a tree hierarchy in the file system.)
>
>You can try the following:
>
>
IF ! FULLPATH('..') == FULLPATH('.')
>   CD ..

A better choice would be:

   CD (FULLPATH('..'))

>ENDIF
>
>>Thanx in advance
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