- Nov
- 250
- 2
Here's a neat trick for running tcc (or any other app) from a non-pathed directory. You need to do this, because some programs do not search apppath (eg explorer 'run' dialog)
write.exe is used by windows to load wordpad.exe, first by searching the path, and then apppath in registry. You can easily modify it to load any file or document, by inserting the new name in the file (look for 'wordpad.exe' in the binary. Note that if you use the same name for the loader (eg wordpad.exe), it will keep reloading itself.
You can make an NT4 style windisk.exe by using a copy of write.exe to load "dskmgmt.msc"
Copy write to 4nt.exe, and change 'wordpad.exe' to 'tcc.exe' (padding the rest with 00x (if you use a hex editor). You need to add tcc.exe to the apppath folder - there's freeware proggies that do this for you. You can also update the icon and strings with reshack.
You run 4nt from the prompt, and it loads tcc.exe from the selected directory.
write.exe is used by windows to load wordpad.exe, first by searching the path, and then apppath in registry. You can easily modify it to load any file or document, by inserting the new name in the file (look for 'wordpad.exe' in the binary. Note that if you use the same name for the loader (eg wordpad.exe), it will keep reloading itself.
You can make an NT4 style windisk.exe by using a copy of write.exe to load "dskmgmt.msc"
Copy write to 4nt.exe, and change 'wordpad.exe' to 'tcc.exe' (padding the rest with 00x (if you use a hex editor). You need to add tcc.exe to the apppath folder - there's freeware proggies that do this for you. You can also update the icon and strings with reshack.
You run 4nt from the prompt, and it loads tcc.exe from the selected directory.