将记事本文件另存为 .vbs [英] Saving notepad file as a .vbs

查看:34
本文介绍了将记事本文件另存为 .vbs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我试图将记事本中的一些代码保存为 .vbs 文件,但由于某种原因,记事本一直将其作为 .txt 文件保存到我的桌面,因此我无法运行该程序.

So I'm trying to save some code in notepad as a .vbs file but for some reason notepad keeps saving it to my desktop as a .txt, so I can't run the program.

我已经尝试了各种保存方法,保存时将它放在括号中,给它不同的名称,完全删除并重做代码,但它不会保存 .vbs 可执行文件.

I've tried every way of saving it, putting it in brackets when saving, giving it different names, completely deleting and redoing the code but it just won't save a .vbs executable.

不确定我是否遗漏了一些简单的东西,它以前有用过,我没有做任何不同的事情.

Not sure if I've missed something simple, it had worked before and i'm not doing anything different.

推荐答案

保存文件时在下拉列表另存为类型"中选择所有文件(.)"

When you save the file in the drop down list "Save As Type" select "All Files (.)"

然后在文件名"中确保您的文件名以 .vbs 扩展名结尾.

Then in the "File name" make sure your file name ends with a .vbs extension.

如果一切都失败了,您还可以在 Windows 资源管理器中启用文件扩展名并手动编辑文件夹中的文件名.

If all else fails, you can also enable file extensions in windows explorer and manually edit the filename within the folder.

这篇关于将记事本文件另存为 .vbs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆