Jump to content

Recommended Posts

Posted (edited)

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

IE 1.PNG

Edited by FN-GM
typo
Posted
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 months later...
Posted

@Steve21 this is my batch file with the same VBS in the orginal link

 

:: 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.

Posted
@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

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



×
×
  • Create New...