if
(!Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData) + \\Application Name)){
DirectoryInfo dir = new DirectoryInfo(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData));dir.CreateSubdirectory(
"Application Name");}
The scenario is unclear to me. Does the application run on the terminal server? When a user login to your terminal server and run your application, you want to write the user information in login.xml? If you mean that, first you need to add users who can use your app to a group (Name Group_A). Then configure the NTFS permission of “All Users” folder let Group_A has enough permission. “All Users” folder is not a good implement, you might think of using ProgramData folder.
> --
> You received this message because you are subscribed to the Google
> Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
> Web Services,.NET Remoting" group.
> To post to this group, send email to dotnetde...@googlegroups.com
> To unsubscribe from this group, send email to
> dotnetdevelopm...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
> or visit the group website at http://megasolutions.net
>
--
Sent from my mobile device
Jay
--