Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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


12 Apr 2014   #1

Windows 7 Ultimate 64bit
 
 
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 System SpecsSystem Spec
.

12 Apr 2014   #2

Windows 7 32 bit
 
 

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 System SpecsSystem Spec
13 Apr 2014   #3

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
.


Reply

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




Thread Tools



Similar help and support threads for2: run executable (script) @ startup / login (before explorer.exe?)
Thread Forum
Login script problems Network & Sharing
My VBS login script kept failing Network & Sharing
executable script to switch active displays Graphic Cards
Solved Antimalware Service Executable: hogging my resources at startup System Security
Login Script Help Network & Sharing

Our Sites

Site Links

About Us

Find 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 09:21 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33