Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SysAdmin
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 14-Nov-12 7:12am
Comments
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?
--SA

1 solution

Rate this: bad
good
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
  Permalink  
v5

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

  Print Answers RSS
0 OriginalGriff 620
1 Maciej Los 610
2 CPallini 255
3 RyanDev 161
4 Peter Leow 125
0 OriginalGriff 5,784
1 Sergey Alexandrovich Kryukov 4,838
2 Peter Leow 3,009
3 Maciej Los 2,894
4 DamithSL 2,465


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 15 Nov 2012
Copyright © CodeProject, 1999-2014
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