Current Working Directory of Startup Program

C

cccccccccccccc

I created a startup program by putting a registry entry in:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Name="my program"
Type=string
Value="C:\some\directory\myProgram.exe"

This program opens a file in the Current Working Directory - say file
C:\some\directory\someFile.txt

When windows starts, it runs "C:\some\directory\myProgram.exe" and
cannot find "C:\some\directory\someFile.txt", I'm guessing because the
when it's executing this command it is from another directory. What
is the current working directory when Windows fires startup commands?
I tried copy "someFile.txt" to c:\windows\system32 with no luck.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top