Вы находитесь на странице: 1из 6

Get to see hidden files from a command prompt Dear All

Lets's assume you are a user running a fat16 or fat32 formatted hard drive, and have a boot floppy that will read the drive.

You are in a real bind, cannot connect the hard drive into another machine, and would like to make all hidden files visible to simple commands and you have to do this in real mode from the DOS command prompt.

ATTRIB is the tool you could use.

C: cd\ attrib *.* -h /s /d (oh yes, that will run for a while... but the time lost by losing data would surely be worse. Quite often you find that some sorts of data is not ever reproducable...)

I am not a geeky command prompt guru, yet, I will mention that one could start like this. set dircmd = /s /w /o /p /a:h (works in all DOS and windows versions)

with /a:h DIR will show hidden files. If your result of a search for *.dbx with DIR shows there are such files in many folders, what often is the case... then one will use attrib on that entire drive. I would, because missing a folder would probably have me make mistakes when I get to copy data.

I MOST definately prefer using XCOPY over COPY.

What when you want to copy a file? At the prompt, copy of a correctly typed (name.ext) file will work even when the file is hidden, whereas copy *.* (star dotstar) would skip hidden files if attrib had not set it unhidden.

However, XCOPY, with the correct options, will copy just about anything you want.

Attrib will take a long time running the entire hard disk, and with files telling you where they are at, you can run attrib for the folders you want, and its subfolders. example attrib "C:\documents and settings" -h /s /d attrib "C:\documents and settings"\*.* -h -s /s /d would do all files and subfolders and the files in subfolders the -s removes system tag the -h removes hidden tag

(note that at the prompt, when you specify a folder with a long name or a long name with spaces in it, like "documents and settings", you use "quotation marks"

I thought I should try explain about this, because some windows users may boot from a floppy, and might not have XCOPY available. Hmmm... you have booted from floppy... C: dir xcop*.* /s (in windows 98 you find xcopy.exe and xcopy32.mod) A:

copy C:\windows\command\xcop*.* (that is where they normally are in windows 98) and now you have it on the floppy too, so you can use it...

here's an example of how one can use XCOPY... from the command prompt xcopy C:\*.dbx /e /h /i /c D:\save001 now, there are other files in the folders where *.dbx files are in... and you want the entire folder. so, let me show another example xcopy "C:\documents and settings"\*.* /e /h /i /c D:\save001

in XP, things are different. try this, in XP, from cmd prompt dir /? you see a list of the options, and with /Q, you'll see the users the files types you searched for belong to. Now, if the filename don't tell you whose file it was, that would... so, I would set the DIR command to behave like this for the session at the prompt. set dircmd = /Q /s /w /o /p /a:h

and what do you see when you do xcopy /? there you see an option /G I am really curious about that one now... I saw that it mentions encryption. It is high time I get me XP for dummies... it might explain this. Oh, I realised I just repeated that old tip. a command followed by /? will tell you at least something of what it can do.

And while I talk about the prompt, I really hate the limitations in that XP prompt... I know I hated the XP command prompt and its copy functions when I ran the prompt from recovery console... I start to hate this even more... one is in a mess, and may not be able to do something as simple like copy and xcopy between drives.

At least, if windows is not totally bollixed, one can run commands in a window in safe mode.

I once got to work on a computer where checksum errors caused a failure to boot to safe mode too and I had to transfer files putting its hard disk in another machine because the recovery console was of no help in this. I did a few swaps and copy, each time to see different files wih checksum error preventing windows to load... and finally, after a few more files were copied it booted, but many functions still didn't work at all. (sfc failed from the safe mode command prompt... The only tool I could work from was task manager... Could not run help from the start menu, nor could I use RUN dialog... it was THAT bad... The windows CDROM didn't let me do an upgrade... ) And yes, system repair utility was of no help.

Charlie White's solution could have worked, maybe, as I did see old snapshots while it was in my machine... but I didn't go for it I had found nasties when I scanned that drive... and I did not want to have them majestically reappear after spending far too much time on this... It would have been an interesting experiment, but the important data was already saved, and a fresh legal copy of windows replaced the blackflag copy this one ran.

Mehire Share Reply With Quote Advertisements

+ Reply to Thread Previous Thread | Next Thread Bookmarks Digg del.icio.us StumbleUpon Google Posting Permissions You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Trackbacks are On Pingbacks are On Refbacks are On Forum Rules

Your Ad Here

Contact Us Noeman GSM Archive Privacy Statement Top All times are GMT. The time now is 12:15 PM. Powered by vBulletin

Copyright 2011 vBulletin Solutions, Inc. All rights reserved. SEO by vBSEO 3.6.0 Copyright 2004-2011 Noeman . All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205

Вам также может понравиться