Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: (untagged)
Hellow
I wrote a program named MyProg. The program requires a text file named MYtxtFile.txt
I want to call the program from startup.
The path of the start up in my computer is
c:\users\khaled\AppData\Roaming\Microsoft\windows\Start Menu\Programs\Startup
--------
MyProg.exe and all of its required files are located in D:\Hellow
I have copied MyProg.exe (by control _c and control_v) to
c:\users\khaled\AppData\Roaming\Microsoft\windows\Start Menu\Programs\Startup
Then I reboot the computer and got this error
can not find
'C:\Users\Khaled\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\ MYtxtFile.txt'
I could not rename MyProg to D:\Hellow\MyProg
Semi colon and slash are forbidden

help
Posted
Comments
Sergey Alexandrovich Kryukov 14-Nov-12 15:34pm    
It all depends on what is written in your code, not that you need to work around the problems on the user level. SysAdmin is irrelevant -- provide information on your code. How your code works with the file path names?
--SA

1 solution

do the following
1- Press Start at the lower left of the screen
2- type Run
3- type

%userprofile%\Start Menu\Programs\Startup

this should open the startup folder

4- Right click on the folder select New then you will see a list, choose shortcut
5- type the path for the filename which you want to execute at startup
6- reboot your computer (select restart)
your program should now run
 
Share this answer
 
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900