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

jonnyhotchkiss

New member
Member
VIP
Local time
4:11 PM
Messages
260
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 @
1g7qNbn.png
(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

Computer type
Laptop
Computer Manufacturer/Model Number
Dell
OS
Windows 7 Ultimate 64bit
CPU
2.2
Memory
8Gb
Graphics Card(s)
NVIDIA
Screen Resolution
1280/762
Mouse
built in pad || iphone || MS wireless
Internet Speed
100MB
Antivirus
Avast
Browser
Chrome, Chrome portable
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

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
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

Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
Back
Top