Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Long File/Folder names

Status
Not open for further replies.

BobbyT

Programmer
Nov 15, 2000
9
0
0
US
Using VP6 I was able to create a long folder name using indirect reference.
But I have not been able to "SET DEFAULT TO" this name. Is this a
limitation in VP6 or should I keep trying until I get it
right?

EXAMPLE:

FOLDER="Long Folder Name"
MD (FOLDER)
 
Either SET DEFAULT TO or CD will work but you have to do it this way:
CD (FOLDER)
SET DEFAULT TO (FOLDER)

OR

CD "Long Folder Name"
SET DEFAULT TO "Long Folder Name"
Using quotes when there are spaces in the folder name.

Be sure that you include the drive designator ("C:\Long Folder name") where applicable. it never hurst to give too much information in this case.
 
lcFolder = "My Long Foldername"
MD (lcFolder)
CD (lcFolder) John Durbin
john@johndurbin.com
MCP Visual FoxPro
ICQ VFP ActiveList #73897253
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top