r/visualbasic • • 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

2 Upvotes

12 comments sorted by

View all comments

Show parent comment

1

u/Googlesgoogle Jan 02 '26

This fixed it. It was set to vbs_auto_file in the registry. Changing it to VBSFile did the trick. Still not sure how it got changed for multiple machines in my environment

1

u/Mayayana Jan 02 '26

I only found one reference to "vbs_auto_file" when searching. It seems to be something that some kind of software does to disable VBS. It could be intrusive AV software, an admin setup script, etc. Or maybe you did it yourself with a tweaking program.