#200303 - 2010-10-19 05:23 PM
AddProgramItem Problem with "Program Files(x86)" Folder
|
swissjay
Just in Town
Registered: 2010-10-19
Posts: 2
Loc: Switzerland
|
Hello Everyone
I try to create Shortcuts for the New Office Version on a Windows 2008 R2 Server. This Windows is an 64-Bit Release, therefore all 32-Bit Application incl. MS Office are installed under C:\Program Files (x86). e.g. Office path: C:\Program Files (x86)\Microsoft Office\Office14
I try to create a Shortcut for Access with the following code:
AddProgramGroup ("Microsoft Office 2010") AddProgramItem ("C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE", "Microsoft Access 2010", "", "", "C:\Program Files (x86)\Microsoft Office\Office14", 0, 0)
This isnt working at all. For 64-Bit Application installed under C:\Program Files all work well...
Have you an idea how to solve it?
Cheers
Jerome
Edited by swissjay (2010-10-19 05:27 PM)
|
Top
|
|
|
|
#200313 - 2010-10-20 11:12 AM
Re: AddProgramItem Problem with "Program Files(x86)" Folder
[Re: Mart]
|
swissjay
Just in Town
Registered: 2010-10-19
Posts: 2
Loc: Switzerland
|
I found a Workaraund: Using DOS-names 8.3 Format works.
C:\Program Files(x86) = C:\Progra~2
User dir /x command to see 8.3 Format names
e.g.
AddProgramGroup ("Microsoft Office 2010") AddProgramItem ("C:\Progra~2\Microsoft Office\Office14\MSACCESS.EXE", "Microsoft Access 2010", "", "", "C:\Progra~2\Microsoft Office\Office14", 0, 0)
Thanks for reading.
Cheers
Edited by swissjay (2010-10-20 11:14 AM)
|
Top
|
|
|
|
#200315 - 2010-10-20 01:49 PM
Re: AddProgramItem Problem with "Program Files(x86)" Folder
[Re: swissjay]
|
BradV
Seasoned Scripter
Registered: 2006-08-16
Posts: 686
Loc: Maryland, USA
|
Somehow I think it might work if you used single quotes instead of double quotes. Try:
AddProgramItem ('C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE', "Microsoft Access 2010", "", "", 'C:\Program Files (x86)\Microsoft Office\Office14', 0, 0)
or
$Loc = "C:\Program Files " + Chr(40) + "x86" + Chr(41) + "\Microsoft Office\Office14"
AddProgramItem ($Loc + "\MSACCESS.EXE", "Microsoft Access 2010", "", "", $Loc, 0 0)
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 466 anonymous users online.
|
|
|