小编Ray*_*vyn的帖子

在数组中查找变量 - 批处理

我想通过批处理文件创建基于 Windows 用户名的快捷方式

我在想:

if %username% in (a,b,c,d) (
    shortcut ShortcutName DestinationPath
)
else (
    shortcut OtherShortcutName OtherDestinationPath
)
Run Code Online (Sandbox Code Playgroud)

我在第一部分遇到问题,因为我已经知道如何通过命令行创建快捷方式...

希望我能找到一些帮助。

windows dos batch-file

1
推荐指数
1
解决办法
6966
查看次数

标签 统计

batch-file ×1

dos ×1

windows ×1