Environment Variables

  • Thread starter Thread starter Ron Reese
  • Start date Start date
R

Ron Reese

I have an application that does not automatically update
the environment variables in Windows 2000 / XP. I need a
*bat file to set the path of this application to the end
of the path string? Does anyone know how to do this or
know of a site to find this???
 
1.) Control Panel|System|Advanced|Environment Variables|System Variables and
edit "Path"
2.) You can use setx.exe from the resource kit
3.) Ask the application developer.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect


:
| I have an application that does not automatically update
| the environment variables in Windows 2000 / XP. I need a
| *bat file to set the path of this application to the end
| of the path string? Does anyone know how to do this or
| know of a site to find this???
|
 
1.) Control Panel|System|Advanced|Environment Variables|System Variables and
edit "Path"
2.) You can use setx.exe from the resource kit
3.) Ask the application developer.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect


:
| I have an application that does not automatically update
| the environment variables in Windows 2000 / XP. I need a
| *bat file to set the path of this application to the end
| of the path string? Does anyone know how to do this or
| know of a site to find this???
|
 
Ron said:
I have an application that does not automatically update
the environment variables in Windows 2000 / XP. I need a
*bat file to set the path of this application to the end
of the path string? Does anyone know how to do this or
know of a site to find this???

Hi

I always use the command line utility Pathman.exe to modify the path
programmatically (NT4, Win2k and WinXP). It will e.g. handle repeated entries
correctly. A logoff/logon is necessary to see the changes.

Here is the one from the free part of the Windows 2000 Resource kit
(It works on WinXP and Win Nt 4.0 as well):

Download Pathman.exe from here:
http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp

Run pathman /? in a command prompt for more help...


It's in the Windows Server 2003 Resource Kit Tools as well:
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en

Windows Server 2003 Resource Kit Tools will install on WinXP or later.
 
Ron said:
I have an application that does not automatically update
the environment variables in Windows 2000 / XP. I need a
*bat file to set the path of this application to the end
of the path string? Does anyone know how to do this or
know of a site to find this???

Hi

I always use the command line utility Pathman.exe to modify the path
programmatically (NT4, Win2k and WinXP). It will e.g. handle repeated entries
correctly. A logoff/logon is necessary to see the changes.

Here is the one from the free part of the Windows 2000 Resource kit
(It works on WinXP and Win Nt 4.0 as well):

Download Pathman.exe from here:
http://www.microsoft.com/windows2000/techinfo/reskit/tools/default.asp

Run pathman /? in a command prompt for more help...


It's in the Windows Server 2003 Resource Kit Tools as well:
http://www.microsoft.com/downloads/...69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en

Windows Server 2003 Resource Kit Tools will install on WinXP or later.
 
In said:
I have an application that does not automatically update
the environment variables in Windows 2000 / XP. I need a
*bat file to set the path of this application to the end
of the path string? Does anyone know how to do this or
know of a site to find this???

Is this a 16-bit application?

Two fair posts already, but you seem to want to use a batch file
specifically for starting an application after setting PATH.
And not make a permanent and system-global or user-global change.

@echo off
SET PATH=%path%;<new path element here>
START "" <"FullyQualifiedPathToApp" here>

Save as somename.CMD on the existing Path or
anywhere and create a shortcut to it.
Might need or use more than the bare-bones lines above of course.
 
In said:
I have an application that does not automatically update
the environment variables in Windows 2000 / XP. I need a
*bat file to set the path of this application to the end
of the path string? Does anyone know how to do this or
know of a site to find this???

Is this a 16-bit application?

Two fair posts already, but you seem to want to use a batch file
specifically for starting an application after setting PATH.
And not make a permanent and system-global or user-global change.

@echo off
SET PATH=%path%;<new path element here>
START "" <"FullyQualifiedPathToApp" here>

Save as somename.CMD on the existing Path or
anywhere and create a shortcut to it.
Might need or use more than the bare-bones lines above of course.
 
Back
Top