Trying to add a Bat file to the start menu.


  1. Posts : 3
    windows 10
       #1

    Trying to add a Bat file to the start menu.


    Hi there.

    I created the file google.bat with the following content:

    start "" "http://www.google.com"

    What I want to do is add this file to the start menu.
    The objective is to be able to execute it with Cortana by saying "hey Cortana, open google".

    If I add the file into C:\Users\**User**\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools
    it doesn't show on the start menu.

    At one point I added a folder (and it did show on the start menu) into c:\program data\Microsoft\windows\start menu\programs
    but when I restarted the computer it disappeared.

    Any ideas?
      My Computer


  2. Posts : 68,917
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Beactive, and welcome to Ten Forums. :)

    You might see if using a shortcut created using OPTION THREE with that URL may work for this instead. You'll be able to "Pin to Start" this shortcut.

    Internet Website Shortcut - Create - Windows 7 Help Forums
      My Computers


  3. Posts : 3
    windows 10
    Thread Starter
       #3

    Hi Brink,

    I did try to pin a shortcut to the start menu. Cortana didn't recognize it as an app. So the "hey Cortana open..." didn't work.

    Also, in theory, if I can make a file to behave like an app in a way that Cortana recognizes it, there are many possibilities to use Cortana for other things too.
      My Computer


  4. Posts : 3
    windows 10
    Thread Starter
       #4

    Anyone?
    Thanks
      My Computer


  5. Posts : 1
    win 10
       #5

    solved but you need to focus


    You want to add a website and open it with cortana so here are the steps:
    1. Create a
    New folder (anywhere) then create a New Text Document and open it.
    2. Write (@echo off) then press enter and write (start "" "the URL")
    3. On the top press file then save as then rename the file as you want to call it followed by (.bat) then save.
    4. Create a shortcut of the bat file you just created and delete the test file.
    5. (optional) you can change the icon of the bat file by right click,properties,change icon and also remove the (-shortcut).
    6. Put the shortcut in (C:\Users\**User**\AppData\Roaming\Microsoft\Windows\Start Menu\Programs) & leave the bat file.
    7. Wait a while or restart with update until cortana recognize the file.
    8. Hey cortana then tell her open (the shortcut name ) and you are done
    .

    NOTES:
    1. You can get website icons by opening website and in google chrome press on top right,more tools,add to desktop then open (
    C:\Users\username\AppData\Local\Google\Chrome\User Data\Default\Web Applications) here you will find the website icon in one of the folders.
    2. Just be sure that you modify the shortcut in the same folder with the bat file or it wont work.
    3. Don't delete the original bat file you can hide it anywhere or make it hidden from properties.
    4. Delete the added desktop website form the web site and from (C:\Users\**User**\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Chrome Apps) or it will confuse cortana.
    5. I know also a way to open folders by voice if you want to know just ask.
    6. I expect to see one thanks as i registered and responded and *sorry for any bad English if there is! i am an Egyptian*.
      My Computer


  6. Posts : 4,143
    Windows 3.1 to Windows 11
       #6

    6. I expect to see one thanks as i registered and responded and *sorry for any bad English if there is! i am an Egyptian*.
    We are all members here - we offer help as a mutual benefit - for ourselves and others...
    No Thanks Ever Required... But always welcome..
      My Computer


  7. Posts : 17,838
    Windows 10
       #7

    Why not just set the desired website as a 'homepage', then say "Hey Cortana, open Chrome" (or whatever browser you're using as default)

    Trying to add a Bat file to the start menu.-000159.png
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:50.
Find Us




Windows 10 Forums