473,396 Members | 1,777 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Get the short path name

I had a quick look on the newsgroup, but i couldn't find the answer.

I have a long path name but i need to be able to extract the shortpath name
from it

How do i do this?
Nov 23 '05 #1
6 4289
"Jonathan Smith" <Jo***********@discussions.microsoft.com> schrieb:
I had a quick look on the newsgroup, but i couldn't find the answer.

I have a long path name but i need to be able to extract the shortpath
name
from it


See:

<URL:http://groups.google.de/group/microsoft.public.dotnet.languages.vb/msg/ebf01196a689c3af>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 23 '05 #2
What do you mean by shortpath?

"Jonathan Smith" <Jo***********@discussions.microsoft.com> wrote in message
news:97**********************************@microsof t.com...
I had a quick look on the newsgroup, but i couldn't find the answer.

I have a long path name but i need to be able to extract the shortpath
name
from it

How do i do this?

Nov 23 '05 #3

what he means ??

<tutor mode >

start , run , type cmd then enter
go to the root ( cd.. and press enter untill you reach the root of C )

now type progra~1

hey doens`t that look familiar ??? wel you have just entered the program
files folder ,, so this is the short path name

</tutor mode >

hth

Michel Posseth [MCP]

"SStory" <no****@nospam.com> wrote in message
news:uN**************@TK2MSFTNGP14.phx.gbl...
What do you mean by shortpath?

"Jonathan Smith" <Jo***********@discussions.microsoft.com> wrote in
message news:97**********************************@microsof t.com...
I had a quick look on the newsgroup, but i couldn't find the answer.

I have a long path name but i need to be able to extract the shortpath
name
from it

How do i do this?


Nov 23 '05 #4
ahum

now type progra~1
should be type cd progra~1 and press enter


"m.posseth" <mi*****@nohausystems.nl> wrote in message
news:OE******************@TK2MSFTNGP11.phx.gbl...
what he means ??

<tutor mode >

start , run , type cmd then enter
go to the root ( cd.. and press enter untill you reach the root of C )

now type progra~1

hey doens`t that look familiar ??? wel you have just entered the program
files folder ,, so this is the short path name

</tutor mode >

hth

Michel Posseth [MCP]

"SStory" <no****@nospam.com> wrote in message
news:uN**************@TK2MSFTNGP14.phx.gbl...
What do you mean by shortpath?

"Jonathan Smith" <Jo***********@discussions.microsoft.com> wrote in
message news:97**********************************@microsof t.com...
I had a quick look on the newsgroup, but i couldn't find the answer.

I have a long path name but i need to be able to extract the shortpath
name
from it

How do i do this?



Nov 23 '05 #5
I thought that might be what he meant, but wanted clarification.
"m.posseth" <mi*****@nohausystems.nl> wrote in message
news:OE******************@TK2MSFTNGP11.phx.gbl...

what he means ??

<tutor mode >

start , run , type cmd then enter
go to the root ( cd.. and press enter untill you reach the root of C )

now type progra~1

hey doens`t that look familiar ??? wel you have just entered the program
files folder ,, so this is the short path name

</tutor mode >

hth

Michel Posseth [MCP]

"SStory" <no****@nospam.com> wrote in message
news:uN**************@TK2MSFTNGP14.phx.gbl...
What do you mean by shortpath?

"Jonathan Smith" <Jo***********@discussions.microsoft.com> wrote in
message news:97**********************************@microsof t.com...
I had a quick look on the newsgroup, but i couldn't find the answer.

I have a long path name but i need to be able to extract the shortpath
name
from it

How do i do this?



Nov 23 '05 #6
Herfried's response gave me the info i was looking for

THanks all

"SStory" wrote:
I thought that might be what he meant, but wanted clarification.
"m.posseth" <mi*****@nohausystems.nl> wrote in message
news:OE******************@TK2MSFTNGP11.phx.gbl...

what he means ??

<tutor mode >

start , run , type cmd then enter
go to the root ( cd.. and press enter untill you reach the root of C )

now type progra~1

hey doens`t that look familiar ??? wel you have just entered the program
files folder ,, so this is the short path name

</tutor mode >

hth

Michel Posseth [MCP]

"SStory" <no****@nospam.com> wrote in message
news:uN**************@TK2MSFTNGP14.phx.gbl...
What do you mean by shortpath?

"Jonathan Smith" <Jo***********@discussions.microsoft.com> wrote in
message news:97**********************************@microsof t.com...
I had a quick look on the newsgroup, but i couldn't find the answer.

I have a long path name but i need to be able to extract the shortpath
name
from it

How do i do this?



Nov 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: F. GEIGER | last post by:
+--------------------------------------------------------------+ | | +--------------------------------------------------------------+ |...
2
by: dotNetDave | last post by:
How do you convert a path like this: C:\Program Files to C:\PROGRA~1 In .NET? I have a program I have to call via a command line and calling one of it's parameters I have to give it a...
5
by: Frank Borell | last post by:
I'm having a problem retrieving the ShortName from a file that was written by a MAC and only from a Windows 2003 server. I realize the file has a space after it, but I can retrieve the short...
4
by: Claire | last post by:
When I call the Path.GetTempFileName() function I'm getting the following file path returned. C:\DOCUME~1\CLAIRE~1.JFM\LOCALS~1\Temp\tmp51.tmp For some reason, when the temp file's opened, it's...
1
by: BobAchgill | last post by:
The short cuts my windows installer made for the Start and the Desktop look different than standard shortcuts. The Target in the shortcut file properties is greyed out and shows the name of the...
4
by: Doug Bell | last post by:
Hi, I have a small application with a User Settings form I would like to give the Users the ability to (at any time) set the Application to load when the PC is started. Can someone point me in...
4
by: bytecolor | last post by:
Hi people, Using win32com on 2k SP3... >>> import win32com.client as w32c >>> fc = w32c.Dispatch('Featurecam.Application') >>> fc.InstallPath u'C:\\PROGRA~1\\FEATUR~1' >>> Using win32com...
4
by: Ben | last post by:
Hi We have a list of file paths and short file names in our database. We need to loop through them all, picking up the long file name from the file itself and check that the long file name...
7
by: latalui | last post by:
i am a beginner, guys plizzzzzzzz help me. i am given a assignment to find short paths either using dijkstra algorithm or using binary search algorithm in linux OS. check out what is wrong the code...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.