dir /B >files.txt
-
From Windows Explorer. Open the folder you which to copy your list of files from. Select all the files you want included. Hold down Shift and right click. Select Copy as path. I don't remember where I found this, but it will copy the list of files and their path to the clipboard. Once pasted into a text editor, or whatever, you will see something like this. "C:\Users\\Pictures\File1.gif" "C:\Users\\Pictures\File2.jpg" "C:\Users\\Pictures\File3.png" "C:\Users\\Pictures\File4.jpg" "C:\Users\\Pictures\File5.jpg" Note, this is not recursive. It will not dig into sub-folders. It will only copy the path of visible and selected files/folders. I also do not know if it will work with Windows 10.
"...JavaScript could teach Dyson how to suck." -- Nagy Vilmos
Z.C.M. wrote:
I also do not know if it will work with Windows 10.
Works for me. :thumbsup:
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Vark111 wrote:
10. Email fax digital photo to recipient
FTFY!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
-
Seriously? In the world of self driving cars, AI stock brokers, and a fake White House, to get a listing of files in a folder I have to open a console window and do that? Marc
Latest Article - Merkle Trees Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
I believe the problem is that you should be using MS Excel for this type of stuff. I'm pretty sure the Excel Database handles this properly. It will also allow you to turn the output into a web page which is perfect for emailing to your friends. :laugh:
-
I believe the problem is that you should be using MS Excel for this type of stuff. I'm pretty sure the Excel Database handles this properly. It will also allow you to turn the output into a web page which is perfect for emailing to your friends. :laugh:
raddevus wrote:
I believe the problem is that you should be using MS Excel for this type of stuff.
So, Lotus Notes isn't recommended? ;) Marc
Latest Article - Merkle Trees Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
"Use the right to for the right job." I use the command-line all day.
PIEBALDconsult wrote:
I use the command-line all day.
The CTO where I used to work would love you. ;) Marc
Latest Article - Merkle Trees Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
a.) Open your Directory in Windows Explorer b.) In the adress bar type e.g.
dir | c:\windows\system32\clip
or instead of dir, also tree or what else. This will pipe the Output to clipboard :) And in case sys32 is in the path it becomes also a little bit shorter command ;) Bruno [Edit] The basics for this I learned here at CP. What I remember is, it was also in the Lounge when somebody described that one can Launch cmd directly by the adress bar in the Windows Explorer. :-O [Edit 1] Finally I found the source: https://www.codeproject.com/Lounge.aspx?fid=1159&select=5367179&fr=5076#xx0xx posted by [virang_21 - Professional Profile](https://www.codeproject.com/script/Membership/View.aspx?mid=6555380)
0x01AA wrote:
it was also in the Lounge when somebody described that one can Launch cmd directly by the adress bar in the Windows Explorer.
Yes, I remember that and have started using it quite a bit! I think I missed the post on the "clip" thing though. Thanks for reposting! Marc
Latest Article - Merkle Trees Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
-
That doesn't seem to work from the Explorer address bar in Windows 10. It just opens the default browser and searches for "dir | c:\windows\system32\clip" - and to make matters worse, it searches with Bing! :doh: I guess I should be grateful that they're honouring my default browser, even if they're going to ignore my default search engine.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
For me it opened chrome.
John
-
That doesn't seem to work from the Explorer address bar in Windows 10. It just opens the default browser and searches for "dir | c:\windows\system32\clip" - and to make matters worse, it searches with Bing! :doh: I guess I should be grateful that they're honouring my default browser, even if they're going to ignore my default search engine.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
-
Using that you can't see what is listed. You have to use
dir /b >files.txt & type files.txt
instead :)
dir /b | more
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles
-
Seriously? In the world of self driving cars, AI stock brokers, and a fake White House, to get a listing of files in a folder I have to open a console window and do that? Marc
Latest Article - Merkle Trees Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802
0. Select some or all files 1. Shift+Right-click on one of the selected files 2. Select Copy as Path 3, Paste the list wherever you want it
I wanna be a eunuchs developer! Pass me a bread knife!