[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 376
  • Last Modified:

How can I make notepad my default text editor

Several hundred users need notepad as their default text editor. I would like a vbscript that does this. I am new to vbscript and currently researching Google. Any help is greatly appreciated.
0
rrangel8
Asked:
rrangel8
  • 5
  • 5
1 Solution
 
Bill PrewCommented:
What do you mean by "their default text editor"?

If you mean that you want a file with a TXT extension to be opened by Notepad, then that is the Windows default already.  Or has something changed that to a different program, and you want to change it back?

~bp
0
 
rrangel8Author Commented:
for instance....when clicking a word document I want it to open in Notepad.
0
 
rrangel8Author Commented:
i am trying not to go to each computer and do the file association thing.
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Bill PrewCommented:
From a command line, you can check associations by doing the following:

ASSOC .TXT

and

FTYPE TEXTFILE

What do they report?

~bp
0
 
Bill PrewCommented:
By a Word document, do you mean a DOC file?  If so opening that in Notepad will not work since it is a binary format understood by the Word application.

~bp
0
 
Bill PrewCommented:
Typically file associations are easier to manipulate in a BAT script file rather than VBS.  Most VBS solutions I've seen just run the needed command via the shell command, like in this example:

http://www.eggheadcafe.com/aspnet_answers/scriptingVisualBasicscript/Aug2006/post27691751.asp

Here's a related EE posting that might help:

http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_23620805.html

~bp
0
 
rrangel8Author Commented:

for billprew:

assoc.txt : .txt=textfile
fype textfile: textfile - c:\program files\sapien technologies, inc.....sendtops.exe "%1"
0
 
rrangel8Author Commented:
Going to a long boring meeting right now....will check back in later. Thank you for your thoughts, it gives me something to think about. A fresh pair of eyes to look at an idea that I didn't think of yet.
0
 
Bill PrewCommented:
Okay, it would be easy enough to re-associate TXT files with notepad, just do something like:

textfile="%WinDir%\System32\notepad.exe" "%1"

But that won't associate DOC files or other extensions to Notepad, which I think would be a bad idea anyway.

~bp
0
 
rrangel8Author Commented:
THANK YOU FOR YOUR TIME AND CONSIDERATION WITH YOUR ASSISTANCE.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now