c# - Starting a process with Windows start-up (can not find supporing files) -
I programmed (C # .Net 3.5) when Windows starts (XP), the process of starting. This process uses the other files in the same file as its own, in addition, it starts another process, again located in the same folder.
However, it seems that the files can not be found in the same folder (they are). Instead, it appears in the "C: \ Documents and Setting \ User" folder. Whenever, all the files are in this folder then it starts correctly but when they are not in a separate folder.
This process HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Run
You can try to set up a working directory while starting your process:
directory .creator directory (path.gate directoryname (assembly.contacting assembly) (location)) ;
If you later attempt to access a directory in the same directory that specifies the executable process as a relative path, then it should be able to find it.
Comments
Post a Comment