IORRT absent periods timesurfer can you clarify if IORRT will work on PC that is used infrequently? ie does the re-arm process still work if the scheduled tasks haven't run for over 30 days?
where ever the script says. Code: @for /f "delims=[]" %%a in ('find /n "::StartOf"^<"%~f0"') do more +%%a "%~f0" 1>HoldingFile.cmd Code: @for /f "delims=[]" %%a in ('find /n "::StartOf"^<"%~f0"') do more +%%a "%~f0" 1>C:\HoldingFile.cmd
I copied the code from one of your posts here a few days ago into my text editor, (my editors color coding helps me to read it), and noticed some mistakes, some things in there which are redundant and was amazed at how much stuff was repeated. The problem with this kind of scripting is that it easily becomes unmanageable and fragmented as the project builds, things fail, new ideas come in and inevitably bloat gets added. My suggestion is that you reach your milestone point where you say enough is enough feature wise. Then and only then would it be advantageous to look at cleaning the code up. footnote To start you off, replace the first three lines in your script with these four: Code: CLS=new ActiveXObject("Shell.Application").ShellExecute("\""+WScript.ScriptFullName+"\"","","","runas",1);/* @NET FILE>NUL 2>&1||@(CSCRIPT //B //E:JSCRIPT "%~f0"&&EXIT /B) @ECHO OFF TITLE Rearm Wizard Your first line should start with mode, you don't need another @echo off and cls already!
I don't mean to derail the thread but I wasn't sure where else to post this. I just downloaded and used the Rearm Wizard and got an error message that flashed up for a second: 'REG' is not recognized as an internal or external command, operable program or batch file. I have used Trilogy 4.2 for a while now and only updated today when i began to get a similar error there. Now, I'm far from being a programmer so I don't know what to do about this or where else to go for a solution. Any help would be greatly appreciated.
As this happend with Trilogy likewise i suggest checking integrity of system files, instead searching for another solution . in admin CMD enter: Code: sfc /scannow
Thanks for noticing stuff not needed. At the end of finishing my msg stuff, I'll ask that you post in color what is redundant I'm working on .bat msg reinstall stuff right now if your curious Hi BM, we need the msg box but to continue code without pressing yes button, so view my batch code in the reinstall function to see what I'm doing and add if you like True that And thanks for new Admin bypass code Code: (NET FILE||(powershell -command Start-Process '%0' -Verb runAs -ArgumentList '%* '&EXIT /B))>NUL 2>&1 Let's not advice using experiimental code as of yet except for testing as that RW you posted has borked reinstall msg still and .bat msg that hasn't been tested I think with the way we avoid RE C:\ and hidden partition stuff the install problems should come to a close with 100% success hopefully. Also the one rare thing that happened was key would not install probably due to runonce reg stuff but with task installing key fine I think we'll be close to guaranteed install/reinstall success
Thanks, but InstallingIR7 task does install... These are the bugs Code: Can't get C:\Trial\InstallingIR7.bat to run at reinstall Can't get C:\Trial\IR7.bat to install key but it deletes InstallingIR7 and Key tasks. C:\Trial\IR7.bat also deletes InstallingIR7.bat and itself fine I'm trying to get a "Installing IR7" .bat message working
See what happens after you've made these changes: Change Line 178 From: Code: echo schtasks /create /tn "InstallingIR7" /tr "%SystemDrive%\Trial\InstallingIR7.bat" /sc onlogon /ru "" >nul >>%SystemDrive%\Trial\IR7\IR7.bat To: Code: echo schtasks /create /tn "InstallingIR7" /tr "%%SystemDrive%%\Trial\InstallingIR7.bat" /sc onlogon /ru "" ^>nul >>%SystemDrive%\Trial\IR7\IR7.bat Change Line 179 From: Code: echo echo @echo off^>^>%systemdrive%\Trial\InstallingIR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat To: Code: echo echo @echo off^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat Change Line 180 From: Code: echo echo title IR7^>^>%systemdrive%\Trial\InstallingIR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat To: Code: echo echo title IR7^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat Change Line 181 From: Code: echo echo mode con: cols=42 lines=2 ^>^>%systemdrive%\Trial\InstallingIR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat To: Code: echo echo mode con: cols=42 lines=2 ^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat Change Line 182 From: Code: echo echo echo Installing IR7...^>^>%systemdrive%\Trial\InstallingIR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat To: Code: echo echo echo Installing IR7... ^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat Change Line 183 From: Code: echo echo ping -n 90 127.0.0.1 ^>nul^>^>%%systemdrive%%\Trial\InstallingIR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat To: Code: echo echo ping -n 90 127.0.0.1 ^^^^^^^>nul^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat Change Line 184 From: Code: echo echo echo Windows is restarting now...^>^>%systemdrive%\Trial\InstallingIR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat To: Code: echo echo echo Windows is restarting now... ^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat Change Line 185 From: Code: echo echo ping -n 30 127.0.0.1 ^>nul^>^>%systemdrive%\Trial\InstallingIR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat To: Code: echo echo ping -n 30 127.0.0.1 ^^^^^^^>nul^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat Change Line 198 From: Code: echo echo del /F /Q %SystemDrive%\Trial\InstallingIR7.bat ^>nul^>^>%%systemdrive%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat To: Code: echo echo del /F %%%%%%%%0 ^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat