it may depend from different app "working directory" (directory where app is launched)
How do you get the file list??
it may depend from different app "working directory" (directory where app is launched)
How do you get the file list??
A camel can go 14 days without drink,
I can't!!!
That looks much more like the activity of a virus scanner. Unless you have coded your Qt app to access these files, e.g. charmap.exe or cmd.exe, it won't do it on its own.
The file list is being printed on app startup - that the first thing that happens.
The wiered thing about it, that only when i add this app to startup in registry it show those files as present in the application directory... when i execute it after os startup from file browser - the list is only the application files...
Anyone encountered such a behavior?
You're trying to list the files in the application directory right ?
But, try to write to your log file (or output) the current directory before listing.
Maybe the explorer.exe in the initialization sets the working directory of "C:\WINDOWS\system32\"
So, if listing the files of the current working directory, this will make you list the content of system32 directory.
If you're already using the function of qApp. You can try to use the windows api function GetModuleHandle, GetModuleFileName, use the path in a QFileInfo and get absoluteDirectory();
looks like the current directory is system32 , any idea why its set to it? or how can i change that to the app directory?
Bookmarks