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 ...
15th August 2012, 02:05 PM #1 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
Last edited by FN-GM; 15th August 2012 at 02:56 PM .
Reason: typo
IDG Tech News
15th August 2012, 02:41 PM #2 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.
15th August 2012, 02:56 PM #3 I did mean to put i am pointing to the x86 version. Typo
14th December 2012, 08:23 PM #4 15th December 2012, 10:31 AM #5
Originally Posted by
FN-GM Can i bump this please?
Can you post the exact script you're using, can't seem to replicate it
Steve
15th December 2012, 10:52 AM #6
Originally Posted by
FN-GM Can I bump this please?
Have you tried the PowerShell equivalent? Pin and unpin applications from the taskbar and Start-menu « TechNet Script Center
15th December 2012, 11:44 AM #7 @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.
15th December 2012, 12:13 PM #8
Originally Posted by
FN-GM @
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:
Similar Threads
By glennda in forum Windows 7
Replies: 16
Last Post: 9th July 2012, 02:23 PM
By internetuser in forum Windows 7
Replies: 1
Last Post: 5th March 2012, 09:38 PM
By Miscbrah in forum Scripts
Replies: 5
Last Post: 27th January 2012, 03:16 PM
By Gatt in forum Windows 7
Replies: 6
Last Post: 12th August 2010, 02:34 PM
By DaveP in forum Windows
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 Forum Rules