Re: Application starts too soon



SteveS,

It sounded like your application is a batch file (or you call the application form a batch file)? How do you start the batch?
If it is the batch file that does not start, use "cmd.exe /C <your_batch.bat>" command style to launch it.
If it is the application (exe), then you would need to understand why the application fails to run (dependencies, etc.). Can you
launch the exe from the command prompt?
Since we don't know anything about your app, it is hard to advise.

--
Regards,
KM, BSquare Corp.

PS. I wouldn't use "sleep" patch. It is always unreliable solution and will fail time to time when things (OS, hardware, software)
change.


> First off thanks for all the help that got me this far! Got EWF working with
> CF, sized the image down to fit the CF, etc. I now have an XPE image that can
> boot to a command prompt (dosn't sound like much, but it took a while to get
> there).
>
> Anyway, my hope is to have the application start up after the command prompt
> appears. I used the RunOnce Resource (put a batch file under the Run
> registry value). Problem is it seems to start up before the command prompt
> appears, and it fails since, when the prompt arrives, no application is
> running. I know it tries to start since I have a video frame grabber and it's
> window pops up during the "Welcome" screen. I had a similar problem with
> Embedded NT, and a short sleep command (5 secs) in the batch file worked.
> Doesn't seem to help here - tried up to 60 seconds!
>
> So what do I do? I would like to keep the command prompt shell (at least
> for now) so I can exit my program and run some commands to copy files etc.
>
> Thanks,
>
> SteveS
>
>
>
>


.



Relevant Pages

  • Re: Application starts too soon
    ... The application runs froma a batch file. ... The batch file has my exe followed by a Shutdown command ... think the app tries to run, encounters an error, and exits. ... the app runs fine if I manually launch it after the command prompt ...
    (microsoft.public.windowsxp.embedded)
  • Re: DOS Environment not working
    ... It just shows the variables set by windows on startup, ... The batch file does not fail because I ... installed a errorlevel statement to echo a message.... ... I run the batchfile at the command prompt, but when I check the variables: ...
    (microsoft.public.windowsxp.general)
  • Re: How to program Enable, Disable drivers?
    ... Use this batch file to enable or disable a device ... setlocal enabledelayedexpansion ... echo Syntax: Device enable / disable ... Open a Command Prompt. ...
    (microsoft.public.windowsxp.general)
  • Re: Please help me with a batch file.
    ... The way I did the batch file, ... > ..and I run it from teh command prompt window by typing: X:\mybatchfile.bat. ... > the window to close when finished. ... >> The video files to encode are in folder called: ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Can you set process priority for an exe?
    ... Open a command prompt ... and all other apps are very ... set the priority level of the process to LOW, ... Save the batch file to your desktop and see if it works now. ...
    (microsoft.public.windowsxp.general)