Jump to content

Recommended Posts

Posted

Hello I created a simple program to print labels with a Dymo Label Creator.  However there is one part I cant seem to figure out how to automate.  the labels are saved like this file1.label, I need to change all .label extensions to open with a file in the script folder named printlabel.exe 

 

I have been doing it manually by right clicking the .label file, going to properties, and changing the opens with settings.  Is there any simple command I can run to change them automatically without having to right click and go into the properties?

This is what I want to automate>

5abbb75109449_beforechange.PNG.1388b83f46a055afa33ac59c8a79d75c.PNG5abbb7bf47c5b_afterupdate.thumb.PNG.d0d9546dfe0dfbf401f54851f7d74bab.PNGupdated.PNG.d76a348e32e75766f05347d8a141f008.PNG

Hope my request is easy to understand.   Thanks!!

Posted

Do you have something else that reads these .Label items why not Right click on one Choose - OPEN WITH select the checkmark next to always use selected application and choose your new default program?

Posted

Well i only have to change it once, but I'm going to give it to a few others to use and this would be one less thing to explain if i can get the script to do it.

Posted (edited)

Rather than restarting after you change your associations you should be able to call this function

#include <APIShellExConstants.au3>
#include <MsgBoxConstants.au3>
#include <WinAPIShellEx.au3>

    _WinAPI_ShellChangeNotify($SHCNE_ASSOCCHANGED, SHCNF_IDLIST)

 

Edited by Bilgus

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...