.BAT files via Start Menu fail to maintain working DIR in Win7


  •   Unlike NT and Vista, in Win7, dragging a .BAT file to the Start button no longer works. In fact,

    the screen flashes by so fast I can't even read the error w/o a PAUSE after the .exe file.

    When I do so, basically, the DIR is not where it came from, but is System32 !!!

    When I double-click the .BAT file in Explorer, it works fine.

    When I copy a Shortcut to my Startup DIR and re-boot, it works fine.

    The only way around this was to insert CD statements B 4 the .exe; now it works with the Start button as well.

    Why is this now necessary in Win7? In fact, via the General tab, there is no "start in'.


    fails: ===>

    'openwait.exe' is not recognized as an internal or external command,
    operable program or batch file.

    now works: ===>

    C:\windows\system32>cd \

    C:\>cd DAD

    C:\DAD>cd TOOLS



    ?             (O/P from my program)


    Sunday, May 29, 2011 1:27 AM

All replies

  •   After 3 weeks with ZERO response, it's obvious that Microsoft doesn't care about their faulty code.

    I guess I'm not surprised. Lousy product, even worse support!

    Thursday, June 16, 2011 1:56 AM
  • This forum is for a blog software called Windows Live Writer. And it is not for Microsoft to support customers. It is for Microsoft customers to help each other.

    Micosoft support channels can be found at

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Thursday, July 21, 2011 9:46 PM