Saving notepad file as a .vbs

点点圈 提交于 2019-12-04 07:05:52

问题


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.

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.


回答1:


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

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

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




回答2:


You use quotes not brackets. You have file extensions hidden hence this behaviour.



来源:https://stackoverflow.com/questions/31657715/saving-notepad-file-as-a-vbs

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!