tagged [directory]
Built-in helper to parse User.Identity.Name into Domain\Username
Built-in helper to parse User.Identity.Name into Domain\Username Is there any built-in utility or helper to parse `HttpContext.Current.User.Identity.Name`, e.g. `domain\user` to get separately domain ...
- Modified
- 18 Dec at 22:47
How to get a path to the desktop for current user in C#?
How to get a path to the desktop for current user in C#? How do I get a path to the desktop for current user in C#? The only thing I could find was the VB.NET-only class [SpecialDirectories](http://ms...
- Modified
- 12 Aug at 12:56
Java: How can I compile an entire directory structure of code ?
Java: How can I compile an entire directory structure of code ? The use case is simple. I got the source files that were created using Eclipse. So, there is a deep directory structure, where any Java ...
- Modified
- 26 May at 21:29
List all files in one directory PHP
List all files in one directory PHP What would be the best way to list all the files in one directory with PHP? Is there a $_SERVER function to do this? I would like to list all the files in the usern...
Getting the filenames of all files in a folder
Getting the filenames of all files in a folder I need to create a list with all names of the files in a folder. For example, if I have: I want to store them in a `ArrayList` with `[000,012,013]` as va...
Properties.Settings.Default.Save(); -> Where is that file
Properties.Settings.Default.Save(); -> Where is that file I have app that uses Settings. To save settings I use: To read tham I use: In my folder with application I have only exe file. No config files...
- Modified
- 26 Apr at 10:54
How to get files in a relative path in C#
How to get files in a relative path in C# If I have an executable called app.exe which is what I am coding in C#, how would I get files from a folder loaded in the same directory as the app.exe, using...
How can I safely create a directory (possibly including intermediate directories)?
How can I safely create a directory (possibly including intermediate directories)? I am writing a file using Python, and I want it to be placed in a specific path. How can I safely make sure that the ...
- Modified
- 25 Jan at 18:34
How to get Active Directory Attributes not represented by the UserPrincipal class
How to get Active Directory Attributes not represented by the UserPrincipal class What I mean is that right now I am using System.DirectoryServices.AccountManagement and if I use UserPrincipal class I...
- Modified
- 14 Oct at 05:12
How can I get a list of users from active directory?
How can I get a list of users from active directory? How can I get a list of users from active directory? Is there a way to pull username, firstname, lastname? I saw a similar post where this was used...
- Modified
- 31 Dec at 16:3
Retrieving files from directory that contains large amount of files
Retrieving files from directory that contains large amount of files I have directory that contains nearly 14,000,000 audio samples in *.wav format. All plain storage, no subdirectories. I want to loop...
How to get the current directory in a C program?
How to get the current directory in a C program? I'm making a C program where I need to get the directory that the program is started from. This program is written for UNIX computers. I've been lookin...
- Modified
- 28 Nov at 13:28
DotNetZip add files without creating folders
DotNetZip add files without creating folders Each time I add a file, it's creating a new subfolder for it. So I want to end up with: but I'm ending
How do I get the AD Display Name of the currently logged in user
How do I get the AD Display Name of the currently logged in user Consider the following properties as set up in Active Directory for a user: ![enter image description here](https://i.stack.imgur.com/P...
- Modified
- 14 Jul at 11:57
List directory tree structure in python?
List directory tree structure in python? I know that we can use `os.walk()` to list all sub-directories or all files in a directory. However, I would like to list the full directory tree content: ``` ...
- Modified
- 2 Jul at 00:55
Easy way to test an LDAP User's Credentials
Easy way to test an LDAP User's Credentials Is there an easy way to test the credentials of a user against an LDAP instance? I know how to write a Java program that would take the 'User DN' and passwo...
Getting the absolute path of the executable, using C#?
Getting the absolute path of the executable, using C#? Have a look at this pseudocode: If I build the above program and place the executable in `C:/meow/`, It would print out `This executable is locat...
- Modified
- 10 Jun at 02:34
Delete files older than 3 months old in a directory using .NET
Delete files older than 3 months old in a directory using .NET I would like to know (using C#) how I can delete files in a certain directory older than 3 months, but I guess the date period could be f...
Move all files in subfolders to another folder
Move all files in subfolders to another folder My source path is `C:\Music\` in which I have hundreds of folders called Album-1, Album-2 etc. What I want to do is create a folder called `Consolidated`...
Given full path, check if path is subdirectory of some other path, or otherwise
Given full path, check if path is subdirectory of some other path, or otherwise I have 2 strings - dir1 and dir2, and I need to check if one is sub-directory for other. I tried to go with Contains met...
Is CreateDirectory() in C# thread-safe?
Is CreateDirectory() in C# thread-safe? Can I safely attempt to create the directory from two different threads, without having one of them throw an exception, or run into other issues? Note that acco...
- Modified
- 5 Mar at 19:33
User/Group Permissions in Active Directory
User/Group Permissions in Active Directory Where can I find an example that does the following? 1. Pulls a user from Active Directory. 2. Gets the groups the user is a member of. 3. Gets a list of per...
- Modified
- 27 Jul at 21:49
Second path fragment must not be a drive or UNC name - Create Subdirectory Error
Second path fragment must not be a drive or UNC name - Create Subdirectory Error I have an exception in the third line ofthis code "Second path fragment must not be a drive or UNC name" ``` DirectoryI...
- Modified
- 23 Apr at 02:7
Change directory in Node.js command prompt
Change directory in Node.js command prompt I want to move to another directory in Node.js command prompt but when I open the Node.js cmd window it doesn't show me any path. Here is the screenshot of t...
How to impersonate AD user in web service?
How to impersonate AD user in web service? I want my web service (using servicestack, if that matters) to be able to authenticate against the AD, and then switch identity to that user. I see quite a f...
- Modified
- 8 Apr at 17:52