Re: Execution of batch file from VC++(IDE)

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: doug mansell (doug_mansell_at_hotmail.com)
Date: 05/25/04


Date: Tue, 25 May 2004 16:20:08 +0800

Actually I was trying to do the very same thing today, ie: debug an exe
launched by a batch file. The page entitled "launching the debugger
automatically" in the vs.net help was more helpful for me.

It suggests getting creative with the registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image
File Execution Options

William DePalo [MVP VC++] wrote:
> "KRK" <anonymous@discussions.microsoft.com> wrote in message
> news:D82C09B1-92DF-4980-9CC4-443C36A9CAD0@microsoft.com...
>
>>I am having one batch file and using this I can start my Server.
>>It will execute all exes while starting. Now my question is how to
>>debug my exe using this batch file?? Is it possible to execute
>>this batch file from my prject debug session....
>
>
> From the menu select Project->Properties->Debugging.
>
> Then enter the name of the batch file in the command box and any parameters
> in the box below.
>
> Regards,
> Will
>
>



Relevant Pages

  • Re: Utility to reset LPT1
    ... > port the system reports `cd rom not found' although its drivers ... You could try using DEBUG to call INT 17, ... Batch file troubleshooting: http://www.allenware.com/find?UsualSuspects ...
    (comp.os.msdos.misc)
  • Re: Batch file wont finish installing security updates
    ... Local security policy> User Rights Assignment> Debug ... Admin rights, bounced the box, the batch file ran fine. ... On all the rest of my machines ...
    (microsoft.public.win2000.security)
  • Re: Rather large MSIE-hole
    ... Well you could pipe commands by "echo.something>somefile" but to place many ... words on a line you would have to use debug and edit manually the file, ... >>Eric Brown Wrote ... >>Could you not create a batch file that housed the ...
    (Vuln-Dev)
  • Re: Rollout Registry Settings via SMS (w/Adv Clients)
    ... If by an .exe you mean an Installshield script, which does NOT have an msi ... so I went with DFS. ... batch file can point to the DFS share where the registry entries are located. ...
    (microsoft.public.sms.swdist)
  • Re: How to deploy real cert in packaged .exe (VS 2005, .net cf 2.0 sp2, WM 5.0)
    ... ..exe for the mobile device I developed an app for. ... You can run a batch file after you've built your project/solution or as part ... Or do I do the signing using the the tools they send me? ...
    (microsoft.public.dotnet.framework.compactframework)