Click here to Skip to main content
11,502,348 members (63,537 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: SysAdmin
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

Posted 14-Nov-12 7:12am
Sergey Alexandrovich Kryukov at 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?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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

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

Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 15 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100