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

yonyz

Banned
Local time
10:05 PM
Messages
30
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 Computer My Computer

At a glance

Windows 7 32-bit
OS
Windows 7 32-bit
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.

http://www.sevenforums.com/tutorials/1401-startup-programs-change.html
 
Last edited by a moderator:

My Computer My Computer

At a glance

Windows 7 Ultimate RTM (Technet)3.00 gigahertz Intel Core2 Duo E84004GBATI Radeon X1950 Pro
Computer Manufacturer/Model Number
Custom
OS
Windows 7 Ultimate RTM (Technet)
CPU
3.00 gigahertz Intel Core2 Duo E8400
Motherboard
ASUSTeK Computer INC. P5K/EPU Rev 1.xx
Memory
4GB
Graphics Card(s)
ATI Radeon X1950 Pro
Sound Card
Built in HD Audio
Monitor(s) Displays
22" Gateway LCD
Screen Resolution
1920 x 1200
Hard Drives
ST3160023A [Hard drive] (160.04 GB) -- drive 0, rev 8.01, ST3500630AS [Hard drive] (500.11 GB) -- drive 2, rev 3.AAK
ST3500630AS [Hard drive] (500.11 GB) -- drive 1, rev 3.AAK
Keyboard
Logitech G11
Mouse
Microsoft Wireless Laser Mouse 5000
Internet Speed
13.44 Mbps
I'll try that now and reply with the results later. Thanks.
 

My Computer My Computer

At a glance

Windows 7 32-bit
OS
Windows 7 32-bit
You could just keep the todolist.txt file in the startup folder.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64P4 3.2DDR 400ATI HD3850
OS
Windows 7 Ultimate x64
CPU
P4 3.2
Motherboard
Intel 815GM
Memory
DDR 400
Graphics Card(s)
ATI HD3850
Sound Card
C-Media 7.1
Monitor(s) Displays
SyncMaster 244T
Screen Resolution
1920*1200
Hard Drives
Several
PSU
500
Case
PowerSpec $24
Cooling
ThermalTake copper
Internet Speed
Blazing
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 Computer My Computer

At a glance

Windows 7 Ultimate 64 bit
OS
Windows 7 Ultimate 64 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 Computer My Computer

At a glance

Windows 7 32-bit
OS
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?

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 Computer My Computer

At a glance

Windows 7 Ultimate 64 bit
OS
Windows 7 Ultimate 64 bit
Either method works well, I just don't suggest anyone editing the registry unless they are very comfortable with it.
 

My Computer My Computer

At a glance

Windows 7 Ultimate RTM (Technet)3.00 gigahertz Intel Core2 Duo E84004GBATI Radeon X1950 Pro
Computer Manufacturer/Model Number
Custom
OS
Windows 7 Ultimate RTM (Technet)
CPU
3.00 gigahertz Intel Core2 Duo E8400
Motherboard
ASUSTeK Computer INC. P5K/EPU Rev 1.xx
Memory
4GB
Graphics Card(s)
ATI Radeon X1950 Pro
Sound Card
Built in HD Audio
Monitor(s) Displays
22" Gateway LCD
Screen Resolution
1920 x 1200
Hard Drives
ST3160023A [Hard drive] (160.04 GB) -- drive 0, rev 8.01, ST3500630AS [Hard drive] (500.11 GB) -- drive 2, rev 3.AAK
ST3500630AS [Hard drive] (500.11 GB) -- drive 1, rev 3.AAK
Keyboard
Logitech G11
Mouse
Microsoft Wireless Laser Mouse 5000
Internet Speed
13.44 Mbps
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 Computer My Computer

At a glance

Windows 7 Ultimate 64 bit
OS
Windows 7 Ultimate 64 bit
I agree with MacGyvr post # 8. IMHO the registry is no place for most of us to fooling around in.
 

My Computer My Computer

At a glance

Windows 10 Pro. 64/ version 1709 Windows 7 Pr...Intel i7-6800K @ 4.3Corsair Platinum 16 gig @2400EVGA GTX 1070 OC
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
I'm very comfortable editing the registry, as long as it's really necessary, unlike this case.
Again, I thank you all for your suggestions. Have a great week.
 

My Computer My Computer

At a glance

Windows 7 32-bit
OS
Windows 7 32-bit
Back
Top