Change default program through script - Windows 7 Help Forums
Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Change default program through script

14 Sep 2010   #1

Windows 7 RC
Change default program through script

Hi guys, I'm in a new IT job for a computer lab and I'm picking up skills for maintaining it as I go along.

I need to change the default program for a filetype on all machines in the lab. If I just log on as admin and change it under my account, the change doesn't persist for the non-admin users.

I was thinking of maybe writing a script that will change the file association for all users but am not sure how to go about this.

Can anyone offer direction or help? Google turned up some old threads that weren't very helpful.

My System SpecsSystem Spec
14 Sep 2010   #2

Windows 8 Core X64

Open a Command Prompt and enter ftype /?. It will show you how to use the ASSOC and FTYPE commands to do what you want.
My System SpecsSystem Spec
14 Sep 2010   #3

Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer

Set program access and computer defaults

Attached Images
My System SpecsSystem Spec

 Change default program through script

Thread Tools

Similar help and support threads for2: Change default program through script
Thread Forum
Change default program for .html General Discussion
change default dvd-program Music, Pictures & Video
Open With - Change Default Program Tutorials
Change default program Install path Software
Want to change Default graphic program. Software
Change default email program Browsers & Mail

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 20:49.
Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App