Windows 10: Minimize Window bat or VBS

Discus and support Minimize Window bat or VBS in Windows 10 Support to solve the problem; I'm currently using the following below using a VBS and have had success with it minimizing folders and programs, but I can't get it to minimize web... Discussion in 'Windows 10 Support' started by zeke33, May 30, 2020.

  1. zeke33 Win User

    Minimize Window bat or VBS


    I'm currently using the following below using a VBS and have had success with it minimizing folders and programs, but I can't get it to minimize web browsers like Brave or Vivaldi.

    Set oShell = CreateObject("WScript.Shell")
    oShell.SendKeys "% n"

    Is there any chance of something like a .bat file or something else that can be added to the above? I'm using recommended software Quick Cliq 2.1.1 to open it for quicker access. Appreciate it!

    Version 18363

    :)
     
    zeke33, May 30, 2020
    #1
  2. ZeusABJ Win User

    How do I get Cortana Search to work with CMD/BAT/VBS/PS1 files?

    This is utterly infuriating to me. For some odd reason (I can only assume its security related) *none* of my scripts ever show up in Cortana searches. In build 1511 of Windows 10 I was able to work around this by creating a link in my task-bar with the following
    Target settings:

    %SYSTEMROOT%\system32\rundll32.exe -sta {C90FB8CA-3295-4462-A721-2935E83694BA}

    This older search (that would slide out as a pane from the right hand side when invoked and appeared to be left over from Windows 8) would list my script files when I searched on them by name. However it now seems this feature was removed in the 1607 build
    of Windows 10. The crazy thing is I can go into the Indexing Options in Control Panel and see plain as day that indexing is enabled for CMD/BAT/VBS/PS1 files but they flat refuse to show up in any searches. This is crazy annoying to me as I have a number of
    scripts that I use throughout the day that I like to call on quickly to automate repetitive tasks.

    Does anyone know of a way to make Cortana Search actually list CMD/BAT/VBS/PS1 files in search results?
     
    ZeusABJ, May 30, 2020
    #2
  3. VBS Msgbox

    Denis,

    • I was too lazy to compute the size programmatically. And, it the 2005 version the message box always came up hidden, so I always used 0 for the top. It's also part of my OCD to be able to control everything.
    • I personally don't need it to timeout. I used this in vbs files to ask to continue to the next step, skip the next step or cancel the vbs. BTW, I added the code back in but keep it assign it to 0.
    • Sound was calling Windows Media Player: WshShell.Run "C:\Users\donast\desktop\sndrec32.lnk",7,false the lnk is a shortcut on my old desktop that had: "C:\Program Files (x86)\Windows Media Player\wmplayer.exe"
      "C:\Users\Public\Music\Wavefiles\Twilight.wav"
    • Yes. The value is the number of the button in the order specified when calling it.
    • Never really thought about it as all my VBS/VBA code is relatively simple and I add comments in the file as necessary to remind me what is going on. I don't usually have anyone to share my code.
    FYI I use a VBS to call it. Here's a line from a test vbs I use to run your version:

    choice=Wshshell.run("custommsgbox.vbs " & wscript.scriptname & " ""CopyFiles.vbs done. Continue with UnArchVista.vbs?"" ""White"" ""Black"" 40 ""Yes"" ""No"" ""Cancel""",1,true)

    Copy it to a text editor to see all the spaces, etc. Took me a while back the to figure it out.

    Don
     
    DRARetired, May 30, 2020
    #3
  4. Avedis53 Win User

    Minimize Window bat or VBS

    Can't get GPU-Z to start with Windows 8.1 startup

    I'm not sure how to do that. Could you list the steps for a noob?
     
    Avedis53, May 30, 2020
    #4
Thema:

Minimize Window bat or VBS

Loading...
  1. Minimize Window bat or VBS - Similar Threads - Minimize Window bat

  2. Windows cannot access specific file types jpg/bat/vbs

    in Windows 10 Gaming
    Windows cannot access specific file types jpg/bat/vbs: Hi... would appreciate any help here:After performing a rollback to a recent restore point, I am unable to open or edit certain file types jpegs, bat or vbs files, but I can copy or delete them. I also can't open Paint, Paint3D, or screen grab tools there is no error, but...
  3. Windows cannot access specific file types jpg/bat/vbs

    in Windows 10 Software and Apps
    Windows cannot access specific file types jpg/bat/vbs: Hi... would appreciate any help here:After performing a rollback to a recent restore point, I am unable to open or edit certain file types jpegs, bat or vbs files, but I can copy or delete them. I also can't open Paint, Paint3D, or screen grab tools there is no error, but...
  4. VBS script malware

    in Windows 10 Gaming
    VBS script malware: I have accidentally downloaded malware onto my computer. It is trying to run RuneGoTOMjbvdo.vbs which i deleted. I get a warning that Windows Script host cannot find the file. I have run Malwarebytes, and frst64. I have also added and enable key to the registry to disable...
  5. How to run multiple Windows .bat in one master .bat?

    in Windows 10 Software and Apps
    How to run multiple Windows .bat in one master .bat?: Hello All,I would sure appreciate some assistance with this. I have 20 individual batch files that I run routinely, which spin off sequentially numbered copies of a template into different folders. Rather than running through all 20 .bat files, double clicking each, how can I...
  6. bat“”“”

    in Windows 10 Network and Sharing
    bat“”“”: [ATTACH] WIN10pro https://answers.microsoft.com/en-us/windows/forum/all/bat%E5%8F%B3%E9%94%AE%E6%B2%A1%E6%9C%89%E6%89%93/d78679c5-483a-4fb9-89ac-7b578ca1f76f
  7. Double-clicking .bat, .vbs, .reg do NOT work.

    in Windows 10 Support
    Double-clicking .bat, .vbs, .reg do NOT work.: This morning double-clicking .bat, .vbs, .reg etc do NOT work, although double-clicking all programs [ .exe and shortcuts ] do. I thought I would see if there is a quick fix for this. I have reset the default permissions etc etc. I don't want to spend too much time on this as...
  8. VBS

    in Windows 10 Network and Sharing
    VBS: How do you make a vbs file open a file? https://answers.microsoft.com/en-us/windows/forum/all/vbs/9897f943-4d77-46e7-aeae-2e27d00f7937
  9. Vbs Error

    in Windows 10 Network and Sharing
    Vbs Error: I am getting an error "Microsoft VBScript runtime error '800a000d'" when trying to access a link on a trusted website https://answers.microsoft.com/en-us/windows/forum/all/vbs-error/6a6b54ea-f2c5-4106-9635-8b9d1a617f1f
  10. Windows .bat File

    in Windows 10 Network and Sharing
    Windows .bat File: I have a .bat file on a pc that is supposed to get and send a file to and from a server. This .bat file is working properly when I run it on the pc but will not when trying to run it through a 3rd party software. there have been no errors, the .bat file will start to run but...