Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

BAT File that chnage default program


  • Please log in to reply
2 replies to this topic

#1 Richard ken

Richard ken

  • Members
  • 247 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Local time:09:09 AM

Posted 19 November 2017 - 11:20 PM

Does anyone know how to write a simple BAT file that will change the default program? For example, when I click on this bat file, it will change the default program from one program to another or just assign a program to the file type.

 

Thank you



BC AdBot (Login to Remove)

 


#2 SleepyDude

SleepyDude

  • Malware Response Team
  • 3,083 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Portugal
  • Local time:06:09 PM

Posted 20 November 2017 - 06:39 AM

Hi,

 

This should help you start

https://superuser.com/questions/406985/programatically-associate-file-extensions-with-application-on-windows


• Please do not PM me asking for support. Post on the forums instead it will increases the chances of getting help for your problem by one of us.
• Posts in the Malware section that are not replied to within 4 days will be closed. PM me or a moderator to reactivate.
• Please post your final results, good or bad. We like to know! Thank you!

 
Proud graduate of GeekU and member of UNITE
___
Rui

 
 


#3 mightywiz

mightywiz

  • Members
  • 841 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:10:09 AM

Posted 05 December 2017 - 02:15 PM

windows already does this.

 

just right click on the file and select "open with" and select "choose default program..", then when the box open you pick the program to open the file with, if it's not listed on the windows you can direct manually pick the program.  then make sure you check/uncheck the box that says "always use this selected file to open this kind of program".

 

no need to re-create something that's already built in.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users