tagged [directory]

How to filter files when using scp to copy dir recursively?

How to filter files when using scp to copy dir recursively? I need to copy all the .class files from server to local with all dir reserved. e.g. `server:/usr/some/unknown/number/of/sub/folders/me.clas...

4 Aug at 16:15

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

Create Active Directory user in .NET (C#)

Create Active Directory user in .NET (C#) I need to create a new user in Active Directory. I have found several examples like the following: ``` using System; using System.DirectoryServices; namespace...

19 Aug at 09:31

Active Directory (LDAP) - Check account locked out / Password expired

Active Directory (LDAP) - Check account locked out / Password expired Currently I authenticate users against some AD using the following code: ``` DirectoryEntry entry = new DirectoryEntry(_path, user...

8 Sep at 13:25

How can you find a user in active directory from C#?

How can you find a user in active directory from C#? I'm trying to figure out how to search AD from C# similarly to how "Find Users, Contacts, and Groups" works in the Active Directory Users and Compu...

8 Sep at 23:37

python: Change the scripts working directory to the script's own directory

python: Change the scripts working directory to the script's own directory I run a python shell from crontab every minute: `/home/udi/foo` has some necessary subdirectories, like `/home/udi/foo/log` a...

16 Sep at 13:41

List all computers in active directory

List all computers in active directory Im wondering how to get a list of all computers / machines / pc from active directory? (Trying to make this page a search engine bait, will reply myself. If some...

22 Oct at 07:36

Error 0x80005000 and DirectoryServices

Error 0x80005000 and DirectoryServices I'm trying to run a simple LDAP query using directory services in .Net. ``` DirectoryEntry directoryEntry = new DirectoryEntry("LDAP://someserver.contoso.com/DC=...

Get names of all files from a folder with Ruby

Get names of all files from a folder with Ruby I want to get all file names from a folder using Ruby.

18 Nov at 12:33

Authorize an entire security group to perform an Action in ASP.Net MVC

Authorize an entire security group to perform an Action in ASP.Net MVC I'd like to authorize users to perform specific actions within my controllers. I've found the [ASP.NET tutorial](http://www.asp.n...

How to check whether 2 DirectoryInfo objects are pointing to the same directory?

How to check whether 2 DirectoryInfo objects are pointing to the same directory? I have 2 `DirectoryInfo` objects and want to check if they are pointing to the same directory. Besides comparing their ...

25 Nov at 01:0

C#: How to open Windows Explorer windows with a number of files selected

C#: How to open Windows Explorer windows with a number of files selected In the Library of Windows Media Player you can select one or more music files. You can then right-click and in their context me...

6 Dec at 11:1

Public Active directory for testing

Public Active directory for testing I need to write some .NET code for listing user and groups. I am planing to use LINQ. I do not have access to the Active directory for testing. I do not have a serv...

9 Dec at 15:15

How can I find out which server hosts LDAP on my windows domain?

How can I find out which server hosts LDAP on my windows domain? I am trying develop an application (C#) to query an LDAP server. I don't know the actual server named to query - is there a way to find...

18 Dec at 21:9

Get Groups From OU using DirectoryServices.AccountManagement

Get Groups From OU using DirectoryServices.AccountManagement I'd like to use AccountManagement to list all the groups in an Organizational Unit. The following snippet works with DirectoryServices but ...

Minimizing disk accesses when getting attributes of files in a directory

Minimizing disk accesses when getting attributes of files in a directory As the title suggests, I'm looking for a way to get attributes of a large number of files in a directory, but without adding th...

21 Dec at 19:29

Registering change notification with Active Directory using C#

Registering change notification with Active Directory using C# This link [http://msdn.microsoft.com/en-us/library/aa772153(VS.85).aspx](http://msdn.microsoft.com/en-us/library/aa772153(VS.85).aspx) sa...

5 Jan at 05:5

How to determine if user account is enabled or disabled

How to determine if user account is enabled or disabled I am throwing together a quick C# win forms app to help resolve a repetitive clerical job. I have performed a search in AD for all user accounts...

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...

Path.Combine and the dot notation

Path.Combine and the dot notation I'm looking for something akin to `Path.Combine` method that will help me correctly combine absolute and relative paths. For example, I want to yield `c:\alpha\gamma`...

27 Jan at 18:20

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

C# deleting a folder that has long paths

C# deleting a folder that has long paths I'm trying to delete a folder and the delete is failing due to the folder containing long paths. I presume I need to use something else instead of dir.Delete(t...

8 Feb at 16:50

Directory.CreateDirectory Latency Issue?

Directory.CreateDirectory Latency Issue? I'm trying to create a remote directory, and then write a file to it. Every great once in a while, the application fails with a System.IO.DirectoryNotFoundExce...

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

Creating Active Directory user with password in C#

Creating Active Directory user with password in C# I'm looking for a way to create Active Directory users and set their password, preferably without giving my application/service Domain Admin privileg...

21 Feb at 12:34