Astalavista Posted December 27, 2004 Share 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\" Link to comment Share on other sites More sharing options...
hasi001 Posted December 27, 2004 Share Posted December 27, 2004 Escape every backslash: \ --> \\escape every apostophe: " --> \"each line is a single command Link to comment Share on other sites More sharing options...
Astalavista Posted December 27, 2004 Author Share Posted December 27, 2004 I did that but apparently copy and ren are not recognized by windows. Link to comment Share on other sites More sharing options...
Pezzie Posted December 27, 2004 Share Posted December 27, 2004 then call it from at bat or commnad file Link to comment Share on other sites More sharing options...
Astalavista Posted December 27, 2004 Author Share Posted December 27, 2004 my question is ... Is there a way to do it w/o using batch cmd. Link to comment Share on other sites More sharing options...
a06lp Posted December 27, 2004 Share 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'] Link to comment Share on other sites More sharing options...
BritishBulldog Posted December 27, 2004 Share 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 Link to comment Share on other sites More sharing options...
a06lp Posted December 27, 2004 Share 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. Link to comment Share on other sites More sharing options...
BritishBulldog Posted December 27, 2004 Share Posted December 27, 2004 Doh..... of course cmd is enough Link to comment Share on other sites More sharing options...
Astalavista Posted December 28, 2004 Author Share Posted December 28, 2004 fantasic thanks ao6lp and bb. i should hv thought of that. heheh Link to comment Share on other sites More sharing options...
totoymola Posted January 9, 2005 Share Posted January 9, 2005 Or use an sfx to do everything for you. Link to comment Share on other sites More sharing options...
DigeratiPrime Posted January 9, 2005 Share 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 Link to comment Share on other sites More sharing options...
bonedaddy Posted January 9, 2005 Share Posted January 9, 2005 I just rename it and put it in i386.........works goood...... Link to comment Share on other sites More sharing options...
totoymola Posted January 9, 2005 Share 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). Link to comment Share on other sites More sharing options...
-I- Posted January 16, 2005 Share 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)... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now