M
Matt Budd
Hello,
I am writing a companion app to one of our companies legacy apps (2000 and
XP) that stores data in :
C:\Documents and Settings\<user>\Application Data\<app>\
I want to in my app (written in C#) get the name of this directory to read
files from it. I don't want to hardcode it though (using the
SystemInformation.UserName). Instead I was thinking I could use the
Applicaiton.UserAppDataPath property.
When I try to read this, though, it creates a directory for my app which I
don't want it to do. I'd be fine retrieving it and then truncating the parts
that don't match the old app, but I don't want it created. Any advice?
- Matt
I am writing a companion app to one of our companies legacy apps (2000 and
XP) that stores data in :
C:\Documents and Settings\<user>\Application Data\<app>\
I want to in my app (written in C#) get the name of this directory to read
files from it. I don't want to hardcode it though (using the
SystemInformation.UserName). Instead I was thinking I could use the
Applicaiton.UserAppDataPath property.
When I try to read this, though, it creates a directory for my app which I
don't want it to do. I'd be fine retrieving it and then truncating the parts
that don't match the old app, but I don't want it created. Any advice?
- Matt