r/visualbasic • u/Googlesgoogle • Jan 02 '26
Help with opening vbs files

I feel like I'm losing my mind but I should be able to just create a vbs file by putting the code into notepad and saving as .vbs right? Its been a while since I've done it so maybe I'm missing a step but it doesn't seem to be working for me. I have "Show file types" enabled and the file does show ".vbs" at the end of it but still has the Notepad icon. I have VBSscript enabled also. This is a new PC so I think maybe something just isn't installed or enabled yet but I cant figure out what
Update: turns out it’s not just my machine that’s having this problem. I’m thinking it’s something in our environment that is blocking vbs scripts
View all comments
Show parent comment
1
u/Mayayana Jan 02 '26
Maybe. But will it work next time? Will it reset the Registry settings or only open with wscript one time? And do people know to select wscript? Anyone who knows enough to run scripts should know how file associations work in the Registry. It can come in handy.