run executable (script) @ startup / login (before explorer.exe?)


  1. Posts : 260
    Windows 7 Ultimate 64bit
       #1

    run executable (script) @ startup / login (before explorer.exe?)


    Hi, everything's going well, fixing an issue a day, but the solution to this continues to elude me...

    I have a (taskbar) toolbar (like quick launch) that shows the folder contents (as usual, like quick launch) on the toolbar. The target folder resides on a virtual volume, that's always attached....

    One of the problems is that I don't know how windows (internally) performs this (virtual volume) load/mount/attach operation....

    I had used VHDAttach or something in the past... until I realised

    • there are NO safety controls - if you (context) detach the (system C:\) VHD, it's goodnight vienna - eternal sleep! Dead virtual machine!
    • the "nice to have's" offered out-of-the-box are all easily attainable with a bit of (diskpart /s script) batch magic


    The problem is that I have to restart explorer after login to refresh the systemiconcache; by then, the volume is attached, and the icons are read (as normal) and displayed...

    I'm running attachLBS.bat @ (can you believe User Startup isn't in C:\users\username\startup?!) - this gives the volume a path letter (L:)... but it doesn't run in time..


    So! My question is - how do I make windows ensure an operation is completed (attach volume, for example) BEFORE explorer.exe performs it's "display shell / user interface" task?!

    Thanks!
      My Computer


  2. Posts : 5,092
    Windows 7 32 bit
       #2

    You can try my RunIt utility downloadable here:
    Miles Ahead Software

    It uses the Regisry Run key to run a batch or program before login. If what you are running requires Run As Administrator you may get a UAC prompt.

    See the included Readme.txt file for usage info.
      My Computer


  3. Posts : 2,468
    Windows 7 Ultimate x64
       #3

    A possibility could be to use Task Scheduler, as it lets you run programs before any user logs in (therefore, before explorer starts). Just put it in a trigger with an event of "system startup" and it will run before everything.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:43.
Find Us