i am going round and round,help needed again,i want to use an app that changes date to launch another app,so should the cmdline point to the main app or the portable launcher--?
a)so do i launch the date changing app, and then send command line to launch the portable-app-launcher.exe or do i send commandline to launch the date changing app, and then execute the main app(and not its launcher)---?
how should i go about it--?
or should i use WaitForEXE1 or something.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
What i want===run the app in a custom date
my launcher.in==
ProgramExecutable=abc\runasdate.exe
CommandLineArguments='/movetime 01\01\2001 00:00:00 "%PAL:AppDir%\abc\xyz.exe"'
or
WaitForEXE1=runasdate.exe '/movetime 01\01\2001 00:00:00 "%PAL:AppDir%\abc\xyz.exe"'
CloseEXE=abc\xyz.exe
can someone fix this---?
What you want to do can't be done with the Launcher (it may be possible with some custom code, but I can't say for certain), unless the date changing app takes a command line option for an executable that it runs after changing the date. This kind of thing would be easier to implement with a batch script (launch app 1, wait, launch app 2).
To clarify:
WaitForEXE never executes anything, it only tells the Launcher that it needs to wait for an executable other than the one specified in ProgramExecutable before it performs a cleanup when closing.
CommandLineArguments also cannot be used to execute anything, it only passes parameters to the ProgramExecutable.
You should never run the main executable of a PortableApp (unless you really know what you are doing), always run AppNamePortable.exe.
""unless the date changing app takes a command line option for an executable that it runs after changing the date.""
yes it does take command line option,but the question is how do i point it to the launcher,what code do i use
eg:PAL:AppDir,PAL:DataDir ---likewise what is the command to access the directory that contains the launcher,even if i am successfull,does that meaan that the launcher,which calls the main apps runs on that custom date that i set--?
by using partialdir