简体   繁体   English

外部存储/可移动磁盘的环境变量?

[英]Environment Variable for external storage/removable disks?

I have a Seagate Backup Plus Drive, and a FreeAgent GoFlex Drive. 我有一个Seagate Backup Plus驱动器和一个FreeAgent GoFlex驱动器。 When I plug them in, they alternate between (E:) and (F:). 当我插入它们时,它们在(E :)和(F :)之间交替显示。 I need to write a script that can be accessed on any computer, or any drive letter. 我需要编写一个可以在任何计算机或任何驱动器号上访问的脚本。

I'm using Win7x64, I don't think LD_LIBRARY_PATH is the answer here... 我正在使用Win7x64,我不认为LD_LIBRARY_PATH是这里的答案...

Does anyone know how to link to it? 有人知道如何链接吗?

Use DriveGet , for example to get a list of removable drives: 例如,使用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%
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM