gpt4 book ai didi

javascript - 使用 WSH 脚本获取临时文件夹

转载 作者:行者123 更新时间:2023-11-28 02:42:17 26 4
gpt4 key购买 nike

如何使用 WSH 脚本获取临时文件夹路径?

最佳答案

将此脚本另存为 tempFolder.js 并双击执行。

var WshShell = WScript.CreateObject("WScript.Shell");
var temp = WshShell.ExpandEnvironmentStrings("%TEMP%");
WScript.Echo(temp);

关于javascript - 使用 WSH 脚本获取临时文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12488503/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com