Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个从多台远程计算机复制文件的 .vbs 脚本。每台服务器都有一个共享文件夹,我将其映射为网络驱动器 (W:)。当我通过双击运行它时,它运行良好,但如果我从任务计划程序(Win Server 2003)运行它,它会挂在这一行:
NetworkObject.MapNetworkDrive "W:", "\xxx.xxx.xxx.xxx\sharename", false, [用户名], [密码]
我已经尝试了一切,但我不知道为什么它不能在任务调度程序中运行。请帮忙!
您是否尝试像这样运行它:
C:\Windows\system32\cscript.exe yourscript.vbs