Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mysterios hidden files
#21
My knowledge of DOS syntax is limited, but I might help a little bit.

DIR \thumbs.db /A-D /B /-C /-D /-N /ON /-P /-Q /-W /S /-X > \thumbs.txt

Just a modification of Z!re's. The difference is that it starts from the root directory, not the current one (which could be 'C:\PROGRA~1\QBASIC~1.5', aka the directory containing QB 4.5). It places a text file listing the same exact information as Z!re described in the root directory.

Edit: Now that I think about it, mine is better than Z!re's because it lists the switches in alphabetical order. :-P
974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
Reply
#22
About the hidden file problem..

You could use DIR to get a DIR list only, then enter each directory until there's no more, back up, enter nex etc..

In each directory you call ATTRIB, which lists all files.. Look up it's parameters, it's possible you might be able to make it report only hidden files..
Reply
#23
Thanks guys, your works perfect run from a BAT file, mine underneath misses one I put in root. Trouble is yours does not work in a SHELL under QuickBasic.

Gordon

Code:
CD \
DIR \thumbs.db /A-D /B /-C /-D /-N /ON /-P /-Q /-W /S /-X > \thumbs.txt
CD \
DIR \thumbs.db /a:h /a:-h /a:s /a:-s /s  > \ZZZZ.$$$
PAUSE
END
Reply
#24
That's odd. The "\" before "thumbs.db" should do it. . . Meh.

Glad to hear you got it working. :-)
974277320612072617420666C61696C21 (Hexadecimal for those who don't know)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)