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

txt in command prompt


  • Please log in to reply
29 replies to this topic

#1 stang90

stang90

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Local time:04:16 AM

Posted 20 June 2012 - 01:15 PM

This probably sounds really stupid, but for the past year I'v had this problem, and it's really starting to get on my nerves.

When I try to open of .txt files, instead of opening in notepad, the command prompt comes up and tells my the directory that file is currently in.
I'd rather, you know, that NOT happen, so I dont have to open notepad every time and drag the file into it.

BC AdBot (Login to Remove)

 


#2 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:08:16 AM

Posted 20 June 2012 - 01:16 PM

What operating system?

#3 stang90

stang90
  • Topic Starter

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Local time:04:16 AM

Posted 20 June 2012 - 04:32 PM

Windows 7...

#4 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:08:16 AM

Posted 20 June 2012 - 06:28 PM

Can you do the following:

1) Navigate to Folder Options in Control Panel

2) Go to the View Tab

3) Make sure that Show Hidden Files is checked.

4) Make sure that Hide Extensions of for Known File Types is unchecked

5) Make sure that Hide protected operating system files is unchecked

Then see what kind of extension the text files you are opening have.

#5 stang90

stang90
  • Topic Starter

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Local time:04:16 AM

Posted 20 June 2012 - 07:41 PM

They all have the .txt extension.
The icons are also the default white notepad icon, leading me to believe that they would actually open in notepad.

#6 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:08:16 AM

Posted 21 June 2012 - 05:38 AM

Have a read here: http://windows.microsoft.com/en-us/windows7/Change-which-programs-Windows-uses-by-default

#7 stang90

stang90
  • Topic Starter

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Local time:04:16 AM

Posted 21 June 2012 - 09:16 AM

http://imgur.com/j7nrz

Well I had high hopes for that one.
As you can see in that picture, the default for txt is set to the command line.
If I try to change it to either notepad or wordpad, well, it doesn't.

#8 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:08:16 AM

Posted 21 June 2012 - 02:27 PM

Create another account via user accounts, and see if it still happens.

#9 stang90

stang90
  • Topic Starter

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Local time:04:16 AM

Posted 22 June 2012 - 02:27 PM

All right, did that, And no problem. So what does that tell me?

#10 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:08:16 AM

Posted 23 June 2012 - 01:32 PM

the file association open command for txt files was changed to open up with command.com or cmd.exe which is the command line tool or psuedo-dos like environment for Windows NT or later.

#11 stang90

stang90
  • Topic Starter

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Local time:04:16 AM

Posted 23 June 2012 - 02:38 PM

yeeeaaah... So what should I do about it.

#12 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:08:16 AM

Posted 23 June 2012 - 02:40 PM

Did you change the default program to notepad? that is the only way to fix it.

#13 stang90

stang90
  • Topic Starter

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Local time:04:16 AM

Posted 23 June 2012 - 02:58 PM

Like I Said, it wouldn't.
I can go to Default Programs > Set Associations, and I can see that it is currently set to "Windows Command Processor".
But if I try to change it to notepad, or any other word processor it will not.
Changing the default for any other extension works just fine though.

#14 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:08:16 AM

Posted 23 June 2012 - 03:07 PM

What error message do you get when you try and change it to Notepad you should be prompted with an error message stating why you cannot change it.

#15 stang90

stang90
  • Topic Starter

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Local time:04:16 AM

Posted 23 June 2012 - 05:32 PM

I dont actually. It just dosnt. It's like, *click click* notepad; "open with" window closes, nothing actually changed.
If I change any other file type, the window closes, the list refreshes and the change has been made.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users