用于从文本文件创建网站快捷方式的 PowerShell 脚本
我正在尝试创建一个 PowerShell 脚本,以从桌面上的文本文件在桌面上创建网站快捷方式。文本文本文件包含 URL 和网站名称。
I'm trying to create a PowerShell script to create website shortcuts on the desktop from a text file located on the desktop. Text text file has the URL and website names.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我制作了一个有点灵活的脚本。以下脚本显示了如何使用它的一些示例。最后一个示例显示了它如何处理 URL 和名称位于同一行的文本文件。在大多数情况下,这已经可以生成至少一些链接。可以自定义脚本以适合您的文本文件,但您必须显示示例。
将在当前文件夹中生成以下测试文件,以更好地了解我的脚本的作用:
我将为其创建一个文件的另一个链接。URL
I made a script that is a bit flexible. The following script shows some examples of how to use it. The last example shows how it works with a text file with URLs and names in the same line. That would already work in most cases to get at least some links generated. The script may be customized to fit your text file, but you must show examples.
The following test files will be generated in the current folder to better understand what my script does:
another link that I will make a file for.URL