Computing.Net > Forums > Programming > Foxpro Dos shortname

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Foxpro Dos shortname

Reply to Message Icon

Name: jester4281
Date: January 27, 2005 at 10:55:07 Pacific
OS: Windows XP
CPU/Ram: P4
Comment:

Can anyone tell me how, through Foxpro to return the DOS shortname of a directory ?

ex. C:\documents and settings\ryan\some really long folder name\

so it reads: C:\docume~1\ryan\some r~1\



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: January 28, 2005 at 01:59:59 Pacific
Reply:

Under Windows XP you can get the DOS shortnames using the /X switch in the Dir command, e.g.

Dir /X C:\documents and settings\ryan\some really long folder name\

but how then to use that is another story as you have to type the shortname explicitly in each command.

So explain exactly what you are trying to achieve and may be it is easier than you suppose.

And by the way what do you mean in your previous post saying "to test the Tree command"?



0

Response Number 2
Name: jester4281
Date: January 28, 2005 at 05:10:27 Pacific
Reply:

I am writting a app that allows the user to select the desidered location and then the app generates a Dos-tree view which it then runs out, replaces the ASCII Characters to make it look nice.

When I try to pass a long DOS name it errors, when I pass a ok path name it runs great.

Ryan


0

Response Number 3
Name: IVO
Date: January 28, 2005 at 05:52:37 Pacific
Reply:

You can run a legacy DOS application under Windows XP (under some constraints), but as the application interfaces the operating system through the int 21h interface (via the NTVDM emulator) you need to follow the old 8.3 file format when accessing the file system. That is why in FoxPro you get an error using long file names.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


running jsp in cron Need help using variable ...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Foxpro Dos shortname

FoxPro DOS Command help www.computing.net/answers/programming/foxpro-dos-command-help/12053.html

foxpro dsn www.computing.net/answers/programming/foxpro-dsn/12532.html

dos mode printing under visual foxpro 6. www.computing.net/answers/programming/dos-mode-printing-under-visual-foxpro-6/2780.html