jacksont123 Posted February 6, 2005 Posted February 6, 2005 is there a way to change a icon of an exe using the command prompt [cmd]?
MCT Posted February 6, 2005 Posted February 6, 2005 google for a commandline resource hacker, offhand im not sure of 1
jacksont123 Posted February 6, 2005 Author Posted February 6, 2005 THANKS!Is there a way to add switches to a .exe (like /s) using the command prompt?
MCT Posted February 6, 2005 Posted February 6, 2005 u can use shortcut.exe (its a commandline tool to make shortcuts) that may be what u want
jacksont123 Posted February 6, 2005 Author Posted February 6, 2005 well, i wanted to embed the switch (/s) in the program (.exe)
prathapml Posted February 7, 2005 Posted February 7, 2005 No, its not possible.A switch is nothing but a branching of the code execution. You need the source code and re-compile it. Or else, if you did try to fiddle with the binaries and managed to add a new function, the resulting EXE won't execute due to being corrupted.
SiMoNsAyS Posted February 7, 2005 Posted February 7, 2005 maybe it sounds stupid but what about compressing the archive with winrar so you make a rar-sfx and use the comment to launch the program silently?like nero ;El comentario siguiente contiene secuencias de órdenes para SFXSetup=setup.exe /SN=? /WRITE_SN /SILENT /NO_UI /NOREBOOT /NOLICENSE /NOCANCELTempModeSilent=1Overwrite=1Title=Nero 6.6.0.6 Ahead Software AG or use on "setup=" command a .cmd that includes a silent switch...
MCT Posted February 7, 2005 Posted February 7, 2005 hmm, i would've suggested winrar too, if he'd been more clear on what he was asking, some programs use switches, like /S could have been a commandline to execute when launching the program, not a switch for installation, 2 bad he never specified what he wanted, could've solved it 4 hrs ago
prathapml Posted February 7, 2005 Posted February 7, 2005 Hey Aero Ximian,The winrar SFX is not a bad idea in itself, but you probably know of its short-coming. During a uA install from batch-files, you will find that rarSFX'es with embedded setup switches mess up the install. It will extract the SFX, then start the setup in a new process - so this way the "start /wait" is satisfied and it proceeds to next line, whereas the setup is not yet completed.
SiMoNsAyS Posted February 7, 2005 Posted February 7, 2005 that's true pra, but this guy never said anything about running the rar'ed file from a batch. checking "temp mode" should help too. i think we miss some information.i personally only use this method with just a couple of programs
jacksont123 Posted February 14, 2005 Author Posted February 14, 2005 google for a commandline resource hacker, offhand im not sure of 1<{POST_SNAPBACK}>i tryed to do that but it corrupted the winrar sfxi also tryed to change the icon with the program and it didnt work
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