Main Forum > Tweaking.com Support & Help
Improvements for WindowsRepair
Shane:
My program doesn't mess with the path commands at all.
For some reason on your system it is messed up. But what a perfect thing to add to the windows repair :-D
http://www.computerhope.com/issues/ch000549.htm
The path should be stored in the registry.
What I could do is add the path command to the scripts in the windows repair. It wont fix your path in the system, but for the repairs it will tell cmd.exe what path to use. This way the repairs will still work when the path variable in the system is messed up. :wink:
Shane
Willy2:
Yes, I did already fear my system was messed up but I wasn't sure.
Willy2:
Just a simple update.
Yep. PATH was indeed messed up. I changed it to ""C:\windows\system32;C:\windows\system32\wbem"" (is this the default for XP ? Do I need to add more ?) and WR behaved more normal. Now e.g. System Restore (Step 4) does create a Restore Point EVERYTIME (again !!) when I click on that button. And now WR waits with the ""Do you want to restart your system"" message until after the last repair job has been completed. :cheesy:
And SPB doesn't generate an error any more (i.e. netsh.exe and framedyn.dll). :cheesy:
Willy2:
@echo on
copy /y c:\testfolder\print.pdf c:\print.pdf
copy /y C:\Program Files\PcWinTech\WR v1.53\files\subinacl.exe C:\
copy /y C:\Program Files\PcWinTech\WR v1.53\files\psexec.exe C:\
copy /y C:\ProgramFiles\PcWinTech\WRv1.53\files\subinacl.exe C:\
copy /y C:\ProgramFiles\PcWinTech\WRv1.53\files\psexec.exe C:\
takeown /F C:\subinacl.exe >nul
icacls C:\subinacl.exe /GRANT *S-1-1-0:F >nul
C:\subinacl.exe /subdirectories \*.* /grant=administrators=f /grant=system=f /grant=everyone=f /grant=users=f
pause
I ran a batchfile with this content (see above, in italics) in a separate window (CMD.exe) and the result is contained in the picture (see attachment). The 1st, 4th and 5th ""copy"" command worked (""1 bestand ......"" ) - IMO - because there wasn't a space between e.g ""program"" and ""files"" and between ""WR"" and ""v1.53"" like in the 2nd and 3rd copy command line. ""Takeown"" and ""Icacls"" generated an error ""command not recognized"". Then ""subinacl"" generated an error because ""de structuur van de beveiligings-ID is ongeldig"" (english: ""the structure of the security ID is invalid""). So, it seems a space throws CMD.exe ""off the rails"". That begs the question: why did thus work in a previous version of WR ?
Shane:
When there are spaces in a path you need to use "
So
copy /y C:\Program Files\PcWinTech\WR v1.53\files\subinacl.exe C:\
should be
copy /y "C:\Program Files\PcWinTech\WR v1.53\files\subinacl.exe" C:\
:wink:
Shane
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version