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

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -