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: How to set a .txt file to launch on startup?

20 Jan 2011   #1
yonyz

Windows 7 32-bit
 
 
How to set a .txt file to launch on startup?

Hi,

I have my to do list typed in a simple .txt file that I edit with Notepad.
I would like that particular file to launch and appear as soon as Windows starts.

How can I achieve that?


My System SpecsSystem Spec
.
20 Jan 2011   #2
MacGyvr

Windows 7 Ultimate RTM (Technet)
 
 

Browse to your startup folder, usually located at C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup (for you only) or C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup (for all users).

Create a new shortcut with "notepad.exe yourfilename.txt" as the target. Depending on where you store the .txt file, you may need to include the path, like "notepad.exe c:\users\yourname\documents\filename.txt"

The next time you boot up, notepad will launch with your file open.

Startup Programs - Change
My System SpecsSystem Spec
21 Jan 2011   #3
yonyz

Windows 7 32-bit
 
 

I'll try that now and reply with the results later. Thanks.
My System SpecsSystem Spec
.

21 Jan 2011   #4
DeVandal

Windows 7 Ultimate x64
 
 

You could just keep the todolist.txt file in the startup folder.
My System SpecsSystem Spec
21 Jan 2011   #5
adn258

Windows 7 Ultimate 64 bit
 
 

All of the methods they describe are correct however there is another option I want to point out that (I LIKE BETTER PERSONALLY) because it's more explicit and I think it causes less problems, but this is partially a matter of opinion: the method I speak of is through the registry. Do as follows if you want to use this method:

Pretending you have the text document saved to Your Documents:

  • press the windows button + r this brings up the run dialog
  • type regedit and hit enter, and when it asks for permissions hit yes
  • browse to this key HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run
You will actually see two keys Run and RunOnce, Run once is used if you want to set string values to a location and you ONLY want them to run once; Run is used if you want to to run all the time which is sounds like you do

So you click run

Then you will see to the right name type and data and there will already be some values there.

  • click somewhere in the white
  • go to new string value and and when the window pops up name it whatever you want
  • double click the key once it's create and give it the value of the path to your .txt file for instance if it's in Documents
    C:\Users\YourUserName\Documents\happy.txt
This sounds complicated here but it seriously isn't, it takes one minute and I think it's a better method!

Cheers!
My System SpecsSystem Spec
21 Jan 2011   #6
yonyz

Windows 7 32-bit
 
 

Well, MacGyvr method works best for me because, obviously, I regularly edit the file, so merely having its shortcut for it in the Startup folder, means that I can place the original file in an easily accessible folder.

Nevertheless, I thank you all for your different solutions.

Edit: adn258, I wonder, why do you think the registry method is a better one that the ones previously suggested?
My System SpecsSystem Spec
21 Jan 2011   #7
adn258

Windows 7 Ultimate 64 bit
 
 

Quote   Quote: Originally Posted by yonyz View Post
Well, MacGyvr method works best for me because, obviously, I regularly edit the file, so merely having its shortcut for it in the Startup folder, means that I can place the original file in an easily accessible folder.

Nevertheless, I thank you all for your different solutions.

Edit: adn258, I wonder, why do you think the registry method is a better one that the ones previously suggested?
More explicit I've seen the startup folder method fail eventually for various reasons is all I can say, I also think it won't startup for all users though I will have to check that and that depends on if you have multiple-will check on that though not sure 100%

note: you can edit the text file still if it's in the registry as long as the path doesn't change editing the text file makes no difference it's a simple registry string that tells the computer to open that text file every time the computer starts, the binary or text date in that file makes no difference .

Peace The choice is yours though doesn't matter to me just trying to be helpful
My System SpecsSystem Spec
21 Jan 2011   #8
MacGyvr

Windows 7 Ultimate RTM (Technet)
 
 

Either method works well, I just don't suggest anyone editing the registry unless they are very comfortable with it.
My System SpecsSystem Spec
21 Jan 2011   #9
adn258

Windows 7 Ultimate 64 bit
 
 

Quote   Quote: Originally Posted by MacGyvr View Post
Either method works well, I just don't suggest anyone editing the registry unless they are very comfortable with it.
I know I know and you are totally right but something about moving a file; it's not inscrutable, you know? I mean it's fine don't get me wrong, but when it comes to those who like to tinker like me....mmmm...I won't say anymore lol.
My System SpecsSystem Spec
22 Jan 2011   #10
Layback Bear

Windows 10 Pro. 64/ version 1709
 
 

I agree with MacGyvr post # 8. IMHO the registry is no place for most of us to fooling around in.
My System SpecsSystem Spec
Reply

 How to set a .txt file to launch on startup?




Thread Tools




Similar help and support threads
Thread Forum
unable to launch executable from within .bat file
I am trying to get started with Google's Android Studio. I have installed the studio software and the Android SDK on my d:\ drive, as follows... d:\dev\android\android-studio d:\dev\android\sdk In the SDK, there is a .bat file, android.bat, that in turn calls another .bat file,...
General Discussion
Windows 7 is in a boot loop and I can't launch startup repair
Hello, I have an Acer Aspire V3-551 and recently, it can't boot, I tried a backup & restore using Acer's eRecovery management software. It was able to backup my files but hasn't made it past restoring, now I can't even go in start up repair and it keeps rebooting on windows 7 installation no...
General Discussion
Windows Startup Repair doesn't launch
I started my computer this morning and it went straight to a black screen where I have to pick from two options:Launch startup repair or Start Windows normally. If I start normally, it just restarts my computer and goes back to the black screen. If I launch the startup repair, it goes to a screen...
Performance & Maintenance
Explorer.exe Dosn't launch in the startup
GM when i start my PC ..... after the welcome screen i get a black screen and my document opens ...... explorer.exe dosn't launch till i launch it from task Task Manager ..... after that the background comes and the taskbar too why that :cry::cry::cry: please help me
BSOD Help and Support
Launch Window startup repair
Hi, Everytime i turn my computer on it launches into startup repair (recommended) Windows laoding files Starup repair is checking your system for problems do you want to restore your computer using system restore Could anybody please help as my child needs this computer to do his...
General Discussion


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 02:26.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App