Windows Thread, login script needed to set file associations in Technical; We have some pcs in our school where the association for jpg file is set to File a Fax viewer. ...
-
26th February 2009, 11:05 AM #1
- Rep Power
- 13
login script needed to set file associations
We have some pcs in our school where the association for jpg file is set to File a Fax viewer. When the jpg is open it has an error about something missing from registry.
I need a login script that will set the jpg associations to a diffarent program.
Does any one know the coding needed to do this????
-
-
IDG Tech News
-
26th February 2009, 11:40 AM #2
- Rep Power
- 17
Think the error you mean is from Photo Editor - there is instructions on Microsoft site how to change the registry but its a pain if you have lots of machines to do. Can't help you with the script - sorry
-
-
26th February 2009, 12:19 PM #3 Code:
ftype jpgfile="C:\Windows\System32\mspaint.exe" "%1"
assoc .jpg=jpgfile
Code:
ftype jpegfile="C:\Windows\System32\mspaint.exe" "%1"
assoc .jpeg=jpegfile
These should work from a logon script, associating .jpg and .jpeg with Microsoft Paint. The problem with Picture and Fax viewer is that it doesn't have its own .exe file. It's a component of explorer.exe, so I don't think using ftype could be used.
You could use the same method above for associating with Paint Shop Pro and/or Adobe Photoshop however
-
-
26th February 2009, 04:49 PM #4
- Rep Power
- 13

Originally Posted by
Michael
Code:
ftype jpgfile="C:\Windows\System32\mspaint.exe" "%1"
assoc .jpg=jpgfile
Code:
ftype jpegfile="C:\Windows\System32\mspaint.exe" "%1"
assoc .jpeg=jpegfile
These should work from a logon script, associating .jpg and .jpeg with Microsoft Paint. The problem with Picture and Fax viewer is that it doesn't have its own .exe file. It's a component of explorer.exe, so I don't think using ftype could be used.
You could use the same method above for associating with Paint Shop Pro and/or Adobe Photoshop however

I'm thinking to install paint.net
If i want jpg files to be associated with paint.net what do i do?
the paint.net uses "PaintDotNet.exe"
I have tried putting in %SystemRoot%\system32\mspaint.exe into the script to test it worked.
When i login as admin and run it. The jpg file is not changed.
-
-
26th February 2009, 05:42 PM #5 I downloaded Paint.net v3.36, which I found installs to C:\Program Files\Paint.NET so you simply update the path as appropriate:
Code:
ftype jpgfile="C:\Program Files\Paint.NET\PaintDotNet.exe" "%1"
assoc .jpg=jpgfile
-
-
6th March 2009, 02:59 PM #6
- Rep Power
- 13

Originally Posted by
Michael
I downloaded Paint.net v3.36, which I found installs to C:\Program Files\Paint.NET so you simply update the path as appropriate:
Code:
ftype jpgfile="C:\Program Files\Paint.NET\PaintDotNet.exe" "%1"
assoc .jpg=jpgfile
Hi,
i copied the last bit of code you posted.
I changed the path to the desktop as that where i have installed for the moment.
When i run and then check a jpg file it still open will fax viewer.
DG
-
SHARE: 
Similar Threads
-
By Jackd in forum Windows
Replies: 2
Last Post: 24th December 2009, 01:59 PM
-
By ICTNUT in forum Scripts
Replies: 8
Last Post: 5th September 2008, 12:56 PM
-
By Geoff in forum Scripts
Replies: 10
Last Post: 5th September 2008, 11:29 AM
-
By OutLawTorn in forum Windows
Replies: 6
Last Post: 10th September 2007, 11:36 AM
-
By tosca925 in forum Scripts
Replies: 4
Last Post: 23rd March 2006, 06:27 AM
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