![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #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 Specs![]() |
| | #2 (permalink) |
| | 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 ![]() you are trying to achieve? |
My System Specs![]() |
| | #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 Specs![]() |
| | #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 Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||