Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Path is being truncated - help!

Reply
Thread Tools Display Modes

Path is being truncated - help!

 
 
WendyAlia@gmail.com
Guest
Posts: n/a

 
      09-26-2007
I've racked the internet looking for a solution to this - for which
there must be one, I'm sure...

My system path is being truncated - it's reproduced below - the
truncation is at the *X* point in the string - and I can't figure out
how to increase the environment size to allow the extra characters
that I need. I've even modified the COMSPEC variable as reproduced
below - to no avail.

Does anyone know how to configure Vista to have more available
environment space?

Wendy

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:
\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files
\Microsoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual
Studio 8\Common7\Tools;C:\Program Files\Microsoft Visual Studio
8\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio 8\VC
\PlatformSDK\bin;C:\Program Files\Microsoft Visual Studio 8\SDK
\v2.0\bin;C:\Windows\Microsoft.NET\Framework\v2.0. 50727;C:\Program
Files\Microsoft Visual Studio 8\VC\VCPackages;C:\Program Files\Common
Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio
Shared\9.0\DLLShared\;c:\Program Files\Microsoft SQL Server\90\Tools
\binn\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program
Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL
Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Progr am Files\Microsoft
Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\AccuRev
\bin;C:\Program Files\Macrovision\IS12\System;C:\bin;C:\Program Files
\Macrovision\IS*X* 12 StandaloneBuild;C:\Program Files\QuickTime
\QTSystem\

%SystemRoot%\system32\cmd.exe /e:5120

 
Reply With Quote
 
 
 
 
keepout@yahoo.com.invalid
Guest
Posts: n/a

 
      09-26-2007
On Wed, 26 Sep 2007 09:55:40 -0700, wrote:

>%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\S ystem32\Wbem;C:
>\Program Files\Microsoft Visual Studio 8\Common7\IDE;C:\Program Files
>\Microsoft Visual Studio 8\VC\BIN;C:\Program Files\Microsoft Visual
>Studio 8\Common7\Tools;C:\Program Files\Microsoft Visual Studio
>8\Common7\Tools\bin;C:\Program Files\Microsoft Visual Studio 8\VC
>\PlatformSDK\bin;C:\Program Files\Microsoft Visual Studio 8\SDK
>\v2.0\bin;C:\Windows\Microsoft.NET\Framework\v2.0 .50727;C:\Program
>Files\Microsoft Visual Studio 8\VC\VCPackages;C:\Program Files\Common
>Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio
>Shared\9.0\DLLShared\;c:\Program Files\Microsoft SQL Server\90\Tools
>\binn\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program
>Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL
>Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Prog ram Files\Microsoft
>Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program Files\AccuRev
>\bin;C:\Program Files\Macrovision\IS12\System;C:\bin;C:\Program Files
>\Macrovision\IS*X* 12 StandaloneBuild;C:\Program Files\QuickTime
>\QTSystem\


Make a backup of the above and stick it somewhere safe. Then

replace C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;
with
C:\Program Files\Micros~2;
or
C:\Program Files\Microsoft Visual Studio 8\

then delete
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\bin;
C:\Program Files\Microsoft Visual Studio 8\VC\BIN;
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;
C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin;
C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\Private Assemblies\;
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;

replace
C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;
with
C:\Program Files\Microsoft SQL Server
or
C:\Program Files\Micros~1

then delete
C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;
C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;

replace
C:\Program Files\Common Files\Roxio Shared\DLLShared\;
with
C:\Program Files\Common Files\
or
C:\Program Files\Common~1

then delete
C:\Program Files\Common Files\Roxio Shared\DLLShared\;
C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;

replace
C:\Program Files\Macrovision\IS*X* 12 StandaloneBuild;
with
C:\Program Files\Macrovision\
or
C:\Program Files\Macrov~1

Just my opinion, but path is more or less just an aid to search. ie: whena
program is given the file name to find without a direct path it looks in path
1st. Then goes off on it's own searching the drive if it can't find what it's
looking for in the path.

looking in the root vs an exact folder should work just fine with possibly some
slow down when loading things.

ie: %system root%/system32; should work for everything under it such as the
hosts file in drivers/etc.. And it does.

If things start failing just tweak the above. If Path were absolutely
necessary, there's no way 1024 bytes would be enough. It just helps find things
faster. All those EXACT folders shouldn't be necessary unless they're filled
with hundreds of files, and folders.

You'll see I used C:\Program Files\Micros~2; twice
C:\Program Files\Micros~2;
and
C:\Program Files\Micros~1;
If you have many
microsoft folders in your C:\Program Files\ folder, you'll have to get a sorted
directory list 1st. IE: Mine

This is how DOS actually see's my microsoft folders truncated to 8.3

>my 8.3 : Volume in drive C is HP
>my 8.3 : Volume Serial Number is 04CD-62F8
>my 8.3 :
>my 8.3 : Directory of C:\Program Files
>my 8.3 :
>my 8.3 : 06/23/2007 08:53 PM <DIR> MI3AA1~1 Microsoft ActiveSync
>my 8.3 : 05/08/2007 05:40 PM <DIR> MICROS~1.2 Microsoft CAPICOM 2.1.0.2
>my 8.3 : 07/06/2007 02:07 PM <DIR> MIF408~1 Microsoft Encarta
>my 8.3 : 11/02/2006 08:37 AM <DIR> MICROS~1 Microsoft Games
>my 8.3 : 06/22/2007 03:49 AM <DIR> MI0A1E~1 Microsoft Location Finder
>my 8.3 : 06/24/2007 04:10 PM <DIR> MICROS~3 Microsoft Office
>my 8.3 : 09/21/2007 06:55 PM <DIR> MI2578~1 Microsoft SDKs
>my 8.3 : 09/22/2007 01:52 PM <DIR> MI2020~1 Microsoft Silverlight
>my 8.3 : 09/21/2007 08:30 PM <DIR> MI6841~1 Microsoft SQL Server
>my 8.3 : 09/22/2007 10:28 AM <DIR> MI29AE~1 Microsoft SQL Server Compact Edition
>my 8.3 : 06/22/2007 03:50 AM <DIR> MIFAE3~1 Microsoft Streets & Trips
>my 8.3 : 09/22/2007 10:28 AM <DIR> MI364D~1 Microsoft Synchronization Services
>my 8.3 : 09/15/2007 03:19 PM <DIR> MICROS~4 Microsoft Visual Studio
>my 8.3 : 09/23/2007 05:26 PM <DIR> MID05A~1 Microsoft Visual Studio 8
>my 8.3 : 09/22/2007 10:43 AM <DIR> MICROS~1.0 Microsoft Visual Studio 9.0
>my 8.3 : 09/22/2007 10:36 AM <DIR> MI15E2~1 Microsoft Web Designer Tools
>my 8.3 : 06/24/2007 04:11 PM <DIR> MICROS~2 Microsoft Works
>my 8.3 : 09/21/2007 08:27 PM <DIR> MICROS~1.NET Microsoft.NET
>my 8.3 : 1 File(s) 0 bytes
>my 8.3 : 18 Dir(s) 166,032,846,848 bytes free

I was going to suggest you get an 8.3 list from your system. But those numbers
can change if a folder is renamed, removed, added etc..
ie:
C:\Program Files\Micros~9 could be either
C:\Program Files\Micros~8 or C:\Program Files\Micro~10 if I changed the number
of microsoft folders in the C:\Program Files\ folder.

You can probably use the 8.3 names. Long as you remember to change your path if
you do something with a microsoft named folder.
--
more pix @ http://members.toast.net/cbminfo/index.html
 
Reply With Quote
 
Andrew McLaren
Guest
Posts: n/a

 
      09-26-2007
<> wrote ...
> My system path is being truncated - it's reproduced below - the
> truncation is at the *X* point in the string - and I can't figure out


Hi Wendy

The maximum length for the PATH variable is 1023 chars (you'll notice in
your string below, the "X" is at the 1023rd char). This limit applies to the
sum of the system PATH, and the PATH in the user profile.

On XP and Vista, the maximum size of an individual environment variable is
8,192 bytes. However the PATH is still limited to 1,023 chars. I'm pretty
sure this limit was imposed for compatibility reasons. The Windows kernel
itself would have no problem dealing with a far longer PATH. But 16-bit and
other older applications will crash, if they call GetEnvironmentVariable and
get back more than 1024 bytes (since they only allocate a max 1,024 car
buffer; a larger value returened would be a buffer overrun). To maintain a
stable platform for these legacy applications, the restriction on PATH stays
in place.

The available total environment space, to hold all variables, is permanently
fixed at 64K in XP, 2003 and Vista. There is no way to increase the
environment space. But - as above, your problem isn't limited environment
space, you've hit the length limit for PATH.

NT-based operating systems (eg NT, 2000, XP, Server 2003, and Vista) do not
use the COMSPEC command to determine the environment size. That command was
only used in DOS-based platforms, like MS-DOS, Windows 3.1 and Windows 9x.
Run "cmd /?" to see a list of valid paramters for CMD.EXE (the /e: is a
boolean and turns on or off, the command extensions).

Windows applications can locate programs by looking up the "App Paths" key
in the Registry. The PATH variable is mainly useful for command-line
applications. If you don't need to launch an application from the command
line, you can usually remove that app's directory from the PATH. Many
applications add their directories to the PATH, unnecessarily.

For example: I run Visual Studio every day; but I don't actually leave any
VS directories on my PATH. If I want to run the Visual Studio Command line
tools, I open a Command Prompt from the Start, Visual Studio, Visual Studio
Tools menu. That has the right PATH configured, plus several other handy
environment variables (INCLUDE, etc).

Hope it helps,
--
Andrew McLaren
amclar (at) optusnet dot com dot au


 
Reply With Quote
 
WendyAlia@gmail.com
Guest
Posts: n/a

 
      10-08-2007
Andrew!

Yes, thanks a lot for that. I rearranged the entries in my registry
to get around the problem, but it was frustrating not knowing what was
going on.

Thanks for the full explanation.

Wendy

On Sep 26, 7:41 pm, "Andrew McLaren" <and...@fakeaddress.com> wrote:
> <WendyA...@gmail.com> wrote ...
>
> > My system path is being truncated - it's reproduced below - the
> > truncation is at the *X* point in the string - and I can't figure out

>
> HiWendy
>
> The maximum length for the PATH variable is 1023 chars (you'll notice in
> your string below, the "X" is at the 1023rd char). This limit applies to the
> sum of the system PATH, and the PATH in the user profile.
>
> On XP and Vista, the maximum size of an individual environment variable is
> 8,192 bytes. However the PATH is still limited to 1,023 chars. I'm pretty
> sure this limit was imposed for compatibility reasons. The Windows kernel
> itself would have no problem dealing with a far longer PATH. But 16-bit and
> other older applications will crash, if they call GetEnvironmentVariable and
> get back more than 1024 bytes (since they only allocate a max 1,024 car
> buffer; a larger value returened would be a buffer overrun). To maintain a
> stable platform for these legacy applications, the restriction on PATH stays
> in place.
>
> The available total environment space, to hold all variables, is permanently
> fixed at 64K in XP, 2003 and Vista. There is no way to increase the
> environment space. But - as above, your problem isn't limited environment
> space, you've hit the length limit for PATH.
>
> NT-based operating systems (eg NT, 2000, XP, Server 2003, and Vista) do not
> use the COMSPEC command to determine the environment size. That command was
> only used in DOS-based platforms, like MS-DOS, Windows 3.1 and Windows 9x.
> Run "cmd /?" to see a list of valid paramters for CMD.EXE (the /e: is a
> boolean and turns on or off, the command extensions).
>
> Windows applications can locate programs by looking up the "App Paths" key
> in the Registry. The PATH variable is mainly useful for command-line
> applications. If you don't need to launch an application from the command
> line, you can usually remove that app's directory from the PATH. Many
> applications add their directories to the PATH, unnecessarily.
>
> For example: I run Visual Studio every day; but I don't actually leave any
> VS directories on my PATH. If I want to run the Visual Studio Command line
> tools, I open a Command Prompt from the Start, Visual Studio, Visual Studio
> Tools menu. That has the right PATH configured, plus several other handy
> environment variables (INCLUDE, etc).
>
> Hope it helps,
> --
> Andrew McLaren
> amclar (at) optusnet dot com dot au



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UNC Path microsvc Windows Vista General Discussion 0 04-01-2008 05:39 PM
Reliability & Performance History truncated - Help? Julian Windows Vista General Discussion 1 11-12-2007 12:13 PM
The Path to 64-bit is rocky Mark Windows Vista Installation 6 08-14-2007 08:35 PM
path error Arne Windows Vista Installation 9 07-11-2007 03:24 PM
DPI/truncated windows dotcom Windows Vista General Discussion 3 06-14-2006 04:08 PM



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 47 48 49 50 51 52 53 54 55 56 57 58 59