hi,

Is there any way that one can access the contents in a usb pen drive via command prompt on Windows XP? Any commands for that? I have my usb 2 gb pen drive named F and hard drive as C. Please reply and thanks..

Dani AI

Generated

Short answer: yes — a USB pen drive mounted by Windows behaves like any other drive and can be used from the command prompt. pointed in the right direction; here are a few useful command-line actions (assuming the stick is mounted as F:):

F:
tree /f | more            # recursive listing with filenames
attrib -s -h /s          # show/remove system+hidden attributes on files
type README.txt          # view a small text file
xcopy F:\*.* C:\Backup\ /s /e   # copy everything (recursive) to C:\Backup

(tree shows directory trees; xcopy is handy for recursive copies). (learn.microsoft.com)

If the USB drive does not appear as a letter, check Disk Management (diskmgmt.msc) to see whether the volume is present but missing a letter; assign one if needed. If the device is absent or the driver is confused, open Device Manager and force a re-detect (Action → Scan for hardware changes) or uninstall/reinstall the mass‑storage device so Windows can re-enumerate it. (learn.microsoft.com)

About the eject question from : using the Safely Remove/Eject function tells Windows to unmount/stop the device so it is no longer accessible — in most cases the simplest fix is to unplug and replug the stick. Advanced alternatives are to restart the USB device/programmatically re‑start it (for example with Microsoft’s DevCon utility) or use a third‑party tool that supports a “replug” action; note that toggling root‑hub or controller drivers will momentarily disconnect other USB devices, and changing a drive’s policy to “Quick removal” removes the frequent need to use Eject (at the cost of disabling write caching). (learn.microsoft.com)

Mentions: , , , .

Recommended Answers

All 3 Replies

um, yeah, go to command prompt and do

cd f:\
dir

will list the contents of the pendrive, you can then do whatever

hi this is yuva.. i have one doubt after give eject in pendrive option. Is their possible to get pendrive without removing my pendrive..

Vahi
i dont think so:
Because you already eject that so that this will be ignore then also you can try it so...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.