1

我有一個Seagate Backup Plus Drive和一個FreeAgent GoFlex Drive。當我插入它們時,它們在(E :)和(F :)之間交替。我需要編寫一個可以在任何計算機或任何驅動器號上訪問的腳本。外部存儲/可移動磁盤的環境變量?

我使用Win7x64,我不認爲LD_LIBRARY_PATH是這裏的答案...

有誰知道如何鏈接到它?

+0

嘗試使用'DriveGet'的驅動器標籤:http://ahkscript.org/docs/commands/DriveGet.htm – 2015-02-24 06:37:06

回答

0

使用DriveGet,例如獲得可移動驅動器的列表:

; put drive letters of removable drives into variable 'drives' 
DriveGet, drives, list, REMOVABLE 
Loop, Parse, drives ; loop through each character (drive letter) in drives 
{ 
    DriveGet, labelName, label, %A_LoopField%: ; get the drive label 
    MsgBox Drive %A_LoopField%, Label=%labelName% 
}