Yahoo 知識+ 將於 2021 年 5 月 4 日 (美國東岸時間) 停止服務,而 Yahoo 知識+ 網站現已轉為僅限瀏覽模式。其他 Yahoo 資產或服務,或你的 Yahoo 帳戶將不會有任何變更。你可以在此服務中心網頁進一步了解 Yahoo 知識+ 停止服務的事宜,以及了解如何下載你的資料。
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 個解答
- WhatsThatLv 41 十年前最愛解答
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 年前
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