Jump to content

Quick Launch


Recommended Posts

I dont know if any would have an interest in this but this is how you can turn on quick launch on 1st reboot.

Put this in your batch File

CLS
@echo off
ECHO.
REGEDIT /S %systemdrive%\install\1.reg
ECHO.
EXIT.

This in a reg file

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce]
"vbs"="C:\\Install\\1.vbs"

This in a 1.vbs file

Option Explicit

Dim oShell

Set oShell=WScript.CreateObject("WScript.Shell")

oShell.Run("rundll32.exe shell32.dll,Options_RunDLL 1")
WScript.Sleep 100
oShell.AppActivate "Taskbar and Start Menu Properties"
oShell.SendKeys "%Q"
WScript.Sleep 200
oShell.AppActivate "Taskbar and Start Menu Properties"
oShell.Sendkeys"{ENTER}"

Put it all in you $OEM$----$1----Install folder.

But be careful if you are deleting your install folder after your batches have run because if you do your 1.vbs file will also be deleted.

So to avoid that use this;

REG FILE

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce]
"vbs"="c:\\Windows\\1.vbs"

Part of your BATCH FILE

CLS
@echo off
ECHO.
REGEDIT /S %systemdrive%\install\1.reg
COPY "%systemdrive%\install\1.vbs" "%systemroot%/1.vbs"
ECHO.
EXIT.

Hope this might help at least 1 person :)

Link to comment
Share on other sites


Does not seem to work, I changed the reg key to:

[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce]

"vbs"="C:\\Install\\1.vbs"

not:

[HKEY_CURRENT_USER\... It does not exist....

and still does not work...

The info is in the registry but when I try restart my computer (I am testing this on my installed XP version, not from Installation) and it does not seem to do anything.

Does it only work when your installing, after all process before reboot ??

Thanks for the info

Link to comment
Share on other sites

OK, I've noticed something. The script works just fine so long as the shell has loaded. The problem I'm having is getting the script to run automatically at that point. Anything in runonce runs before the shell loads. Does anyone know a workaround?

Link to comment
Share on other sites

  • 4 months later...

You can tell the batch file to delete the shortcut that runs the batch.

For example:

CLS
@echo off
ECHO.
START %systemdrive%\install\quicklaunch.vbs
DEL /Q "%ALLUSERSPROFILE%\Start Menu\Programs\Startup\quicklaunch.lnk"
ECHO.
EXIT

Let your batch file copy the link (that links to %systemdrive%\install\quicklaunch.bat) to "%ALLUSERSPROFILE%\Start Menu\Programs\Startup"

It will run the quicklaunch.vbs and delete the shortcut, so it won't run ever again.

Link to comment
Share on other sites

guess I did my quick launch a little different....

below is the code I used.

CLS
@echo off
ECHO.
ECHO Making Quick Launch Directory...
MKDIR "%systemdrive%\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch"
ECHO.
ECHO Copying Windows Explorer link...
COPY "%systemdrive%\install\*.lnk" "%systemdrive%\Documents and Settings\All Users\Start Menu"
ECHO.
ECHO Copying Windows Explorer link...
COPY "%systemdrive%\install\*.lnk" "\Documents and Settings\Administrator\Application Data\Microsoft\Internet Explorer\Quick Launch"
ECHO.
EXIT

This made the quick launch active and I could add the .lnk file as I wanted to...

Like %SystemRoot%\explorer.exe /n,/e,/select,C:\

would like it to be two rows but thats later :)

I run that as part of my clean.cmd up after last boot.

I would think you could change it to alluser fully and it would work no matter who login.

Edited by Tbone2
Link to comment
Share on other sites

I exported the value of

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop]
"TaskbarWinXP"

with the quick launch and stuff the way i wanted it. Put it in my tweaks.reg file, and then made a folder "\$OEM$\$Docs\Default User\Application Data\Microsoft\Internet Explorer\Quick Launch" with all my favorite crap in it. Didn't seem to work with an actual user name or "Administrator." It made it create the folder before Windows had... so i ended up with Administartor.iafgcv8, you get the picture.

Make sure to delete any desktop.ini files or similar that pop up in the folder tho... looks kinda funny in your quick launch.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...