tagged [directory]

Server.MapPath("."), Server.MapPath("~"), Server.MapPath(@"\"), Server.MapPath("/"). What is the difference?

Server.MapPath("."), Server.MapPath("~"), Server.MapPath(@"\"), Server.MapPath("/"). What is the difference? Can anyone explain the difference between `Server.MapPath(".")`, `Server.MapPath("~")`, `Se...

Moving up one directory in Python

Moving up one directory in Python Is there a simple way to move up one directory in python using a single line of code? Something similar to `cd ..` in command line

26 Jul at 15:37

LdapConnection Vs DirectoryEntry

LdapConnection Vs DirectoryEntry Can anybody explain the difference between using LdapConnection/SearchRequest and DirectoryEntry/DirectorySearcher for Searching users in ActiveDirectory. Which one is...

7 Oct at 10:33

How do you get a directory listing in C?

How do you get a directory listing in C? How do you scan a directory for folders and files in C? It needs to be cross-platform.

How to change MySQL data directory?

How to change MySQL data directory? Is it possible to change my default MySQL data directory to another path? Will I be able to access the databases from the old location?

17 Sep at 16:15

Querying Windows Active Directory server using ldapsearch from command line

Querying Windows Active Directory server using ldapsearch from command line Can anyone let me know if querying Active Directory server using ldapsearch, ldapadd, ldapdelete, etc. utilities is possible...

5 Sep at 14:17

Validate a username and password against Active Directory?

Validate a username and password against Active Directory? How can I validate a username and password against Active Directory? I simply want to check if a username and password are correct.

5 Nov at 16:42

Using C#, how do you check if a computer account is disabled in active directory?

Using C#, how do you check if a computer account is disabled in active directory? How do you check if a computer account is disabled in Active Directory using C#/.NET

2 May at 21:1

How do I find files that do not contain a given string pattern?

How do I find files that do not contain a given string pattern? How do I find out the in the current directory which do contain the word `foo` (using `grep`)?

7 Mar at 13:18

How do I recursively delete a directory and its entire contents (files + sub dirs) in PHP?

How do I recursively delete a directory and its entire contents (files + sub dirs) in PHP? How do I delete a directory and its entire contents (files and subdirectories) in PHP?

23 Aug at 21:45

What is the difference between Directory.EnumerateFiles vs Directory.GetFiles?

What is the difference between Directory.EnumerateFiles vs Directory.GetFiles? What is the difference between `Directory.EnumerateFiles` vs `GetFiles`? Obviously one returns an array and the other ret...

4 Feb at 11:46

Alternative to FolderBrowserDialog

Alternative to FolderBrowserDialog Is there an alternative for selecting folders in C#? Optimally I'd like to use the OpenFileDialog to select folders, or at least something similar to that.

Get name of virtual directory?

Get name of virtual directory? I'm using Request.ApplicationPath to learn the name of the Virtual Directory in which I'm running. Is there a more reliable way?

30 Jan at 18:43

cd into directory without having permission

cd into directory without having permission When `cd`ing into one of my directories called `openfire` the following error is returned: Is there any way around this?

3 Dec at 23:51

Getting the .NET Framework directory path

Getting the .NET Framework directory path How can I obtain the .NET Framework directory path inside my C# application? The folder that I refer is "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727"

24 Apr at 21:29

LDAP - Retrieve a list of all attributes/values?

LDAP - Retrieve a list of all attributes/values? Is it possible to retrieve a list of all attributes/values from LDAP without specifying, if so how can this be possible?

Adding and removing users from Active Directory groups in .NET

Adding and removing users from Active Directory groups in .NET I am writing the following methods to add and remove users from active directory in C#. How best to implement these methods? Here is some...

JAVA_HOME directory in Linux

JAVA_HOME directory in Linux Is there any linux command I could use to find out `JAVA_HOME` directory? I've tried print out the environment variables ("env") but I can't find the directory.

22 Nov at 17:21

Deleting all files from a folder using PHP?

Deleting all files from a folder using PHP? For example I had a folder called `Temp' and I wanted to delete or flush all files from this folder using PHP. Could I do this?

9 Aug at 22:9

How to get the path to the Windows fonts folder?

How to get the path to the Windows fonts folder? I'm using C# to get the exact path of the system's fonts folder. Couldn't find which class/dll does it.

5 Oct at 03:8

Browse for a directory in C#

Browse for a directory in C# How can I present a control to the user that allows him/her to select a directory? There doesn't seem to be any native .net controls which do this?

23 Oct at 10:52

How to list text files in the selected directory in a listbox?

How to list text files in the selected directory in a listbox? How can I list the text files in a certain directory (C:\Users\Ece\Documents\Testings) in a listbox of a WinForm(Windows application)?

14 Aug at 10:47

PrincipalContext & UserPrincipal how to know when password expires?

PrincipalContext & UserPrincipal how to know when password expires? I have a `UserPrincipal` object with a lot of properties, but I cannot find a property for the date that the password expires. How c...

30 Nov at 21:46

Retrieve the Active Directory groups of the current user

Retrieve the Active Directory groups of the current user How can I get the Active Directory groups the current user belongs to? Is there a way to do this using the `DirectoryServices.AccountManagement...

19 Aug at 19:59

How can I Compress a directory with .NET?

How can I Compress a directory with .NET? I have a directory that contains several files. I want compress this folder to a zip or tar.gz file. How can I do his work in C#?

10 Feb at 10:33