Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider becoming a contibuting member by either clicking this text or the Patreon link on the right.

Patreon

Multiple parameters for 'launch before' and 'launch after'


Recommended Posts

Posted

is it at all possible to put more than one program or command line in the 'launch before' and 'launch after' sections of setup?

i have several emulators that use this command, and i'd also like to tell them to start joy2key with a certain config file.

can i just separate them with a ";" or something?

as in:

launch before: program1.exe; program2.exe?

Posted

is it at all possible to put more than one program or command line in the 'launch before' and 'launch after' sections of setup?

i have several emulators that use this command, and i'd also like to tell them to start joy2key with a certain config file.

can i just separate them with a ";" or something?

as in:

launch before: program1.exe; program2.exe?

Only solution at this time is to use a bat file or a script to run what is needed.

Posted

Only solution at this time is to use a bat file or a script to run what is needed.

actually i did some digging, and apparently the "&" character works pretty well. i've been testing it out and so far so good.

i do have one question though.

in the 'launch before' section, i've found some fickle behavior.

if i have a parameter like

Launch Before: Deamontools.exe -mount 9 [rompath\romfile]

this works great for mounting images and stuff

but just for testing purposes, i put in

Launch Before: notepad.exe

pretty simple you'd think. but for some reason, after it opens notepad, it doesn't actually get around to opening the emulator.

it just sticks there with notepad open until you close the notepad window, then teh emulator loads.

is the "launch before" parameter only for applications that effectively run their course and self terminate before the emulator starts?

i'm looking at my task manager, and from the look of it, daemon tools remains open if i use it in the 'launch before' parameter, yet the emulators start just fine.

just curious.

Posted

Since I have paused some time from emulation stuff, I can't really remember the setup anymore, but I think I used the 'start-before'-option in conjuction with cmd.exe to a) extract iso-files to a temp-folder and b ) mount the iso with deamon-tools.

If I remeber right, I used cmd.exe with some arguments to call winrar and then deamontools.

Something like

cmd.exe /c "c:\winrar.exe -e c:\temp\[romname]" & "c:\dt-tools.exe -mount c:\temp\[romname].cue"

Just to illustrate, above syntax is probably complete wrong. So, google how to run commands via cmd.exe-call and how to chain them up them.

Posted

My guess would be either with a "run after" command or just not worry about it. I would use the "run after" if it were me.

  • 3 weeks later...
Posted

Using the rmdir command in the Run After section might be what you're after. Something like this.

Either that, or use the taskplaner to periodically (e.g. weekly) clean up the temp-dir. This way you can speed up the launch of recently used games, esp. usefull for large files or when you use a network-share to store your files. The first time you run a game, it will go through the unpack-process. The next time you run the same game, it will be directly launched from the temp-dir, with no need to decompress again.

Guest
This topic is now closed to further replies.
×
×
  • Create New...