Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Virtual PC

Vista - GetShortPathName issue

Reply
 
Old 08-01-2008   #1 (permalink)
PGP


 
 

GetShortPathName issue

Windows XP Pro SP 2 on Virtual PC 2007 (6.0.192)

I am seeing a problem with GetShortPathName API in a VM where it is not
returning the correct short path name. It seems to quit applying the short
path after the first directory.
For eg.
I am doing GetShortPathName on C:\Program Files\Microsoft.NET\Primary
Interop Assemblies

I get
C:\PROGRA~1\Microsoft.NET\Primary Interop Assemblies on Virtual PC
and
C:\PROGRA~1\MICROS~1.NET\PRIMAR~1 on the host OS (Vista)

Is there something i am missing?

TIA
Priyesh


My System SpecsSystem Spec
Old 08-01-2008   #2 (permalink)
Dave Williamson


 
 

RE: GetShortPathName issue

I'm not sure why but I think you are on to something.

I looked at a "dir /x" on a virtual pc 2007 sp1 machine and directories that
have long file names have a blank short name.

Here is an example output where .net 2.0 framework and sql server 2005
express was installed within VPC 2007 SP1:

Volume in drive C has no label.
Volume Serial Number is 8C31-AA1D

Directory of C:\PROGRA~1

07/29/2008 04:35 PM <DIR> .
07/29/2008 04:35 PM <DIR> ..
07/29/2008 04:27 PM <DIR> COMMON~1 Common Files
09/24/2007 05:16 PM <DIR> COMPLU~1 ComPlus Applications
07/29/2008 04:24 PM <DIR> INTERN~1 Internet Explorer
09/24/2007 05:16 PM <DIR> MICROS~1 microsoft frontpage
07/29/2008 04:32 PM <DIR> Microsoft SQL Server
07/29/2008 04:30 PM <DIR> Microsoft.NET
09/24/2007 05:16 PM <DIR> MOVIEM~1 Movie Maker
09/24/2007 05:16 PM <DIR> MSNGAM~1 MSN Gaming Zone
09/24/2007 05:16 PM <DIR> NETMEE~1 NetMeeting
09/24/2007 05:16 PM <DIR> ONLINE~1 Online Services
09/24/2007 05:16 PM <DIR> OUTLOO~1 Outlook Express
11/27/2007 12:28 AM <DIR> Virtual Machine Additions
11/27/2007 01:08 AM <DIR> 857896~1.TMP Windows Media Connect
09/24/2007 05:30 PM <DIR> WINDOW~2 Windows Media Player
09/24/2007 05:17 PM <DIR> WINDOW~1 Windows NT
09/24/2007 05:17 PM <DIR> xerox
0 File(s) 0 bytes
19 Dir(s) 14,074,114,048 bytes free





"PGP" wrote:
Quote:

> Windows XP Pro SP 2 on Virtual PC 2007 (6.0.192)
>
> I am seeing a problem with GetShortPathName API in a VM where it is not
> returning the correct short path name. It seems to quit applying the short
> path after the first directory.
> For eg.
> I am doing GetShortPathName on C:\Program Files\Microsoft.NET\Primary
> Interop Assemblies
>
> I get
> C:\PROGRA~1\Microsoft.NET\Primary Interop Assemblies on Virtual PC
> and
> C:\PROGRA~1\MICROS~1.NET\PRIMAR~1 on the host OS (Vista)
>
> Is there something i am missing?
>
> TIA
> Priyesh
>
>
My System SpecsSystem Spec
Old 08-01-2008   #3 (permalink)
Robert Comer


 
 

Re: GetShortPathName issue

My host XP machine does exactly the same, it must be some difference
in XP itself.

--
Bob Comer


On Fri, 1 Aug 2008 13:53:25 -0700, Dave Williamson
<DaveWilliamson@xxxxxx> wrote:
Quote:

>I'm not sure why but I think you are on to something.
>
>I looked at a "dir /x" on a virtual pc 2007 sp1 machine and directories that
>have long file names have a blank short name.
>
>Here is an example output where .net 2.0 framework and sql server 2005
>express was installed within VPC 2007 SP1:
>
> Volume in drive C has no label.
> Volume Serial Number is 8C31-AA1D
>
> Directory of C:\PROGRA~1
>
>07/29/2008 04:35 PM <DIR> .
>07/29/2008 04:35 PM <DIR> ..
>07/29/2008 04:27 PM <DIR> COMMON~1 Common Files
>09/24/2007 05:16 PM <DIR> COMPLU~1 ComPlus Applications
>07/29/2008 04:24 PM <DIR> INTERN~1 Internet Explorer
>09/24/2007 05:16 PM <DIR> MICROS~1 microsoft frontpage
>07/29/2008 04:32 PM <DIR> Microsoft SQL Server
>07/29/2008 04:30 PM <DIR> Microsoft.NET
>09/24/2007 05:16 PM <DIR> MOVIEM~1 Movie Maker
>09/24/2007 05:16 PM <DIR> MSNGAM~1 MSN Gaming Zone
>09/24/2007 05:16 PM <DIR> NETMEE~1 NetMeeting
>09/24/2007 05:16 PM <DIR> ONLINE~1 Online Services
>09/24/2007 05:16 PM <DIR> OUTLOO~1 Outlook Express
>11/27/2007 12:28 AM <DIR> Virtual Machine Additions
>11/27/2007 01:08 AM <DIR> 857896~1.TMP Windows Media Connect
>09/24/2007 05:30 PM <DIR> WINDOW~2 Windows Media Player
>09/24/2007 05:17 PM <DIR> WINDOW~1 Windows NT
>09/24/2007 05:17 PM <DIR> xerox
> 0 File(s) 0 bytes
> 19 Dir(s) 14,074,114,048 bytes free
>
>
>
>
>
>"PGP" wrote:
>
Quote:

>> Windows XP Pro SP 2 on Virtual PC 2007 (6.0.192)
>>
>> I am seeing a problem with GetShortPathName API in a VM where it is not
>> returning the correct short path name. It seems to quit applying the short
>> path after the first directory.
>> For eg.
>> I am doing GetShortPathName on C:\Program Files\Microsoft.NET\Primary
>> Interop Assemblies
>>
>> I get
>> C:\PROGRA~1\Microsoft.NET\Primary Interop Assemblies on Virtual PC
>> and
>> C:\PROGRA~1\MICROS~1.NET\PRIMAR~1 on the host OS (Vista)
>>
>> Is there something i am missing?
>>
>> TIA
>> Priyesh
>>
>>
My System SpecsSystem Spec
Old 08-01-2008   #4 (permalink)
Dave Williamson


 
 

Re: GetShortPathName issue

And just to follow up.

I did the dir /x on the host machine that the VPC is on and it reports the
shortnames as expected. The host machine however has been updated to XP SP3.



"Robert Comer" wrote:
Quote:

> My host XP machine does exactly the same, it must be some difference
> in XP itself.
>
> --
> Bob Comer
>
>
> On Fri, 1 Aug 2008 13:53:25 -0700, Dave Williamson
> <DaveWilliamson@xxxxxx> wrote:
>
Quote:

> >I'm not sure why but I think you are on to something.
> >
> >I looked at a "dir /x" on a virtual pc 2007 sp1 machine and directories that
> >have long file names have a blank short name.
> >
> >Here is an example output where .net 2.0 framework and sql server 2005
> >express was installed within VPC 2007 SP1:
> >
> > Volume in drive C has no label.
> > Volume Serial Number is 8C31-AA1D
> >
> > Directory of C:\PROGRA~1
> >
> >07/29/2008 04:35 PM <DIR> .
> >07/29/2008 04:35 PM <DIR> ..
> >07/29/2008 04:27 PM <DIR> COMMON~1 Common Files
> >09/24/2007 05:16 PM <DIR> COMPLU~1 ComPlus Applications
> >07/29/2008 04:24 PM <DIR> INTERN~1 Internet Explorer
> >09/24/2007 05:16 PM <DIR> MICROS~1 microsoft frontpage
> >07/29/2008 04:32 PM <DIR> Microsoft SQL Server
> >07/29/2008 04:30 PM <DIR> Microsoft.NET
> >09/24/2007 05:16 PM <DIR> MOVIEM~1 Movie Maker
> >09/24/2007 05:16 PM <DIR> MSNGAM~1 MSN Gaming Zone
> >09/24/2007 05:16 PM <DIR> NETMEE~1 NetMeeting
> >09/24/2007 05:16 PM <DIR> ONLINE~1 Online Services
> >09/24/2007 05:16 PM <DIR> OUTLOO~1 Outlook Express
> >11/27/2007 12:28 AM <DIR> Virtual Machine Additions
> >11/27/2007 01:08 AM <DIR> 857896~1.TMP Windows Media Connect
> >09/24/2007 05:30 PM <DIR> WINDOW~2 Windows Media Player
> >09/24/2007 05:17 PM <DIR> WINDOW~1 Windows NT
> >09/24/2007 05:17 PM <DIR> xerox
> > 0 File(s) 0 bytes
> > 19 Dir(s) 14,074,114,048 bytes free
> >
> >
> >
> >
> >
> >"PGP" wrote:
> >
Quote:

> >> Windows XP Pro SP 2 on Virtual PC 2007 (6.0.192)
> >>
> >> I am seeing a problem with GetShortPathName API in a VM where it is not
> >> returning the correct short path name. It seems to quit applying the short
> >> path after the first directory.
> >> For eg.
> >> I am doing GetShortPathName on C:\Program Files\Microsoft.NET\Primary
> >> Interop Assemblies
> >>
> >> I get
> >> C:\PROGRA~1\Microsoft.NET\Primary Interop Assemblies on Virtual PC
> >> and
> >> C:\PROGRA~1\MICROS~1.NET\PRIMAR~1 on the host OS (Vista)
> >>
> >> Is there something i am missing?
> >>
> >> TIA
> >> Priyesh
> >>
> >>
>
My System SpecsSystem Spec
Old 08-01-2008   #5 (permalink)
PGP


 
 

Re: GetShortPathName issue

I came across this issue as part of debugging a "server does not start in
vm" problem. I found out that the server program takes certain commandline
arguments and would only take short paths. So the program that actually
makes those command line arguments has code to create short path names.

Now i know for a fact that the same installation works correctly in XP and
Vista machines. And all those installations go to the C:\Program
Files\<company name>\<product name with spaces>system\data\.

I dont think it has something to do with XP. I ran the dir /X on an XP
machine and get this.

01/25/2008 04:06 AM <DIR> INTERN~1 Internet Explorer
04/01/2008 10:24 AM <DIR> Java
05/14/2007 09:06 AM <DIR> MESSEN~1 Messenger
05/21/2007 10:53 AM <DIR> METROW~1 Metrowerks
05/17/2007 05:01 PM <DIR> MIED60~1 Microsoft ACT
06/12/2007 02:12 PM <DIR> MI3AA1~1 Microsoft ActiveSync

This seems to work as expected for long file names without spaces.

Priyesh

"Robert Comer" <bobcomer-removeme-@xxxxxx> wrote in message
news:g3v694l2ohu8q3k811ln9s6v5fpm8hcgn1@xxxxxx
Quote:

> My host XP machine does exactly the same, it must be some difference
> in XP itself.
>
> --
> Bob Comer
>
>
> On Fri, 1 Aug 2008 13:53:25 -0700, Dave Williamson
> <DaveWilliamson@xxxxxx> wrote:
>
Quote:

>>I'm not sure why but I think you are on to something.
>>
>>I looked at a "dir /x" on a virtual pc 2007 sp1 machine and directories
>>that
>>have long file names have a blank short name.
>>
>>Here is an example output where .net 2.0 framework and sql server 2005
>>express was installed within VPC 2007 SP1:
>>
>> Volume in drive C has no label.
>> Volume Serial Number is 8C31-AA1D
>>
>> Directory of C:\PROGRA~1
>>
>>07/29/2008 04:35 PM <DIR> .
>>07/29/2008 04:35 PM <DIR> ..
>>07/29/2008 04:27 PM <DIR> COMMON~1 Common Files
>>09/24/2007 05:16 PM <DIR> COMPLU~1 ComPlus Applications
>>07/29/2008 04:24 PM <DIR> INTERN~1 Internet Explorer
>>09/24/2007 05:16 PM <DIR> MICROS~1 microsoft frontpage
>>07/29/2008 04:32 PM <DIR> Microsoft SQL Server
>>07/29/2008 04:30 PM <DIR> Microsoft.NET
>>09/24/2007 05:16 PM <DIR> MOVIEM~1 Movie Maker
>>09/24/2007 05:16 PM <DIR> MSNGAM~1 MSN Gaming Zone
>>09/24/2007 05:16 PM <DIR> NETMEE~1 NetMeeting
>>09/24/2007 05:16 PM <DIR> ONLINE~1 Online Services
>>09/24/2007 05:16 PM <DIR> OUTLOO~1 Outlook Express
>>11/27/2007 12:28 AM <DIR> Virtual Machine
>>Additions
>>11/27/2007 01:08 AM <DIR> 857896~1.TMP Windows Media Connect
>>09/24/2007 05:30 PM <DIR> WINDOW~2 Windows Media Player
>>09/24/2007 05:17 PM <DIR> WINDOW~1 Windows NT
>>09/24/2007 05:17 PM <DIR> xerox
>> 0 File(s) 0 bytes
>> 19 Dir(s) 14,074,114,048 bytes free
>>
>>
>>
>>
>>
>>"PGP" wrote:
>>
Quote:

>>> Windows XP Pro SP 2 on Virtual PC 2007 (6.0.192)
>>>
>>> I am seeing a problem with GetShortPathName API in a VM where it is not
>>> returning the correct short path name. It seems to quit applying the
>>> short
>>> path after the first directory.
>>> For eg.
>>> I am doing GetShortPathName on C:\Program Files\Microsoft.NET\Primary
>>> Interop Assemblies
>>>
>>> I get
>>> C:\PROGRA~1\Microsoft.NET\Primary Interop Assemblies on Virtual PC
>>> and
>>> C:\PROGRA~1\MICROS~1.NET\PRIMAR~1 on the host OS (Vista)
>>>
>>> Is there something i am missing?
>>>
>>> TIA
>>> Priyesh
>>>
>>>
My System SpecsSystem Spec
Old 08-01-2008   #6 (permalink)
Robert Comer


 
 

Re: GetShortPathName issue

Mine's SP3 as well.

--
Bob Comer


On Fri, 1 Aug 2008 14:41:10 -0700, Dave Williamson
<DaveWilliamson@xxxxxx> wrote:
Quote:

>And just to follow up.
>
>I did the dir /x on the host machine that the VPC is on and it reports the
>shortnames as expected. The host machine however has been updated to XP SP3.
>
>
>
>"Robert Comer" wrote:
>
Quote:

>> My host XP machine does exactly the same, it must be some difference
>> in XP itself.
>>
>> --
>> Bob Comer
>>
>>
>> On Fri, 1 Aug 2008 13:53:25 -0700, Dave Williamson
>> <DaveWilliamson@xxxxxx> wrote:
>>
Quote:

>> >I'm not sure why but I think you are on to something.
>> >
>> >I looked at a "dir /x" on a virtual pc 2007 sp1 machine and directories that
>> >have long file names have a blank short name.
>> >
>> >Here is an example output where .net 2.0 framework and sql server 2005
>> >express was installed within VPC 2007 SP1:
>> >
>> > Volume in drive C has no label.
>> > Volume Serial Number is 8C31-AA1D
>> >
>> > Directory of C:\PROGRA~1
>> >
>> >07/29/2008 04:35 PM <DIR> .
>> >07/29/2008 04:35 PM <DIR> ..
>> >07/29/2008 04:27 PM <DIR> COMMON~1 Common Files
>> >09/24/2007 05:16 PM <DIR> COMPLU~1 ComPlus Applications
>> >07/29/2008 04:24 PM <DIR> INTERN~1 Internet Explorer
>> >09/24/2007 05:16 PM <DIR> MICROS~1 microsoft frontpage
>> >07/29/2008 04:32 PM <DIR> Microsoft SQL Server
>> >07/29/2008 04:30 PM <DIR> Microsoft.NET
>> >09/24/2007 05:16 PM <DIR> MOVIEM~1 Movie Maker
>> >09/24/2007 05:16 PM <DIR> MSNGAM~1 MSN Gaming Zone
>> >09/24/2007 05:16 PM <DIR> NETMEE~1 NetMeeting
>> >09/24/2007 05:16 PM <DIR> ONLINE~1 Online Services
>> >09/24/2007 05:16 PM <DIR> OUTLOO~1 Outlook Express
>> >11/27/2007 12:28 AM <DIR> Virtual Machine Additions
>> >11/27/2007 01:08 AM <DIR> 857896~1.TMP Windows Media Connect
>> >09/24/2007 05:30 PM <DIR> WINDOW~2 Windows Media Player
>> >09/24/2007 05:17 PM <DIR> WINDOW~1 Windows NT
>> >09/24/2007 05:17 PM <DIR> xerox
>> > 0 File(s) 0 bytes
>> > 19 Dir(s) 14,074,114,048 bytes free
>> >
>> >
>> >
>> >
>> >
>> >"PGP" wrote:
>> >
>> >> Windows XP Pro SP 2 on Virtual PC 2007 (6.0.192)
>> >>
>> >> I am seeing a problem with GetShortPathName API in a VM where it is not
>> >> returning the correct short path name. It seems to quit applying the short
>> >> path after the first directory.
>> >> For eg.
>> >> I am doing GetShortPathName on C:\Program Files\Microsoft.NET\Primary
>> >> Interop Assemblies
>> >>
>> >> I get
>> >> C:\PROGRA~1\Microsoft.NET\Primary Interop Assemblies on Virtual PC
>> >> and
>> >> C:\PROGRA~1\MICROS~1.NET\PRIMAR~1 on the host OS (Vista)
>> >>
>> >> Is there something i am missing?
>> >>
>> >> TIA
>> >> Priyesh
>> >>
>> >>
>>
My System SpecsSystem Spec
Old 08-01-2008   #7 (permalink)
Robert Comer


 
 

Re: GetShortPathName issue

I'm seeing something very weird with my machine, so maybe there's
something wrong with it specifically, but I don't see how only being
in a VM could possibly cause this unless it has something to do with
the additions, and even then, I don't think there's anything there
that would do that. The VM doesn't have anything to do with the file
system, it's all up to the OS running in the VM.

--
Bob Comer


On Fri, 1 Aug 2008 15:43:32 -0600, "PGP" <priyesh@xxxxxx_not_reply> wrote:
Quote:

>I came across this issue as part of debugging a "server does not start in
>vm" problem. I found out that the server program takes certain commandline
>arguments and would only take short paths. So the program that actually
>makes those command line arguments has code to create short path names.
>
>Now i know for a fact that the same installation works correctly in XP and
>Vista machines. And all those installations go to the C:\Program
>Files\<company name>\<product name with spaces>system\data\.
>
>I dont think it has something to do with XP. I ran the dir /X on an XP
>machine and get this.
>
>01/25/2008 04:06 AM <DIR> INTERN~1 Internet Explorer
>04/01/2008 10:24 AM <DIR> Java
>05/14/2007 09:06 AM <DIR> MESSEN~1 Messenger
>05/21/2007 10:53 AM <DIR> METROW~1 Metrowerks
>05/17/2007 05:01 PM <DIR> MIED60~1 Microsoft ACT
>06/12/2007 02:12 PM <DIR> MI3AA1~1 Microsoft ActiveSync
>
>This seems to work as expected for long file names without spaces.
>
>Priyesh
>
>"Robert Comer" <bobcomer-removeme-@xxxxxx> wrote in message
>news:g3v694l2ohu8q3k811ln9s6v5fpm8hcgn1@xxxxxx
Quote:

>> My host XP machine does exactly the same, it must be some difference
>> in XP itself.
>>
>> --
>> Bob Comer
>>
>>
>> On Fri, 1 Aug 2008 13:53:25 -0700, Dave Williamson
>> <DaveWilliamson@xxxxxx> wrote:
>>
Quote:

>>>I'm not sure why but I think you are on to something.
>>>
>>>I looked at a "dir /x" on a virtual pc 2007 sp1 machine and directories
>>>that
>>>have long file names have a blank short name.
>>>
>>>Here is an example output where .net 2.0 framework and sql server 2005
>>>express was installed within VPC 2007 SP1:
>>>
>>> Volume in drive C has no label.
>>> Volume Serial Number is 8C31-AA1D
>>>
>>> Directory of C:\PROGRA~1
>>>
>>>07/29/2008 04:35 PM <DIR> .
>>>07/29/2008 04:35 PM <DIR> ..
>>>07/29/2008 04:27 PM <DIR> COMMON~1 Common Files
>>>09/24/2007 05:16 PM <DIR> COMPLU~1 ComPlus Applications
>>>07/29/2008 04:24 PM <DIR> INTERN~1 Internet Explorer
>>>09/24/2007 05:16 PM <DIR> MICROS~1 microsoft frontpage
>>>07/29/2008 04:32 PM <DIR> Microsoft SQL Server
>>>07/29/2008 04:30 PM <DIR> Microsoft.NET
>>>09/24/2007 05:16 PM <DIR> MOVIEM~1 Movie Maker
>>>09/24/2007 05:16 PM <DIR> MSNGAM~1 MSN Gaming Zone
>>>09/24/2007 05:16 PM <DIR> NETMEE~1 NetMeeting
>>>09/24/2007 05:16 PM <DIR> ONLINE~1 Online Services
>>>09/24/2007 05:16 PM <DIR> OUTLOO~1 Outlook Express
>>>11/27/2007 12:28 AM <DIR> Virtual Machine
>>>Additions
>>>11/27/2007 01:08 AM <DIR> 857896~1.TMP Windows Media Connect
>>>09/24/2007 05:30 PM <DIR> WINDOW~2 Windows Media Player
>>>09/24/2007 05:17 PM <DIR> WINDOW~1 Windows NT
>>>09/24/2007 05:17 PM <DIR> xerox
>>> 0 File(s) 0 bytes
>>> 19 Dir(s) 14,074,114,048 bytes free
>>>
>>>
>>>
>>>
>>>
>>>"PGP" wrote:
>>>
>>>> Windows XP Pro SP 2 on Virtual PC 2007 (6.0.192)
>>>>
>>>> I am seeing a problem with GetShortPathName API in a VM where it is not
>>>> returning the correct short path name. It seems to quit applying the
>>>> short
>>>> path after the first directory.
>>>> For eg.
>>>> I am doing GetShortPathName on C:\Program Files\Microsoft.NET\Primary
>>>> Interop Assemblies
>>>>
>>>> I get
>>>> C:\PROGRA~1\Microsoft.NET\Primary Interop Assemblies on Virtual PC
>>>> and
>>>> C:\PROGRA~1\MICROS~1.NET\PRIMAR~1 on the host OS (Vista)
>>>>
>>>> Is there something i am missing?
>>>>
>>>> TIA
>>>> Priyesh
>>>>
>>>>
My System SpecsSystem Spec
Old 08-02-2008   #8 (permalink)
PGP


 
 

Re: GetShortPathName issue

Robert,

Good point there about the additions. I am not sure if anything they do will
cause this issue, but i would like to test this on a VM without additions.

Priyesh

"Robert Comer" <bobcomer-removeme-@xxxxxx> wrote in message
news:8na794h7737b0hugn62vs2pc47pe9uv33t@xxxxxx
Quote:

> I'm seeing something very weird with my machine, so maybe there's
> something wrong with it specifically, but I don't see how only being
> in a VM could possibly cause this unless it has something to do with
> the additions, and even then, I don't think there's anything there
> that would do that. The VM doesn't have anything to do with the file
> system, it's all up to the OS running in the VM.
>
> --
> Bob Comer
>
>
> On Fri, 1 Aug 2008 15:43:32 -0600, "PGP" <priyesh@xxxxxx_not_reply> wrote:
>
Quote:

>>I came across this issue as part of debugging a "server does not start in
>>vm" problem. I found out that the server program takes certain commandline
>>arguments and would only take short paths. So the program that actually
>>makes those command line arguments has code to create short path names.
>>
>>Now i know for a fact that the same installation works correctly in XP and
>>Vista machines. And all those installations go to the C:\Program
>>Files\<company name>\<product name with spaces>system\data\.
>>
>>I dont think it has something to do with XP. I ran the dir /X on an XP
>>machine and get this.
>>
>>01/25/2008 04:06 AM <DIR> INTERN~1 Internet Explorer
>>04/01/2008 10:24 AM <DIR> Java
>>05/14/2007 09:06 AM <DIR> MESSEN~1 Messenger
>>05/21/2007 10:53 AM <DIR> METROW~1 Metrowerks
>>05/17/2007 05:01 PM <DIR> MIED60~1 Microsoft ACT
>>06/12/2007 02:12 PM <DIR> MI3AA1~1 Microsoft ActiveSync
>>
>>This seems to work as expected for long file names without spaces.
>>
>>Priyesh
>>
>>"Robert Comer" <bobcomer-removeme-@xxxxxx> wrote in message
>>news:g3v694l2ohu8q3k811ln9s6v5fpm8hcgn1@xxxxxx
Quote:

>>> My host XP machine does exactly the same, it must be some difference
>>> in XP itself.
>>>
>>> --
>>> Bob Comer
>>>
>>>
>>> On Fri, 1 Aug 2008 13:53:25 -0700, Dave Williamson
>>> <DaveWilliamson@xxxxxx> wrote:
>>>
>>>>I'm not sure why but I think you are on to something.
>>>>
>>>>I looked at a "dir /x" on a virtual pc 2007 sp1 machine and directories
>>>>that
>>>>have long file names have a blank short name.
>>>>
>>>>Here is an example output where .net 2.0 framework and sql server 2005
>>>>express was installed within VPC 2007 SP1:
>>>>
>>>> Volume in drive C has no label.
>>>> Volume Serial Number is 8C31-AA1D
>>>>
>>>> Directory of C:\PROGRA~1
>>>>
>>>>07/29/2008 04:35 PM <DIR> .
>>>>07/29/2008 04:35 PM <DIR> ..
>>>>07/29/2008 04:27 PM <DIR> COMMON~1 Common Files
>>>>09/24/2007 05:16 PM <DIR> COMPLU~1 ComPlus Applications
>>>>07/29/2008 04:24 PM <DIR> INTERN~1 Internet Explorer
>>>>09/24/2007 05:16 PM <DIR> MICROS~1 microsoft frontpage
>>>>07/29/2008 04:32 PM <DIR> Microsoft SQL Server
>>>>07/29/2008 04:30 PM <DIR> Microsoft.NET
>>>>09/24/2007 05:16 PM <DIR> MOVIEM~1 Movie Maker
>>>>09/24/2007 05:16 PM <DIR> MSNGAM~1 MSN Gaming Zone
>>>>09/24/2007 05:16 PM <DIR> NETMEE~1 NetMeeting
>>>>09/24/2007 05:16 PM <DIR> ONLINE~1 Online Services
>>>>09/24/2007 05:16 PM <DIR> OUTLOO~1 Outlook Express
>>>>11/27/2007 12:28 AM <DIR> Virtual Machine
>>>>Additions
>>>>11/27/2007 01:08 AM <DIR> 857896~1.TMP Windows Media
>>>>Connect
>>>>09/24/2007 05:30 PM <DIR> WINDOW~2 Windows Media Player
>>>>09/24/2007 05:17 PM <DIR> WINDOW~1 Windows NT
>>>>09/24/2007 05:17 PM <DIR> xerox
>>>> 0 File(s) 0 bytes
>>>> 19 Dir(s) 14,074,114,048 bytes free
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>"PGP" wrote:
>>>>
>>>>> Windows XP Pro SP 2 on Virtual PC 2007 (6.0.192)
>>>>>
>>>>> I am seeing a problem with GetShortPathName API in a VM where it is
>>>>> not
>>>>> returning the correct short path name. It seems to quit applying the
>>>>> short
>>>>> path after the first directory.
>>>>> For eg.
>>>>> I am doing GetShortPathName on C:\Program Files\Microsoft.NET\Primary
>>>>> Interop Assemblies
>>>>>
>>>>> I get
>>>>> C:\PROGRA~1\Microsoft.NET\Primary Interop Assemblies on Virtual PC
>>>>> and
>>>>> C:\PROGRA~1\MICROS~1.NET\PRIMAR~1 on the host OS (Vista)
>>>>>
>>>>> Is there something i am missing?
>>>>>
>>>>> TIA
>>>>> Priyesh
>>>>>
>>>>>
My System SpecsSystem Spec
Old 08-04-2008   #9 (permalink)
PGP


 
 

Re: GetShortPathName issue

Robert,
It seems that the additions might have something to do with this. I tested
this in a VM without additions and it works as expected.
Wonder what's going on here.

Regards
Priyesh

"PGP" <priyesh@xxxxxx_not_reply> wrote in message
news:OGfRo5O9IHA.5404@xxxxxx
Quote:

> Robert,
>
> Good point there about the additions. I am not sure if anything they do
> will cause this issue, but i would like to test this on a VM without
> additions.
>
> Priyesh
>
> "Robert Comer" <bobcomer-removeme-@xxxxxx> wrote in message
> news:8na794h7737b0hugn62vs2pc47pe9uv33t@xxxxxx
Quote:

>> I'm seeing something very weird with my machine, so maybe there's
>> something wrong with it specifically, but I don't see how only being
>> in a VM could possibly cause this unless it has something to do with
>> the additions, and even then, I don't think there's anything there
>> that would do that. The VM doesn't have anything to do with the file
>> system, it's all up to the OS running in the VM.
>>
>> --
>> Bob Comer
>>
>>
>> On Fri, 1 Aug 2008 15:43:32 -0600, "PGP" <priyesh@xxxxxx_not_reply> wrote:
>>
Quote:

>>>I came across this issue as part of debugging a "server does not start in
>>>vm" problem. I found out that the server program takes certain
>>>commandline
>>>arguments and would only take short paths. So the program that actually
>>>makes those command line arguments has code to create short path names.
>>>
>>>Now i know for a fact that the same installation works correctly in XP
>>>and
>>>Vista machines. And all those installations go to the C:\Program
>>>Files\<company name>\<product name with spaces>system\data\.
>>>
>>>I dont think it has something to do with XP. I ran the dir /X on an XP
>>>machine and get this.
>>>
>>>01/25/2008 04:06 AM <DIR> INTERN~1 Internet Explorer
>>>04/01/2008 10:24 AM <DIR> Java
>>>05/14/2007 09:06 AM <DIR> MESSEN~1 Messenger
>>>05/21/2007 10:53 AM <DIR> METROW~1 Metrowerks
>>>05/17/2007 05:01 PM <DIR> MIED60~1 Microsoft ACT
>>>06/12/2007 02:12 PM <DIR> MI3AA1~1 Microsoft ActiveSync
>>>
>>>This seems to work as expected for long file names without spaces.
>>>
>>>Priyesh
>>>
>>>"Robert Comer" <bobcomer-removeme-@xxxxxx> wrote in message
>>>news:g3v694l2ohu8q3k811ln9s6v5fpm8hcgn1@xxxxxx
>>>> My host XP machine does exactly the same, it must be some difference
>>>> in XP itself.
>>>>
>>>> --
>>>> Bob Comer
>>>>
>>>>
>>>> On Fri, 1 Aug 2008 13:53:25 -0700, Dave Williamson
>>>> <DaveWilliamson@xxxxxx> wrote:
>>>>
>>>>>I'm not sure why but I think you are on to something.
>>>>>
>>>>>I looked at a "dir /x" on a virtual pc 2007 sp1 machine and directories
>>>>>that
>>>>>have long file names have a blank short name.
>>>>>
>>>>>Here is an example output where .net 2.0 framework and sql server 2005
>>>>>express was installed within VPC 2007 SP1:
>>>>>
>>>>> Volume in drive C has no label.
>>>>> Volume Serial Number is 8C31-AA1D
>>>>>
>>>>> Directory of C:\PROGRA~1
>>>>>
>>>>>07/29/2008 04:35 PM <DIR> .
>>>>>07/29/2008 04:35 PM <DIR> ..
>>>>>07/29/2008 04:27 PM <DIR> COMMON~1 Common Files
>>>>>09/24/2007 05:16 PM <DIR> COMPLU~1 ComPlus
>>>>>Applications
>>>>>07/29/2008 04:24 PM <DIR> INTERN~1 Internet Explorer
>>>>>09/24/2007 05:16 PM <DIR> MICROS~1 microsoft frontpage
>>>>>07/29/2008 04:32 PM <DIR> Microsoft SQL
>>>>>Server
>>>>>07/29/2008 04:30 PM <DIR> Microsoft.NET
>>>>>09/24/2007 05:16 PM <DIR> MOVIEM~1 Movie Maker
>>>>>09/24/2007 05:16 PM <DIR> MSNGAM~1 MSN Gaming Zone
>>>>>09/24/2007 05:16 PM <DIR> NETMEE~1 NetMeeting
>>>>>09/24/2007 05:16 PM <DIR> ONLINE~1 Online Services
>>>>>09/24/2007 05:16 PM <DIR> OUTLOO~1 Outlook Express
>>>>>11/27/2007 12:28 AM <DIR> Virtual Machine
>>>>>Additions
>>>>>11/27/2007 01:08 AM <DIR> 857896~1.TMP Windows Media
>>>>>Connect
>>>>>09/24/2007 05:30 PM <DIR> WINDOW~2 Windows Media
>>>>>Player
>>>>>09/24/2007 05:17 PM <DIR> WINDOW~1 Windows NT
>>>>>09/24/2007 05:17 PM <DIR> xerox
>>>>> 0 File(s) 0 bytes
>>>>> 19 Dir(s) 14,074,114,048 bytes free
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>"PGP" wrote:
>>>>>
>>>>>> Windows XP Pro SP 2 on Virtual PC 2007 (6.0.192)
>>>>>>
>>>>>> I am seeing a problem with GetShortPathName API in a VM where it is
>>>>>> not
>>>>>> returning the correct short path name. It seems to quit applying the
>>>>>> short
>>>>>> path after the first directory.
>>>>>> For eg.
>>>>>> I am doing GetShortPathName on C:\Program Files\Microsoft.NET\Primary
>>>>>> Interop Assemblies
>>>>>>
>>>>>> I get
>>>>>> C:\PROGRA~1\Microsoft.NET\Primary Interop Assemblies on Virtual PC
>>>>>> and
>>>>>> C:\PROGRA~1\MICROS~1.NET\PRIMAR~1 on the host OS (Vista)
>>>>>>
>>>>>> Is there something i am missing?
>>>>>>
>>>>>> TIA
>>>>>> Priyesh
>>>>>>
>>>>>>
>
My System SpecsSystem Spec
Old 08-04-2008   #10 (permalink)
Robert Comer


 
 

Re: GetShortPathName issue

Interesting, I'll pass it along and see what comes up...

--
Bob Comer



On Mon, 4 Aug 2008 09:04:56 -0600, "PGP" <priyesh@xxxxxx_not_reply> wrote:
Quote:

>Robert,
>It seems that the additions might have something to do with this. I tested
>this in a VM without additions and it works as expected.
>Wonder what's going on here.
>
>Regards
>Priyesh
>
>"PGP" <priyesh@xxxxxx_not_reply> wrote in message
>news:OGfRo5O9IHA.5404@xxxxxx
Quote:

>> Robert,
>>
>> Good point there about the additions. I am not sure if anything they do
>> will cause this issue, but i would like to test this on a VM without
>> additions.
>>
>> Priyesh
>>
>> "Robert Comer" <bobcomer-removeme-@xxxxxx> wrote in message
>> news:8na794h7737b0hugn62vs2pc47pe9uv33t@xxxxxx
Quote:

>>> I'm seeing something very weird with my machine, so maybe there's
>>> something wrong with it specifically, but I don't see how only being
>>> in a VM could possibly cause this unless it has something to do with
>>> the additions, and even then, I don't think there's anything there
>>> that would do that. The VM doesn't have anything to do with the file
>>> system, it's all up to the OS running in the VM.
>>>
>>> --
>>> Bob Comer
>>>
>>>
>>> On Fri, 1 Aug 2008 15:43:32 -0600, "PGP" <priyesh@xxxxxx_not_reply> wrote:
>>>
>>>>I came across this issue as part of debugging a "server does not start in
>>>>vm" problem. I found out that the server program takes certain
>>>>commandline
>>>>arguments and would only take short paths. So the program that actually
>>>>makes those command line arguments has code to create short path names.
>>>>
>>>>Now i know for a fact that the same installation works correctly in XP
>>>>and
>>>>Vista machines. And all those installations go to the C:\Program
>>>>Files\<company name>\<product name with spaces>system\data\.
>>>>
>>>>I dont think it has something to do with XP. I ran the dir /X on an XP
>>>>machine and get this.
>>>>
>>>>01/25/2008 04:06 AM <DIR> INTERN~1 Internet Explorer
>>>>04/01/2008 10:24 AM <DIR> Java
>>>>05/14/2007 09:06 AM <DIR> MESSEN~1 Messenger
>>>>05/21/2007 10:53 AM <DIR> METROW~1 Metrowerks
>>>>05/17/2007 05:01 PM <DIR> MIED60~1 Microsoft ACT
>>>>06/12/2007 02:12 PM <DIR> MI3AA1~1 Microsoft ActiveSync
>>>>
>>>>This seems to work as expected for long file names without spaces.
>>>>
>>>>Priyesh
>>>>
>>>>"Robert Comer" <bobcomer-removeme-@xxxxxx> wrote in message
>>>>news:g3v694l2ohu8q3k811ln9s6v5fpm8hcgn1@xxxxxx
>>>>> My host XP machine does exactly the same, it must be some difference
>>>>> in XP itself.
>>>>>
>>>>> --
>>>>> Bob Comer
>>>>>
>>>>>
>>>>> On Fri, 1 Aug 2008 13:53:25 -0700, Dave Williamson
>>>>> <DaveWilliamson@xxxxxx> wrote:
>>>>>
>>>>>>I'm not sure why but I think you are on to something.
>>>>>>
>>>>>>I looked at a "dir /x" on a virtual pc 2007 sp1 machine and directories
>>>>>>that
>>>>>>have long file names have a blank short name.
>>>>>>
>>>>>>Here is an example output where .net 2.0 framework and sql server 2005
>>>>>>express was installed within VPC 2007 SP1:
>>>>>>
>>>>>> Volume in drive C has no label.
>>>>>> Volume Serial Number is 8C31-AA1D
>>>>>>
>>>>>> Directory of C:\PROGRA~1
>>>>>>
>>>>>>07/29/2008 04:35 PM <DIR> .
>>>>>>07/29/2008 04:35 PM <DIR> ..
>>>>>>07/29/2008 04:27 PM <DIR> COMMON~1 Common Files
>>>>>>09/24/2007 05:16 PM <DIR> COMPLU~1 ComPlus
>>>>>>Applications
>>>>>>07/29/2008 04:24 PM <DIR> INTERN~1 Internet Explorer
>>>>>>09/24/2007 05:16 PM <DIR> MICROS~1 microsoft frontpage
>>>>>>07/29/2008 04:32 PM <DIR> Microsoft SQL
>>>>>>Server
>>>>>>07/29/2008 04:30 PM <DIR> Microsoft.NET
>>>>>>09/24/2007 05:16 PM <DIR> MOVIEM~1 Movie Maker
>>>>>>09/24/2007 05:16 PM <DIR> MSNGAM~1 MSN Gaming Zone
>>>>>>09/24/2007 05:16 PM <DIR> NETMEE~1 NetMeeting
>>>>>>09/24/2007 05:16 PM <DIR> ONLINE~1 Online Services
>>>>>>09/24/2007 05:16 PM <DIR> OUTLOO~1 Outlook Express
>>>>>>11/27/2007 12:28 AM <DIR> Virtual Machine
>>>>>>Additions
>>>>>>11/27/2007 01:08 AM <DIR> 857896~1.TMP Windows Media
>>>>>>Connect
>>>>>>09/24/2007 05:30 PM <DIR> WINDOW~2 Windows Media
>>>>>>Player
>>>>>>09/24/2007 05:17 PM <DIR> WINDOW~1 Windows NT
>>>>>>09/24/2007 05:17 PM <DIR> xerox
>>>>>> 0 File(s) 0 bytes
>>>>>> 19 Dir(s) 14,074,114,048 bytes free
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>"PGP" wrote:
>>>>>>
>>>>>>> Windows XP Pro SP 2 on Virtual PC 2007 (6.0.192)
>>>>>>>
>>>>>>> I am seeing a problem with GetShortPathName API in a VM where it is
>>>>>>> not
>>>>>>> returning the correct short path name. It seems to quit applying the
>>>>>>> short
>>>>>>> path after the first directory.
>>>>>>> For eg.
>>>>>>> I am doing GetShortPathName on C:\Program Files\Microsoft.NET\Primary
>>>>>>> Interop Assemblies
>>>>>>>
>>>>>>> I get
>>>>>>> C:\PROGRA~1\Microsoft.NET\Primary Interop Assemblies on Virtual PC
>>>>>>> and
>>>>>>> C:\PROGRA~1\MICROS~1.NET\PRIMAR~1 on the host OS (Vista)
>>>>>>>
>>>>>>> Is there something i am missing?
>>>>>>>
>>>>>>> TIA
>>>>>>> Priyesh
>>>>>>>
>>>>>>>
>>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Re:IE8 Attachment Issue (was MSN Explorer/IE8 Attachment Issue) - update Vista mail
Re:IE8 Attachment Issue (was MSN Explorer/IE8 Attachment Issue) - update Live Mail
Windows Vista mouse issue.. Possibly ease of use type issue? Vista hardware & devices
Monitor issue or full instal issue Vista installation & setup
Routre Issue or Vista Issue Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46