+ Post New Thread
Results 1 to 8 of 8
Scripts Thread, Pinning items to taskbar Windows 7 in Coding and Web Development; Hi, I am using this script to pin items to the Windows 7 Task par. I pin Outlook and Internet ...
  1. #1

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,773
    Thank Post
    865
    Thanked 1,663 Times in 1,448 Posts
    Blog Entries
    11
    Rep Power
    442

    Pinning items to taskbar Windows 7

    Hi,

    I am using this script to pin items to the Windows 7 Task par. I pin Outlook and Internet Explorer. It works a treat on x86 but on x64 machines internet explorer has issues.

    The icon appears but when you click it another icon appears like the attached.

    Sometimes the user gets an error saying that the location is unavailable and do you want to remove it.

    I am pointing it to the x86 version of IE.

    Any thoughts please?

    Thanks
    Attached Images Attached Images
    Last edited by FN-GM; 15th August 2012 at 02:56 PM. Reason: typo

  2. #2

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180
    Do you really want to use the x64 version of IE? A lot of browser plugins hate it and I've seen some odd things happen with it.

  3. #3

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,773
    Thank Post
    865
    Thanked 1,663 Times in 1,448 Posts
    Blog Entries
    11
    Rep Power
    442
    I did mean to put i am pointing to the x86 version. Typo

  4. #4

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,773
    Thank Post
    865
    Thanked 1,663 Times in 1,448 Posts
    Blog Entries
    11
    Rep Power
    442
    Can i bump this please?

  5. #5

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    334
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    Quote Originally Posted by FN-GM View Post
    Can i bump this please?
    Can you post the exact script you're using, can't seem to replicate it

    Steve

  6. #6


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,709
    Thank Post
    220
    Thanked 2,615 Times in 1,926 Posts
    Rep Power
    777
    Quote Originally Posted by FN-GM View Post
    Can I bump this please?
    Have you tried the PowerShell equivalent?

    Pin and unpin applications from the taskbar and Start-menu TechNet Script Center

  7. #7

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,773
    Thank Post
    865
    Thanked 1,663 Times in 1,448 Posts
    Blog Entries
    11
    Rep Power
    442
    @Steve21 this is my batch file with the same VBS in the orginal link

    Code:
    :: Set Environment
     @echo OFF
     CLS
     TITLE Taskbar Customization Tool
     COLOR 3f
     PROMPT $s
     
    SET UsrPinTBar="%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar"
     
    :: *** Usage - Pin.vbs
     :: *** WScript.exe "%~dp0\%~dp0\Pin.vbs" [drive:][path]filename [Argument]
     :: *** [Arguments] = 0 1 2
     :: *** 0 = Unpin from Taskbar
     :: *** 1 = Pin to Taskbar
     :: *** 2 = Install
     
    ::  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     
    :: Identify Windows Version
     :: *** Assign ver output to variable VerResult ***
     FOR /F "delims=" %%A IN ('ver') Do Set VerResult=%%A
     
    :: *** Parse VerResult and assign variable according to OS version ***
     ECHO "%VerResult%" | find "Version 6.1" > nul && GOTO Windows7Var
     ECHO "%VerResult%" | find "Version 6.0" > nul && GOTO WindowsVistaVar
     ECHO "%VerResult%" | find "Version 5" > nul && GOTO :WindowsXPVar
     ECHO Error - Unexpected Version Information
     GOTO EOF
     
    ::  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     
    :Windows7Var
     IF %processor_architecture%==x86 GOTO 7x86Var
     IF %processor_architecture%==AMD64 GOTO 7x64Var
     IF %processor_architecture%==IA64 GOTO 7x64Var
     GOTO EOF
     
    ::  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     
    :WindowsVistaVar
     ECHO This PC is running Windows Vista
     :: *** Unsupported ***
     GOTO EOF
     
    ::  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     
    :WindowsXPVar
     ECHO This PC is running Windows XP
     :: *** Unsupported ***
     GOTO EOF
     
    ::  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     
    :7x86Var
     ECHO This PC is running Windows 7 32Bit
    
    :: *** ADD Shortcuts ***
     WScript.exe "%~dp0\Pin.vbs" "%ProgramFiles%\Internet Explorer\iexplore.exe" 1
     WScript.exe "%~dp0\Pin.vbs" "%ProgramFiles%\Microsoft Office\Office14\OUTLOOK.EXE" 1
     WScript.exe "%~dp0\Pin.vbs" "%ProgramFiles%\Microsoft Office\Office12\OUTLOOK.EXE" 1
     GOTO EOF
     
    ::  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     
    :7x64Var
     ECHO This PC is running Windows 7 64Bit
     
    :: *** ADD Shortcuts ***
     WScript.exe "%~dp0\Pin.vbs" "%ProgramFiles% (x86)\Internet Explorer\iexplore.exe" 1
     WScript.exe "%~dp0\Pin.vbs" "%ProgramFiles% (x86)\Microsoft Office\Office14\OUTLOOK.EXE" 1
     WScript.exe "%~dp0\Pin.vbs" "%ProgramFiles%\Microsoft Office\Office14\OUTLOOK.EXE" 1
     WScript.exe "%~dp0\Pin.vbs" "%ProgramFiles% (x86)\Microsoft Office\Office12\OUTLOOK.EXE" 1
     GOTO EOF
     
    ::  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     
    :EOF
    @Arthur i will give it a try.

  8. #8

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    334
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    Quote Originally Posted by FN-GM View Post
    @Steve21 this is my batch file with the same VBS in the orginal link
    May be missing the obvious, but what script in the original link? All the ones in the ZIP file don't work with your bat file. Or was this the pre 2009 version?

    Steve

SHARE:
+ Post New Thread

Similar Threads

  1. Auto-Pin to taskbar
    By glennda in forum Windows 7
    Replies: 18
    Last Post: 14th March 2014, 02:59 PM
  2. Replies: 1
    Last Post: 5th March 2012, 09:38 PM
  3. Replies: 5
    Last Post: 27th January 2012, 03:16 PM
  4. Deploying Pinned Start Menu / Taskbar items
    By Gatt in forum Windows 7
    Replies: 6
    Last Post: 12th August 2010, 02:34 PM
  5. Replies: 4
    Last Post: 2nd November 2006, 02:26 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •