Click here to Skip to main content
15,921,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello friends
recently i make a program with c#. this program must open specific file and then read a string from it. also i need to run this program after Login to windows and before windows's Explorer.exe start working.so i changed the Registry and now my program launch when windows start working. but here is my problem: when i run my program typically on the windows, it can easily open file and read from them,but when this program run on start-up before explorer.exe, it cannot open the file. i don't know what, but this problem prevent my program to work.please help me.
Thanks
Posted
Comments
Garth J Lancaster 15-Jul-13 6:43am    
dude - we can appreciate you have issues, but we dont either read minds or have visibility of your machine...

So, how about
a) adding logging/tracing to your program
b) posting the error message(s) you get
c) posting the relevant piece of code
d) showing us what you found in (b,c)

1 solution

Probably, it is access permissions for the user your application is running as. Because you are running before Explorer, the (real) user is not logged in yet, and you app runs under a service ID.
Have a look at this: Backing up an SQL Database in C#[^] under the "So, It'll Work Now?" section, and it explains what you probably need to do.
 
Share this answer
 

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