Reply
Old June 8th, 2006 Top | #1
 
GCNPlayer5's Avatar
OSNN Junior Addict
Joined: January 2006
Posts: 5
Reputation: 0
Power: 78

Default Safely Remove a Pin Drive

I was woundering if anyone could help me write a bat script for Windows 2000 that would safely remove my pin drive at a click of an icon?

Any help would be wounderful
GCNPlayer5 is offline   Reply With Quote
Old June 8th, 2006 Top | #2

OSNN Folding Team  
kcnychief's Avatar
█▄█ ▀█▄ █
Joined: April 2005
Location: Massachusetts
Posts: 16,949
Reputation: 4941
Power: 305

Default Re: Safely Remove a Pin Drive

Might be a dumb question, but what is a "pin drive"? Are you referring to the "safely remove a USB device" icon in the taskbar?

XBOX Live Gamertag: kcnychief
kcnychief is offline   Reply With Quote
Old June 8th, 2006 Top | #3
 
GCNPlayer5's Avatar
OSNN Junior Addict
Joined: January 2006
Posts: 5
Reputation: 0
Power: 78

Default Re: Safely Remove a Pin Drive

Originally Posted by kcnychief View Post
Might be a dumb question, but what is a "pin drive"? Are you referring to the "safely remove a USB device" icon in the taskbar?
yes

http://www.compusa.com/products/prod...970&pfp=BROWSE

i want to click a button to safely remove that
GCNPlayer5 is offline   Reply With Quote
Old June 8th, 2006 Top | #4
 
ming's Avatar
OSNN Advanced
Joined: June 2003
Location: UK
Posts: 4,252
Reputation: 1160
Power: 162

Default

Originally Posted by kcnychief View Post
Might be a dumb question, but what is a "pin drive"? Are you referring to the "safely remove a USB device" icon in the taskbar?
same thought.

normally, I just yank the usb device out of the port...

posts merged

Curent system:
Intel Quad Core 9450 | 4GB RAM | WD Raptor 36GB | nVidia 8800GT 512mb
ming is offline   Reply With Quote
Old June 8th, 2006 Top | #5
 
GCNPlayer5's Avatar
OSNN Junior Addict
Joined: January 2006
Posts: 5
Reputation: 0
Power: 78

Default Re: Safely Remove a Pin Drive

Originally Posted by ming View Post
same thought.

normally, I just yank the usb device out of the port...

posts merged
that doesnt work to well in Win 2k sometimes it never writes the data untill you Safely remove the device. I don't understand it but it is Win 2k
GCNPlayer5 is offline   Reply With Quote
Old June 8th, 2006 Top | #6

OSNN Folding Team  
VenomXt's Avatar
Blame me for the RAZR's
Joined: March 2004
Location: Houston, Texas
Posts: 3,442
Reputation: 1240
Power: 146

Default Re: Safely Remove a Pin Drive

Originally Posted by GCNPlayer5 View Post
that doesnt work to well in Win 2k sometimes it never writes the data untill you Safely remove the device. I don't understand it but it is Win 2k
the sad thing is, he is right. win2k is very bad about not putting the files on the drive if you just pull it out even after the transfer.
VenomXt is offline   Reply With Quote
Old June 8th, 2006 Top | #7
 
GCNPlayer5's Avatar
OSNN Junior Addict
Joined: January 2006
Posts: 5
Reputation: 0
Power: 78

Default Re: Safely Remove a Pin Drive

so anyone know how to write a script that will safely remove it for me?
GCNPlayer5 is offline   Reply With Quote
Old June 9th, 2006 Top | #8

OSNN Folding Team  
xsivforce's Avatar
Prodigal Son
Joined: February 2002
Location: Texas, USA
Posts: 8,542
Reputation: 1410
Power: 225

Default Re: Safely Remove a Pin Drive

I don't remember if 2k has it but when I remove a drive like that in xp, I right click the drive in explorer and click "eject".
xsivforce is offline   Reply With Quote
Old June 9th, 2006 Top | #9
 
GCNPlayer5's Avatar
OSNN Junior Addict
Joined: January 2006
Posts: 5
Reputation: 0
Power: 78

Default Re: Safely Remove a Pin Drive

Originally Posted by xsivforce View Post
I don't remember if 2k has it but when I remove a drive like that in xp, I right click the drive in explorer and click "eject".
ok i want a SCRIPT to do it. In 2k3 you have to right click on it and the go unplug, then it wants to know what port the device is, and then it wants to make sure it has the correct device so it does it asks again.

I am a help desk Tech. I am to much in a hurry trying to get away from the person that i am helping.
GCNPlayer5 is offline   Reply With Quote
Old June 9th, 2006 Top | #10
 
X-Istence's Avatar
*
Joined: December 2001
Location: USA
Posts: 6,496
Reputation: 2808
Power: 220

Default Re: Safely Remove a Pin Drive

Easiest thing is to set the drive write protected, which can be done on most drives by sliding something, which means you can just yank it out.
X-Istence is offline   Reply With Quote
Old June 9th, 2006 Top | #11
 
LeeJend's Avatar
OSNN Veteran Addict
Joined: January 2003
Location: Fort Worth, TX
Posts: 5,261
Reputation: 3386
Power: 199

Default Re: Safely Remove a Pin Drive

The drives don't have write protect switches anymore. None of my three do.

Someone has to have fast hack for this. Even XP makes me go through 3 menu's to remove a thumb drive.

Thought for the new millenium:

In a world without walls and fences, who needs Windows and Gates?

- Open Office - Firefox - Thunderbird - Gimp -Ubuntu - Red Hat -
LeeJend is offline   Reply With Quote
Old July 7th, 2008 Top | #12
 
gh057's Avatar
w3lc0m3 t0 7h3 r3al w0r1d
Joined: August 2006
Location: nyc
Posts: 62
Reputation: 0
Power: 71

Default Re: Safely Remove a Pin Drive

Hello ,

I have a similar problem in XP . I dont see the Safely Remove Hardware button on the Taskbar , so I tried to unhide it using the Taskbar properties but they are grayed out , also when I try to remove them using the MyComputer > Properties > Hardware > Device Manager and try to get the Safely Remove Wizard Its also grayed out.

Another option I have tried is to right click on the USB Flash Drive and Click Eject but I get the following error " windows cannot safely remove the hardware , a process is using it." Funny thing about this is that this happens even if i just plug in the usb drive and try to remove it without copying or deleting anything .

Any ideas ? Maybe bad Flash drive ?

Thanks
gh057

Life is a game of chess , make your move wisely.
gh057 is offline   Reply With Quote
Old July 8th, 2008 Top | #13
 
roirraW "edor" ehT's Avatar
Builder/Installer
Joined: May 2008
Posts: 529
Reputation: 742
Power: 62

Default Re: Safely Remove a Pin Drive

Originally Posted by LeeJend View Post
The drives don't have write protect switches anymore. None of my three do.

Someone has to have fast hack for this. Even XP makes me go through 3 menu's to remove a thumb drive.
Okay, this is weird. I've never had that experience (having to go through 3 menus to remove a thumb or any other removable drive).

You can right click and select your device from a more complicated menu but you can also left click instead then select the drive from the pop-up menu.

I don't remember if Windows 2000 has all these options, but in XP and Vista for thumb drives there's an option in the Device Mangager for "Optimize for quick removal" and "Optimize for performance".

Basically if you have your thumb drive plugged in, then go to the device menu, expand the lists of Disk Drives and double-click on your thumb drive listed there. Then select the Policies tab and there's the two options. In theory if you choose "Optimize for quick removal" then you don't have to use the Safely Remove Hardware notifcation icon. Like I said, in theory so don't blame me.

Other drives (hard drives, et cetera) might have other performance options you may be interested in as well. Different Windows installations combined with different hardware and drivers will produce different defaults as to what options are selected already. Even on my machines without battery backup, I always choose the highest performing mode.

Gigabyte full tower GZ-FA2CA-AJB
Gigabyte motherboard MA790X-UD4P
HIS Radeon HD 4850 512MB
AMD Athlon 64 X2 4400+ 2.3GHz
Corsair TWIN2X4096-6400C4DHX 4-4-4-12
4x1TB SATA RAID 0+1/2x640GB SATA RAID 0/Misc. PATA
Windows 7 x86
roirraW "edor" ehT is offline   Reply With Quote
Old July 9th, 2008 Top | #14
 
gh057's Avatar
w3lc0m3 t0 7h3 r3al w0r1d
Joined: August 2006
Location: nyc
Posts: 62
Reputation: 0
Power: 71

Default Re: Safely Remove a Pin Drive

Thats the problem the policies are grayed out , I cant modify them ... I think has to do w/ my companies rights issue :-(.

Life is a game of chess , make your move wisely.
gh057 is offline   Reply With Quote
Old July 9th, 2008 Top | #15
 
roirraW "edor" ehT's Avatar
Builder/Installer
Joined: May 2008
Posts: 529
Reputation: 742
Power: 62

Default Re: Safely Remove a Pin Drive

Not necessarily. Some drivers for some chipsets don't let you change the settings.

My old workhorse's VIA 8237-based SATA RAID doesn't let me change it under XP either (grayed out).

My newer AMD/ATI-based SATA RAID does let me change it under Vista.

It depends on the chipset and the drivers. I know this happens even with old IDE without RAID too.

Gigabyte full tower GZ-FA2CA-AJB
Gigabyte motherboard MA790X-UD4P
HIS Radeon HD 4850 512MB
AMD Athlon 64 X2 4400+ 2.3GHz
Corsair TWIN2X4096-6400C4DHX 4-4-4-12
4x1TB SATA RAID 0+1/2x640GB SATA RAID 0/Misc. PATA
Windows 7 x86
roirraW "edor" ehT is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Safely Remove Hardware Bman Windows Desktop Systems 14 September 6th, 2006 10:01pm
Safely remove device shortcut? illmaticone Windows Desktop Systems 1 June 4th, 2006 10:30pm
Safely Remove Hardware item removal ElementalDragon Windows Desktop Systems 30 January 26th, 2006 5:48pm
Safely Remove Hardware Tray icon stuy_b Desktop Customisation 5 September 21st, 2002 4:17am
safely remove hardware eraser1234 General Hardware 3 May 28th, 2002 3:26pm