Saved Bookmarks
| 1. |
Solve : Adapt a bat script? |
|
Answer» something I am doing bad : Is it killing your first instance of ditto? Kind of confused as well to this... I can see someone putting in a goto and making a nasty kill/launch loop with this. However hopefully its just a reset for some reason we are not aware of. I'll try and comment. The purpose is a little bug i am suffering with Ditto and fast shortcuts Control+1 to 0 for the prior clips. I loose the order. So I need to reiniatate the program sometimes to recover. Goes fine. But then I convert the bat file to an exe file. the bat file execute the reopening opening and closing the console from ms-dos. But the exe doesn't . How can i solve this Perhaps an exit command under the last line ? Best Regards Quote from: Fielding on NOVEMBER 12, 2016, 12:55:26 PM But then I convert the bat file to an exe file.Why? This is unsupported, undocumented and likely to fail in many situations. Why do you need to do this? Using which third-party tool? Are you running the exe as administrator? Is this squall? Nahh...thankfully he never got as far as attempting coding...he concentrated on rescuing ancient equipment he found on tree lawns dumpsters etc... However this may be his cousin.The batch scripting language is exactly that - designed so that text files containing commands are run by the interpreter in a carefully designed process (3 stages I( believe). Batch-to-exe converters have a bad reputation and are mainly used by script kiddies, not serious programmers. All they do is package the actual text of the script with an .exe stub. In my opinion, asking "why does my batch script work as a script but not when compiled by the BatWiz compiler?" takes one outside the SUPPORT zone for batch. I try to explain. I need to attach this script to the task bar. The program i am using is : BAT2EXE from codeplex. The more confusing this for me is that the script goes well under windows 7-64 Modifications I observe : the path now have space. Quote from: Fielding on November 13, 2016, 12:13:36 PM I need to attach this script to the task bar.I wonder if you did this Google Search. Which finds this as its first search RESULT.Squashman, you beat me to it! I thought of a shortcut to cmd.exe /c batchfile while I was in the shower. Quote from: Squashman on November 13, 2016, 02:13:50 PM I wonder if you did this Google Search. Sure that is not there some time ago when I use an old exe to pin to the task bar. Thanks a lot Best Regards |
|