It is currently Mon Dec 09, 2024 7:23 pm

All times are UTC - 8 hours [ DST ]


Forum rules


Please, keep discussions on topic and in the right forum. The start menu topics go into the Classic Start Menu forum, etc. This makes it easier for people to locate topics they are looking for.
If you get a satisfactory response to your question, please mark the topic as "solved". Click the green √ button in the bottom-right of the post.



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Nov 23, 2022 4:01 am 
Offline

Joined: Wed Dec 16, 2015 6:03 pm
Posts: 2
This works fine on my remaining Windows 7 computers, but fails in Windows 10 and Server 2019.
Is there a security setting I can change that will fix it?


1. Make sure c:\scripts is in PATH
2. Create a vbs script "arch.vbs" and put it in c:\scripts.
3. Also create a batch file called "archivethis.bat" in c:\scripts.
4. Click the Classic Start button and in the Search box, type "arch".

In Windows 7, the arch.vbs shows up and pressing Enter runs it.

In Windows 10 and 2019, the archivethis.bat shows up and pressing Enter runs that instead.

I know a workaround is to put a shortcut in the Start menu. Then it works fine. But I am trying to use my arch.vbs script on dozens of computers and virtual machines. I don't want to put a shortcut to it in the Start menus.

I understand that vbs is dangerous. So I tried making a .lnk pointing to the .vbs - no luck there either.

I created a file called 'arch.bat' containing "arch.vbs %*" and so far it works, though it pops up an annoying cmd window first. I assume I could work around that by changing arch.lnk to point to arch.bat and start minimized.

Is there a way to tell the Search box to trust a vbs lnk like it does on my Windows 7s?

Thank you!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.