+ Post New Thread
Results 1 to 6 of 6
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. ...
  1. #1

    Join Date
    Feb 2007
    Location
    Hereford
    Posts
    213
    Thank Post
    5
    Thanked 3 Times in 3 Posts
    Rep Power
    16

    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????

  2. #2

    Join Date
    Apr 2007
    Location
    York
    Posts
    564
    Thank Post
    11
    Thanked 4 Times in 4 Posts
    Rep Power
    20
    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

  3. #3

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,265
    Thank Post
    242
    Thanked 1,575 Times in 1,254 Posts
    Rep Power
    341
    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

  4. #4

    Join Date
    Feb 2007
    Location
    Hereford
    Posts
    213
    Thank Post
    5
    Thanked 3 Times in 3 Posts
    Rep Power
    16
    Quote Originally Posted by Michael View Post
    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.

  5. #5

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,265
    Thank Post
    242
    Thanked 1,575 Times in 1,254 Posts
    Rep Power
    341
    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

  6. #6

    Join Date
    Feb 2007
    Location
    Hereford
    Posts
    213
    Thank Post
    5
    Thanked 3 Times in 3 Posts
    Rep Power
    16
    Quote Originally Posted by Michael View Post
    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:
+ Post New Thread

Similar Threads

  1. Set firefox proxy via login script
    By Jackd in forum Windows
    Replies: 2
    Last Post: 24th December 2009, 01:59 PM
  2. File Aging Script Needed
    By ICTNUT in forum Scripts
    Replies: 8
    Last Post: 5th September 2008, 12:56 PM
  3. Replies: 10
    Last Post: 5th September 2008, 11:29 AM
  4. File Associations
    By OutLawTorn in forum Windows
    Replies: 6
    Last Post: 10th September 2007, 11:36 AM
  5. 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
  •