[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
  1. @echo off
  2. set /p scfile=
  3. set scfile=%scfile:\=\\%
  4. set scfile=%scfile:"=%
  5. for /f "tokens=2 delims==" %%i in ('wmic path win32_shortcutfile where "name='%scfile%'" get target /value') do (
  6. echo,"%%~dpi"
  7. md "%%~dpi123"
  8. )
  9. pause
复制代码

TOP

回复 18# jack2023


    双击执行,拖动快捷方式到窗口,回车。
1

评分人数

    • jack2023: 拖入可以用,谢谢,能改成套娃式,可以自己 ...技术 + 1

TOP

  1. @echo off
  2. set "scfile=QQ"
  3. for %%i in ("%USERPROFILE%\Desktop\") do set "scp=%%~pi"
  4. if exist %USERPROFILE%\Desktop\*%scfile%*.lnk (
  5. set "scp=%scp:\=\\%"
  6. ) else if exist %PUBLIC%\Desktop\*%scfile%*.lnk (
  7. set "scp=\\users\\public\\desktop\\"
  8. ) else (echo,%scfile% is nonexistent&pause&exit)
  9. set "scfile=%%%scfile%%%"
  10. for /f "tokens=2 delims==" %%i in ('wmic path win32_shortcutfile where "Path='%scp%' and extension='LNK' and FileName like '%scfile%'" get target /value') do (
  11. echo,"%%~dpi"
  12. md "%%~dpi123"
  13. )
  14. pause
复制代码
1

评分人数

TOP

返回列表