tagged [directory]

C# How to know if a given path represents a root drive?

C# How to know if a given path represents a root drive? How can I know if a given directory is a root drive? (aside from checking if its path equals to "A:", "B:", "C:", etc.)

18 Feb at 23:14

Find the current directory and file's directory

Find the current directory and file's directory How do I determine: 1. the current directory (where I was in the shell when I ran the Python script), and 2. where the Python file I am executing is?

21 Nov at 14:25

how to list all sub directories in a directory

how to list all sub directories in a directory I'm working on a project and I need to list all sub directories in a directory for example how could I list all the sub directories in c:\

4 Sep at 01:58

Enumerate Windows network shares and all custom permissions on or within

Enumerate Windows network shares and all custom permissions on or within We have various servers that have many directories shared. It's easy enough to look at the share browser to see what the "top l...

Best way to iterate folders and subfolders

Best way to iterate folders and subfolders What's the best way to iterate folders and subfolders to get file size, total number of files, and total size of folder in each folder starting at a specifie...

21 May at 09:35

How to delete empty folders using windows command prompt?

How to delete empty folders using windows command prompt? I need to delete all empty folders from my application folder using windows command prompt? How can I create a bat file like that? Please help...

Azure AD v2 roles not included in Access Token

Azure AD v2 roles not included in Access Token I'm using [https://login.microsoftonline.com/.../oauth2/v2.0/token](https://login.microsoftonline.com/.../oauth2/v2.0/token) to authenticate (authorizati...

How to create a directory in Java?

How to create a directory in Java? How do I create Directory/folder? Once I have tested `System.getProperty("user.home");` I have to create a directory (directory name "new folder" ) if and only if ne...

28 Dec at 11:51

What does "opt" mean (as in the "opt" directory)? Is it an abbreviation?

What does "opt" mean (as in the "opt" directory)? Is it an abbreviation? What does "opt" mean (as in the "opt" directory)? I commonly see this directory in Unix systems with development tools inside. ...

26 Nov at 10:19

Get application directory using C# Console Application?

Get application directory using C# Console Application? I found something on google but it not working on C# Console Application What I found: How I can get application directory using c# Console Appl...

13 Oct at 16:4

How to programmatically move, copy and delete files and directories on SD?

How to programmatically move, copy and delete files and directories on SD? I want to programmatically move, copy and delete files and directories on SD card. I've done a Google search but couldn't fin...

10 Dec at 11:26

What are CN, OU, DC in an LDAP search?

What are CN, OU, DC in an LDAP search? I have a search query in LDAP like this. What exactly does this query mean?

21 Feb at 12:8

How to create Azure AD user programmatically?

How to create Azure AD user programmatically? I understand there is azure portal to manage groups, user and etc. Are there any ways to do it programmatically (either using web-api or sdk in C#)? Thank...

26 Jun at 09:35

How can you test if an AD password will meet configured complexity requirements?

How can you test if an AD password will meet configured complexity requirements? In a net 3.5 csharp application I need to know in advance if an AD password will meet configured complexity requirement...

25 Sep at 01:32

How to see if a directory exists or not in Perl?

How to see if a directory exists or not in Perl? To see if a file exists before using it, we can use: But how to indentify a directory exists or not?

20 Dec at 04:49

Revoke shared folders in windows

Revoke shared folders in windows Over the last few months/years, I have shared a folder or two with numerous people on my domain. How do I easily revoke those shares to keep access to my system nice a...

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

How can I list the contents of a .zip folder in c#?

How can I list the contents of a .zip folder in c#? How can I list the contents of a zipped folder in C#? For example how to know how many items are contained within a zipped folder, and what is their...

25 Jan at 22:2

How to delete a folder in C++?

How to delete a folder in C++? How can I delete a folder using C++? If no cross-platform way exists, then how to do it for the most-popular OSes - Windows, Linux, Mac, iOS, Android? Would a POSIX solu...

22 Dec at 14:12

Calculating a directory's size using Python?

Calculating a directory's size using Python? Before I re-invent this particular wheel, has anybody got a nice routine for calculating the size of a directory using Python? It would be very nice if the...

1 Feb at 00:51

Exclude certain file extensions when getting files from a directory

Exclude certain file extensions when getting files from a directory How to certain file type when getting files from a directory? I tried But it seems that this function can only choose the file types...

19 May at 12:48

Getting a list of all subdirectories in the current directory

Getting a list of all subdirectories in the current directory Is there a way to return a list of all the subdirectories in the current directory in Python? I know you can do this with files, but I nee...

16 Jun at 21:45

Tree view of a directory/folder in Windows?

Tree view of a directory/folder in Windows? In Linux/KDE, I can see a directory as a tree. How can I do it in Windows 7? Consider I do NOT mean "Windows Explorer". This just shows the directories, I a...

Directory vs DirectoryInfo

Directory vs DirectoryInfo Are they equivalent or alternatives to each other? Is any of them deprecated and if so, which one? Which one is recommended for use in an ASP.NET web application? My aim is ...

17 Dec at 00:9

What are the different properties available in System.DirectoryServices.DirectorySearcher.PropertiesToLoad

What are the different properties available in System.DirectoryServices.DirectorySearcher.PropertiesToLoad Everything I've googled just says you can add them as a string array, but doesn't say what th...