Var arguments:String = Environment.GetCommandLineArgs() bat file content and after the compilation will create a new bat file int the temp folder and will call it.And will accept command line arguments.(explained might look complex but in fact it's simple): /* JScript offįor /f "tokens=* delims=" %%v in ('dir /b /s /a:-d /o:-n "%SystemRoot%\Microsoft.NET\Framework\*jsc.exe"') do ( batch file content.Will create another with the. NET compilers (again should be available on almost every win machine).I've choose. So one other possible approach is to look at the. This should work practically on every Windows machine out there but has one major limitation - you cannot pass arguments to the created. (echo()>"%temp%\d"Įxample: bat2exeIEXP.bat myBatFile.bat MyExecutable.exe (echo(TargetName=%target.exe%)>"%temp%\d" (echo(AppLaunched=cmd.exe /c "?t_name%")>"%temp%\d" echo usage: %~nx0 batFile.bat target.Exe bat file you want to convert and the target executable: off So here's IEXPRESS sed-directive/.bat file that creates a self-extracting. One very obvious approach is to use IEXPRESS - the ancient built-in tool that creates self-extracting packages and is capable to execute post extraction commands.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |