topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday August 26, 2025, 6:09 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - vanchimp [ switch to compact view ]

Pages: [1]
1
Drag&Drop Robot / Re: Getting folders only
« on: August 19, 2024, 01:49 AM »
To get only folders (directories) within a specific location on your computer, you can use various methods depending on the operating system you're using. Here's how you can do it on different platforms:

1. Windows (Command Prompt or PowerShell):
Using Command Prompt:
Open Command Prompt (cmd).
Navigate to the directory where you want to list only folders by using the cd command.
Run the following command to list only directories:
cmd
Copy code
dir /AD
The /AD switch lists only directories (folders).
Using PowerShell:
Open PowerShell.
Navigate to the desired directory using cd.
Run the following command:
powershell
Copy code
Get-ChildItem -Directory
This command lists all directories in the current location.
2. macOS and Linux (Terminal):
Using Terminal:
Open Terminal.

Navigate to the directory where you want to list only folders using the cd command.

Run the following command:

bash
Copy code
ls -d */
The -d option prevents ls from listing the contents of directories, and */ matches only directories.
Alternatively, you can use:

bash
Copy code
find . -maxdepth 1 -type d
This command lists all directories within the current directory. The -maxdepth 1 option limits the search to the current directory level.

Pages: [1]