windows快捷方式中的重定向

windows快捷方式中的重定向,windows,shortcut,netsh,lnk,Windows,Shortcut,Netsh,Lnk,我有一个如下所示的批处理文件: netsh interface dump > net.cfg 我想从快捷方式运行实际命令,所以我尝试了所有这些(在.lnk快捷方式中): 似乎什么都没用。。。我做错了什么?试试这个: %windir%\System32\cmd.exe /k netsh interface dump > net.cfg 来源:你的报价非常接近 %windir%\system32\cmd.exe /c "netsh interface dump > net.cf

我有一个如下所示的批处理文件:

netsh interface dump > net.cfg
我想从快捷方式运行实际命令,所以我尝试了所有这些(在
.lnk
快捷方式中):

似乎什么都没用。。。我做错了什么?

试试这个:

%windir%\System32\cmd.exe /k netsh interface dump > net.cfg

来源:

你的报价非常接近

%windir%\system32\cmd.exe /c "netsh interface dump > net.cfg"
%windir%\system32\cmd.exe /c "netsh interface dump > net.cfg"