Skip to main content

All Questions

Tagged with
1 vote
1 answer
470 views

Powershell shortcut to list all files and folders (including hidden files) and order them by date

I'm basically looking for something like ls -alt, but in Powershell (Windows 11). Currently I'm using gci -fo | sort LastWriteTime -Descending but it's a bit of a doozy, and definitely not easy to ...
DeltaIV's user avatar
  • 437
1 vote
2 answers
486 views

Powershell equivalent of "dir /a"?

Running dir /a on a given directory on one of our servers produces a list of unexpected files that look like malware: C:\Users\<username>dir /a c:\Users\Public\Downloads\ Volume in drive C has ...
kindzmarauli's user avatar
-1 votes
2 answers
670 views

How to print contents of a directory and save it NOT in the directory?

I have a folder which freezes the whole system when I open it (probably there is a corrupted file). Luckily, I'm just interested in the names of the files in the folder. So, how do I create a dirlist....
RichardTheCoder's user avatar
1 vote
2 answers
279 views

Powershell: Dir /s - Remove Repeated Folders

Situation: In Powershell, I'm using: $folders = dir -s C:\Users\Name\Downloads\*.ttf | Select Directory foreach ($folder in $folders) { echo $folder } To display folders whose contents contain ...
Synthetic Ascension's user avatar
0 votes
1 answer
4k views

Is there a Window's Command Line Option to Show the Sizes of Directories

When I do a dir command it, gives this information: 02/11/2015 01:39 PM <DIR> bar 11/11/2014 07:22 AM <DIR> buz 02/12/2015 01:35 PM 140,660,736 foo.sdf 01/...
Jonathan Mee's user avatar
-1 votes
2 answers
624 views

Find folders called SS, return size of folder

I am able to find all folders called "SS" (superseded) in a hierarchy and list out the location of each one. I have been using this code to pipe out the list. DIR /AD /B "SS" /S > SS_Folder_List.txt ...
RobN's user avatar
  • 1,692
2 votes
2 answers
2k views

How can I use powershell to list all files I uploaded to server?

At work there's a network and everyone has a username and password that they use to log in. How can I search for my files on this network? I could list all the files like this: cd \\192.168.*.***\...
elisha's user avatar
  • 21