接触过网络,慢动作更新

分享一个WINDOWS下 RCLONE 挂载网盘的脚本

rclone : https://rclone.org/downloads/
winfsp : http://www.secfs.net/winfsp/download/
Rclone GUI : https://github.com/mmozeiko/RcloneBrowser
保存为 RECLONE.VBS 运行
Option Explicit
Dim WMIService, Process, Processes, Flag, WS
Set WMIService = GetObject("winmgmts:{impersonationlevel=impersonate}!\\.\root\cimv2")
Set Processes = WMIService.ExecQuery("select * from win32_process")
Flag = true
for each Process in Processes
    if strcomp(Process.name, "rclone.exe") = 0 then
        Flag = false
        exit for
    end if
next
Set WMIService = nothing
if Flag then
    Set WS = Wscript.CreateObject("Wscript.Shell")
    WS.Run "rclone mount GDrive:/ x: --cache-dir F:\Temp --vfs-cache-mode writes", 0
end if
赞(0)
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!

 

2023年了,好好学习,好好生活

油箱Blog@126.gd