Astalavista Posted December 27, 2004 Posted December 27, 2004 notepad replacementhow do i convert this to wpi method?REN %systemdrive%\WINDOWS\System32\dllcache\notepad.exe notepad.oldCOPY "%CDROM%\Software\notepad.exe" "%systemdrive%\WINDOWS\System32\dllcache\"REN %systemdrive%\WINDOWS\System32\notepad.exe notepad.oldCOPY "%CDROM%\Software\notepad.exe" "%systemdrive%\WINDOWS\System32\"REN %systemdrive%\WINDOWS\notepad.exe notepad.oldCOPY "%CDROM%\Software\notepad.exe" "%systemdrive%\WINDOWS\"
hasi001 Posted December 27, 2004 Posted December 27, 2004 Escape every backslash: \ --> \\escape every apostophe: " --> \"each line is a single command
Astalavista Posted December 27, 2004 Author Posted December 27, 2004 I did that but apparently copy and ren are not recognized by windows.
Astalavista Posted December 27, 2004 Author Posted December 27, 2004 my question is ... Is there a way to do it w/o using batch cmd.
a06lp Posted December 27, 2004 Posted December 27, 2004 here's an example from my config.js:cmd2[pn]=['cmd /c XCOPY "%cdrom%\\Applications\\powermenu\\*.*" "%systemdrive%\\Program Files\\PowerMenu\\" /E /Y']
BritishBulldog Posted December 27, 2004 Posted December 27, 2004 Try thiscmd1[pn]=['cmd.exe /C REN %windir%\\System32\\dllcache\\notepad.exe notepad.old']cmd2[pn]=['cmd.exe /C COPY %CDROM%\\Software\\notepad.exe %windir%\\System32\\dllcache\\notepad.exe']cmd3[pn]=['cmd.exe /C REN %windir%\\System32\\notepad.exe notepad.old']cmd4[pn]=['cmd.exe /C COPY %CDROM%\\Software\\notepad.exe %windir%\\System32\\notepad.exe']cmd5[pn]=['cmd.exe /C REN %windir%\\notepad.exe notepad.old']cmd6[pn]=['cmd.exe /C COPY %CDROM%\\Software\\notepad.exe %windir%\\notepad.exe']notice the %windir% and not %systemdrive%\\WINDOWS is shorter'edited'a06lp - Great minds think alike
a06lp Posted December 27, 2004 Posted December 27, 2004 a06lp - Great minds think alike Too true. Also, note that you do not need to write the full "cmd.exe /C" as Bulldog suggested.I use a simple "cmd /c" as mentioned above. No problems using it with any version.
Astalavista Posted December 28, 2004 Author Posted December 28, 2004 fantasic thanks ao6lp and bb. i should hv thought of that. heheh
DigeratiPrime Posted January 9, 2005 Posted January 9, 2005 (edited) Does anyone know if Notepad2 Notepad.exe can be slipstreamed? The Original Notepad.exe is in NOTEPAD.EX_ in the I386 Folder.If I just replace that will it work?[EDIT] Already Answered (the above method will work):http://www.msfn.org/board/index.php?showto...948&hl=Notepad2http://www.msfn.org/board/index.php?showto...=Notepad2&st=10You can, but you must proceed doing it in these steps, or installation will fail:1. rename notepad2.exe to notepad.exe2. use modifype.exe to add crc checksumdata to notepad.exe3. makecab the file to notepad.ex_ and replace it on your cd.ModifyPE 0.81modifyPE.exe notepad.exe -cthen...makecab notepad.exe Edited January 9, 2005 by DigeratiPrime
bonedaddy Posted January 9, 2005 Posted January 9, 2005 I just rename it and put it in i386.........works goood......
totoymola Posted January 9, 2005 Posted January 9, 2005 Yeah it will work. But for me, I still wan't to keep the original notepad. Call me crazy but I use the original notepad, metapad, and notepad2 (which I use as my deafault notepad).
-I- Posted January 16, 2005 Posted January 16, 2005 using SFX example on how to COULD be, >>> remove notpad..exe from your windows Install source... (for example with Nlite, >>> make 2 SFX archives, 1: Notepad_old.exe 2: notepad_new.exe --> in these sfx files define, that the content must be extracted to: "%windir%\System32" now you could make a litle javascript to enable a user to chose what version he wants, you could, do this multiple ways, 1 is a checkbox, if ( document.checkbox.check). { '/start notepad_new.exe'} else { '/start notepad_old.exe}or you could even use radio buttons for, none / old / new or whatever you'd like... this would be a lot easier, specialy when, you want to keep WFP on... note this code isn't complete, look at it yourself to get it working, didn't have the time to check out the exact spelling in some parst of it so i left them out, (look at the writefunction to see how)...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now