THESE FORUMS NOW CLOSED (read only)

  • 25 Apr 2024, 10:55
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: help me with windows shit  (Read 4053 times)

heretic

  • Guest
help me with windows shit
« on: 05 Aug 2005, 09:23 »

i wanna get a list of just file names from a folder, so i can take it and apply it to an excel document.

i can't for the life of me figure out how to do this though, and you guys seemed where to turn.
i know i'll be kicking myself for not thinking of it, but your help would be greatly appreciated
Logged

5thWheel

  • Guest
help me with windows shit
« Reply #1 on: 05 Aug 2005, 09:41 »

bring up a dos prompt (Choose Start, Programs (All Programs in XP), Accessories, Command Prompt to open such a window) and do
dir /b
in the folder you want a listing from.

(you use
cd C:\Documents and Settings\Administrator
or whatever folder you want instead of "C:\Documents and Settings\Administrator" to change to to change the current dos folder - but you probably know this!)

you can do
dir /b >foo.txt
to put the directory listing into a file if you want

dir /? for other things that dir can do (like 8.3 filenames)

Hope I understood what you were asking and apologies if you already knew/ have tried this
Logged

jhocking

  • Methuselah's mentor
  • *****
  • Offline Offline
  • Posts: 5,267
  • Corruption City USA
    • new|Arteest
help me with windows shit
« Reply #2 on: 05 Aug 2005, 09:41 »

When you say "wanna get a list," what do you mean?  Do you mean you want the onscreen display to be a list of filenames, or that you want the file list written to a text file or something?

heretic

  • Guest
help me with windows shit
« Reply #3 on: 05 Aug 2005, 09:47 »

text file, please
Logged

5thWheel

  • Guest
help me with windows shit
« Reply #4 on: 05 Aug 2005, 09:50 »

what i said then
(edit: oops, unless you want to get the list from within excel, i.e., using VB or something?)
Logged

nihilist

  • Guest
help me with windows shit
« Reply #5 on: 07 Aug 2005, 10:01 »

So many ways of doing that.  All depends on the level of technical prowess present, and the elegance desired.
Logged
Pages: [1]   Go Up