Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - script to change file type icon

Reply
 
Old 07-31-2009   #1 (permalink)
Donald


 
 

script to change file type icon

Hello everyone, Here is what I am trying to do. I have deployed powerpoint
from thinapp through my organization. only problem is it does not show the
ppt icon. is there a script or batch file that will allow me to set the icon
for the file ?

eg can do this manually but will take about a week with all the computers
and user profiles.
open up a folder, tools, folder options, file types, ppt, advanced, change
icon
is how I have done it to verify the icon file works.

here is the structure.
program installes to c:\documents and settings\%username%\application
data\Microsoft Power Point (VMware ThinApp)\
icon is also in that location as pptico.exe

please help.




My System SpecsSystem Spec
Old 08-01-2009   #2 (permalink)
mayayana


 
 

Re: script to change file type icon

I don't really understand what you're doing.
You've got something that's called "ThinApp"
and it's a Powerpoint replacement? If what you
need is this....
Quote:

> open up a folder, tools, folder options, file types, ppt, advanced, change
> icon
then you can do it in the Registry. HKCR\.ppt default
value will point to a file type name. On my system
that's HKCR\OpenOffice.org.ppt. The file type name
depends on what program (if any) is the default for
that file type.
If I then look up the HKCR\OpenOffice.org.ppt\DefaultIcon\
default value I find the path of the file plus the icon number
for the default icon.
So in your case that would be something like:

c:\documents and settings\Louie\application
data\Microsoft Power Point (VMware ThinApp)\
pptico.exe,1

Presumably your "ThinApp" has registered the .ppt
extension properly and you'll only need to adjust
the DefaultIcon path.
Does that all make sense?

Quote:

> Hello everyone, Here is what I am trying to do. I have deployed powerpoint
> from thinapp through my organization. only problem is it does not show the
> ppt icon. is there a script or batch file that will allow me to set the
icon
Quote:

> for the file ?
>
> eg can do this manually but will take about a week with all the computers
> and user profiles.
> open up a folder, tools, folder options, file types, ppt, advanced, change
> icon
> is how I have done it to verify the icon file works.
>
> here is the structure.
> program installes to c:\documents and settings\%username%\application
> data\Microsoft Power Point (VMware ThinApp)\
> icon is also in that location as pptico.exe
>
> please help.
>
>
>

My System SpecsSystem Spec
Old 08-01-2009   #3 (permalink)
Donald


 
 

Re: script to change file type icon

thinapp is a application virtualization program. I virtualized PowerPoint,
to push it out to certain users. the only problem is when I added the office
2007 compatibity pack to PowerPoint it killed the icons. I found out I could
manually change them back but that would be a huge under taking.
"mayayana" <mayaXXyana@xxxxxx> wrote in message
news:%23l%23dZamEKHA.1340@xxxxxx
Quote:

> I don't really understand what you're doing.
> You've got something that's called "ThinApp"
> and it's a Powerpoint replacement? If what you
> need is this....
Quote:

>> open up a folder, tools, folder options, file types, ppt, advanced,
>> change
>> icon
>
> then you can do it in the Registry. HKCR\.ppt default
> value will point to a file type name. On my system
> that's HKCR\OpenOffice.org.ppt. The file type name
> depends on what program (if any) is the default for
> that file type.
> If I then look up the HKCR\OpenOffice.org.ppt\DefaultIcon\
> default value I find the path of the file plus the icon number
> for the default icon.
> So in your case that would be something like:
>
> c:\documents and settings\Louie\application
> data\Microsoft Power Point (VMware ThinApp)\
> pptico.exe,1
>
> Presumably your "ThinApp" has registered the .ppt
> extension properly and you'll only need to adjust
> the DefaultIcon path.
> Does that all make sense?
>
>
Quote:

>> Hello everyone, Here is what I am trying to do. I have deployed
>> powerpoint
>> from thinapp through my organization. only problem is it does not show
>> the
>> ppt icon. is there a script or batch file that will allow me to set the
> icon
Quote:

>> for the file ?
>>
>> eg can do this manually but will take about a week with all the computers
>> and user profiles.
>> open up a folder, tools, folder options, file types, ppt, advanced,
>> change
>> icon
>> is how I have done it to verify the icon file works.
>>
>> here is the structure.
>> program installes to c:\documents and settings\%username%\application
>> data\Microsoft Power Point (VMware ThinApp)\
>> icon is also in that location as pptico.exe
>>
>> please help.
>>
>>
>>
>
>

My System SpecsSystem Spec
Old 08-01-2009   #4 (permalink)
mayayana


 
 

Re: script to change file type icon

> thinapp is a application virtualization program. I virtualized PowerPoint,
Quote:

> to push it out to certain users. the only problem is when I added the
office
Quote:

> 2007 compatibity pack to PowerPoint it killed the icons. I found out I
could
Quote:

> manually change them back but that would be a huge under taking.
I see. See the sample below. I don't use MS Office
so I don't know the standard file type name that
Microsoft uses. I just guessed by using "PowerPointFile".
You should be able to check that in your own Registry.
(The default value under HKCR\.ppt\.)

The following is a sample that would create the
necessary keys and values. It's the same thing that
Folder Options -> File Types does. The File Types applet
is just a front-end for the Registry settings. The only
difference for you with this script is that file type name
that you need to substitute for "PowerPointFile", and
you'll also, of course, need to calculate the exact parent
folder path of pptico.exe (IcoPath) when the script runs.

Dim SH, IcoPath
Set SH = CreateObject("WScript.Shell")
SH.RegWrite "HKCR\.ppt\", "PowerPointFile"
SH.RegWrite "HKCR\PowerPointFile\", ""
SH.RegWrite "HKCR\PowerPointFile\DefaultIcon\", IcoPath & "\pptico.exe,
1"
Set SH = Nothing




My System SpecsSystem Spec
Old 08-02-2009   #5 (permalink)
Donald


 
 

Re: script to change file type icon

thankyou that worked.
"mayayana" <mayaXXyana@xxxxxx> wrote in message
news:eSUexrqEKHA.1376@xxxxxx
Quote:
Quote:

>> thinapp is a application virtualization program. I virtualized
>> PowerPoint,
>> to push it out to certain users. the only problem is when I added the
> office
Quote:

>> 2007 compatibity pack to PowerPoint it killed the icons. I found out I
> could
Quote:

>> manually change them back but that would be a huge under taking.
>
> I see. See the sample below. I don't use MS Office
> so I don't know the standard file type name that
> Microsoft uses. I just guessed by using "PowerPointFile".
> You should be able to check that in your own Registry.
> (The default value under HKCR\.ppt\.)
>
> The following is a sample that would create the
> necessary keys and values. It's the same thing that
> Folder Options -> File Types does. The File Types applet
> is just a front-end for the Registry settings. The only
> difference for you with this script is that file type name
> that you need to substitute for "PowerPointFile", and
> you'll also, of course, need to calculate the exact parent
> folder path of pptico.exe (IcoPath) when the script runs.
>
> Dim SH, IcoPath
> Set SH = CreateObject("WScript.Shell")
> SH.RegWrite "HKCR\.ppt\", "PowerPointFile"
> SH.RegWrite "HKCR\PowerPointFile\", ""
> SH.RegWrite "HKCR\PowerPointFile\DefaultIcon\", IcoPath & "\pptico.exe,
> 1"
> Set SH = Nothing
>
>
>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
File Extension Type Icon - Change Tutorials
How do you change a file type icon? Vista General
How do you change a file type icon? Vista installation & setup
Client Script - File Type VB Script
Change file type icon Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46