Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Batch file automatically ejecting a flash drive?
I have a nice little batch file set up to copy files, but I want it to be able to eject itself for fast transfer. Is there a way to do this using batch files?
I have also tried opening explorer.exe, but I cannot open the "Computer" area. Is there a specific way to access that area?
once again, thanks in advance
sorry, need this done by tomorrow..
wait, was that just spam?
2 Answers
- WhatsThatLv 41 decade agoFavorite Answer
There are a couple of links here, where you can find that utility.
Just a word, they are freeware and shareware.
Download at your own risk.
- 5 years ago
echo off setlocal enabledelayedexpansion :FIND.BACKUP.DRIVE.LETTER set start.dir=%systemdrive% J: %cls% if not "%cd:~0,2%"=="%start.dir%" goto next I: %cls% if not "%cd:~0,2%"=="%start.dir%" goto next H: %cls% if not "%cd:~0,2%"=="%start.dir%" goto next if "%cd:~0,2%"=="%start.dir%" ( echo WAITING FOR FLASH MEDIUM TO BE CONNECTED . . . if exist "%windir%\system32\timeout.exe" timeout /t 1 /nobreak >nul if not exist "%windir%\system32\timeout.exe" pause goto FIND.FLASH.DRIVE.LETTER ) :next set start.hour=%time:~0,2% set start.min=%time:~3,2% REM FLASH.DRIVE IS THE FLASH DRIVE. set flash.drive=%cd:~0,2% if exist "%flash.drive%\pro\log.txt" move "%flash.drive%\pro\log.txt" "%userprofile%\desktop\*.*" if not exist %flash.drive% set /a total.time=((((%time:~0,2%-%start.hour%)... && echo Flash Drive has been in for !total.time! minutes. && Pause>nul