你们都喜欢把代码写得那么复杂和臃肿吗?
我向来写代码 都是怎么简化怎么来,,,,
- @Echo off
- Echo.输入你要查看的文件格式如 @notepad.exe,-470 或 @shell32.dll,-12708
- Set/p d=..........................:
- if "%d%"=="" Set d=@notepad.exe,-470
- Title "%d% FileDescription 字段"
- Echo.你输入的是..........:%d%
- Echo.对应的字符串是:
- Powershell -c "Add-Type 'using System;using System.Runtime.InteropServices;using System.Text;public class ISH{[DllImport(\"shlwapi.dll\",CharSet=CharSet.Unicode)]static extern int SHLoadIndirectString(string s,StringBuilder o,uint c,IntPtr p);public static string R(string s){var b=new StringBuilder(1024);SHLoadIndirectString(s,b,1024,IntPtr.Zero);return b.ToString();}}';[ISH]::R('%d%')"
- Pause>Nul & Exit
复制代码
我改写的AI代码,,
核心命令一行过,,,,
现在问题还是卡在,,,
如何优化,枚举 程序文件里所有的字符串呢??????
,,,
,,,,
,,,,,
都出来讨论讨论呗,,,,
还是希望有大神写个小程序,直接获取所有字符串,,,,,,? |