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 > VB Script

Vista - Windows xp path

Reply
 
Old 07-22-2009   #1 (permalink)
אמיר עטרי


 
 

Windows xp path


Hi there,

I am trying to create a vb script that will do the following:

Copy the Windows xp System path variables to other location / file.

in addition, another script that that will ADD the path that was copied
earlier to system path.

Thank you very much for your help.
Amir

My System SpecsSystem Spec
Old 07-22-2009   #2 (permalink)
Pegasus [MVP]


 
 

Re: Windows xp path


"???? ????" <@discussions.microsoft.com> wrote in message
news:9B170D03-92CF-47A2-84C1-F6923EC14F85@xxxxxx
Quote:

>
> Hi there,
>
> I am trying to create a vb script that will do the following:
>
> Copy the Windows xp System path variables to other location / file.
>
> in addition, another script that that will ADD the path that was copied
> earlier to system path.
>
> Thank you very much for your help.
> Amir
Sorry, your post is not clear. Can you reword it or give an example of what
you are trying to achieve?


My System SpecsSystem Spec
Old 07-22-2009   #3 (permalink)
אמיר עטרי


 
 

Re: Windows xp path


Thank you for response.

If you go to:
Start
Control panel
system
Advanced tab (and then press on)
Environment Variables
Under System variables, double click on "path variable"

The purpose of the script is to save the content of this line (with script
off course)
and then with another script to add it again.

I hope it is much more clean now.

Thank you for your big help.

Amir

"Pegasus [MVP]" wrote:
Quote:

>
> "???? ????" <@discussions.microsoft.com> wrote in message
> news:9B170D03-92CF-47A2-84C1-F6923EC14F85@xxxxxx
Quote:

> >
> > Hi there,
> >
> > I am trying to create a vb script that will do the following:
> >
> > Copy the Windows xp System path variables to other location / file.
> >
> > in addition, another script that that will ADD the path that was copied
> > earlier to system path.
> >
> > Thank you very much for your help.
> > Amir
>
> Sorry, your post is not clear. Can you reword it or give an example of what
> you are trying to achieve?
>
>
>
My System SpecsSystem Spec
Old 07-22-2009   #4 (permalink)
אמיר עטרי


 
 

Re: Windows xp path


Thank you for response.

If you go to:
Start
Control panel
system
Advanced tab (and then press on)
Environment Variables
Under System variables, double click on "path variable"

The purpose of the script is to save the content of this line (with script
off course)
and then with another script to add it again.

I hope it is much more clean now.

Thank you for your big help.

Amir

"Pegasus [MVP]" wrote:
Quote:

>
> "???? ????" <@discussions.microsoft.com> wrote in message
> news:9B170D03-92CF-47A2-84C1-F6923EC14F85@xxxxxx
Quote:

> >
> > Hi there,
> >
> > I am trying to create a vb script that will do the following:
> >
> > Copy the Windows xp System path variables to other location / file.
> >
> > in addition, another script that that will ADD the path that was copied
> > earlier to system path.
> >
> > Thank you very much for your help.
> > Amir
>
> Sorry, your post is not clear. Can you reword it or give an example of what
> you are trying to achieve?
>
>
>
My System SpecsSystem Spec
Old 07-22-2009   #5 (permalink)
Pegasus [MVP]


 
 

Re: Windows xp path

You could perform this task with some VB Script but a batch file solution is
much simpler. Here you go.

To save an environmental variable:
@echo off
echo %path% >c:\MyPath.txt

To restore an environmental variable:
@echo off
for /F "delims=" %%a in ('type c:\MyPath.txt') do set PPP=%%a

Note that the second command will set PPP only in the current console
environment. If you want to set it globally then you need to use a command
such as setx.exe which is included with the Windows resource kit.


"???? ????" <@discussions.microsoft.com> wrote in message
news:C65E4ADD-4B7B-45DF-80CE-108F5D67BE7D@xxxxxx
Quote:

>
> Thank you for response.
>
> If you go to:
> Start
> Control panel
> system
> Advanced tab (and then press on)
> Environment Variables
> Under System variables, double click on "path variable"
>
> The purpose of the script is to save the content of this line (with script
> off course)
> and then with another script to add it again.
>
> I hope it is much more clean now.
>
> Thank you for your big help.
>
> Amir
>
> "Pegasus [MVP]" wrote:
>
Quote:

>>
>> "???? ????" <@discussions.microsoft.com> wrote in message
>> news:9B170D03-92CF-47A2-84C1-F6923EC14F85@xxxxxx
Quote:

>> >
>> > Hi there,
>> >
>> > I am trying to create a vb script that will do the following:
>> >
>> > Copy the Windows xp System path variables to other location / file.
>> >
>> > in addition, another script that that will ADD the path that was
>> > copied
>> > earlier to system path.
>> >
>> > Thank you very much for your help.
>> > Amir
>>
>> Sorry, your post is not clear. Can you reword it or give an example of
>> what
>> you are trying to achieve?
>>
>>
>>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
windows can't find path .NET General
Windows Installer path specified Vista installation & setup
BUG? (Test-Path $path -IsValid) and empty $path PowerShell
BUG/ANNOYANCE: PoSH autocompletes the full path rather than a minimal path PowerShell


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