Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6696925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:23:56+00:00 2026-05-26T06:23:56+00:00

I want to create a script that will set the file associations for mostly

  • 0

I want to create a script that will set the file associations for mostly MS Office files and a few other files extensions to the local applications (they would currently be through citrix). I am planning on using a simple Batch file.

However I would like it to be able to detect whether the filetype is valid and create it if not using ftype. I would also like it to be able to detect/differentiate between whether the user has MS Office 2003 or MS Office 2007 and associate accordingly.

My question is, will a Batch file be able to do all this, or am I better off using something else like a vb script (taking into account I know NO vb, although I’m pretty novice with Batch files too)??

Any help is appreciated

EDIT: I should have bee clearer that this is in a locked down environment, so no direct registry editoring can be done, and it will need to be available to users, from a shared drive or something similiar.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:23:57+00:00Added an answer on May 26, 2026 at 6:23 am

    A batch file alone can’t detect if the file association is correct, but you could just fire the batch file everytime anyway, forcing the file association to be correct. It’ll just overwrite what’s already there.

    Just create the proper associations yourself, then run Regedit and export a .reg file containing the association keys, and use a batch file that runs regedit to import the keys. Probably /import or somesuch – I rarely use Windows anymore!

    Here’s a page that explains it:
    http://www.robvanderwoude.com/regedit.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create some kind of AJAX script or call that continuously will
I want to create a script that will do something if hg incoming -v
I want to create a script that will run whenever a server is turned
I want to create a script that parses or makes sense of apache's error
I want to create an SQL script that creates a database. Right now, I
I have a script that create a new div element. Then, I want to
I am trying to write a script that will look through a set of
I am trying to create a script that will open an application in a
I want to create a program, that will use SQL Server 2008 database. During
I want to create an HTTPURLConnection to a PHP script and get the HTTP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.