Windows 10: Help with the creation of a (to me) complicated bat file

Discus and support Help with the creation of a (to me) complicated bat file in Windows 10 Gaming to solve the problem; Hi people! I have a pretty complicated (to me) task to accomplish. I have a notebook with Windows 10 64 bit turned into a media-retrogaming living... Discussion in 'Windows 10 Gaming' started by Brand, May 20, 2020.

  1. Brand Win User

    Help with the creation of a (to me) complicated bat file


    Hi people! I have a pretty complicated (to me) task to accomplish.

    I have a notebook with Windows 10 64 bit turned into a media-retrogaming living room PC.

    I use both emulators, old pc games and Steam games. I use two Playstation 3 controllers, connected with a bluetooth dongle and managed by the mighty ScpToolkit in order to emulate an Xbox360 controller. Why? Because I'm using both emulators and Steam games. Steam games only work with an Xbox360 controller and I didn't want to buy a new pair.

    Ok, let's move on. ScpToolkit needs a service to run properly but I don't want it to start everytime I start the pc, simply because I only need it when I play some games. And it makes the bluetooth dongle bling like a Christmas tree.

    So, I have created a bat file to instantly launch the Ds3Service by writing: sc start "Ds3Service". It works like a charm, but I have to run it as an administrator and click the UAC prompt. First world problems.

    Now here comes the real deal. I would like to create a bat file that launches firtst "Ds3Service_Start.cmd" as administrator (or the process itself withouth having to create a reserved cmd), with no UAC prompt, NO cmd window visible and with the capability of turning the cmd off after it ran. Than after the process is running and the cmd closed, the bat file should start Emulationstation.exe.

    I have already done some homework and I followed this guide to created an eleveted program shortcut. What I cannot do, even after reading the comment below, is to make the whole thing completely silent and to let it close itself.

    Here's what I get after running the shortcut created following the guide:

    C:\Windows\system32>sc start "Ds3Service"

    NOME_SERVIZIO: Ds3Service
    TIPO : 10 WIN32_OWN_PROCESS
    STATO : 2 START_PENDING
    (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
    CODICE_USCITA_WIN32 : 0 (0x0)
    CODICE_USCITA_SERVIZIO : 0 (0x0)
    PUNTO_CONTROLLO : 0x0
    INDICAZIONE_ATTESA : 0x0
    PID : 4028
    FLAG :

    C:\Windows\system32>

    and the cmd window stays there. I have tried to create a bat file with this inside:

    @Echo off
    Start /MIN "" C:\Windows\System32\schtasks.exe /run /tn "Ds3Service_Start"
    exit

    With no luck. It correctly and instantly starts the process with no UAC prompt, but that window doesn't go away.

    Eternal glory to the super kind man who will be able to help me Help with the creation of a (to me) complicated bat file :)

    :)
     
    Brand, May 20, 2020
    #1

  2. Help with a .bat file.

    I have this .bat file that I've been messing around with:


    Help with the creation of a (to me) complicated bat file [​IMG]


    I got it to open the Windows Update interface:


    Help with the creation of a (to me) complicated bat file [​IMG]


    However, I need the .bat file to go a step further and auto click the Check for updates button circled in orange.

    Can someone help me to finish editing the .bat file so that when I click the .bat file, the process of manually checking for Windows Updates becomes fully automated?
     
    EyeInTheSky, May 20, 2020
    #2
  3. Updating .bat File, Removing Default Apps

    Hi SightUp.

    Don't have a bat file but step 4 in Option 2 will give you complete list and you can mod yours.

    Uninstall Apps in Windows 10


    Ken
     
    Caledon Ken, May 20, 2020
    #3
  4. Lucasonas Win User

    Help with the creation of a (to me) complicated bat file

    BAT file/Script to find and replace files

    FordGT90Concept!!!

    Your attachment is very close, it kept all the 5 numerals intact, but like you said: "it will rename them all from "#_Example_720p.zip" to "RAT_Example_#_24f_ONO.zip"...

    Greetings, Streetfighter 2

    I can't seem to get the BAT to work, but I'll still keep on trying.


    Any other suggestions, or BAT scripts Streetfighter & FordGT90Concept?
     
    Lucasonas, May 20, 2020
    #4
Thema:

Help with the creation of a (to me) complicated bat file

Loading...
  1. Help with the creation of a (to me) complicated bat file - Similar Threads - Help creation complicated

  2. Need some Help with CMD and .bat files

    in Windows 10 Ask Insider
    Need some Help with CMD and .bat files: I have .bat file thats in a folder in my desktop (location). When i open the bat file i need it to run in the folder that's it's located (in the folder thats on my desktop) However, when i run the bat file it runs at the default location. So isn't there anyway I can change...
  3. Windows 10 not letting me make bat file need help

    in Windows 10 Network and Sharing
    Windows 10 not letting me make bat file need help: So as the title suggests Win 10 isn't letting me make a bat file. So I make a test file called start.txt I rename it to start.bat and on the right hand side of the file it still says its a text document I think to myself that its odd and input my code into the file just for...
  4. .bat file

    in Windows 10 Customization
    .bat file: I have .bat file it is not working in my new PC when I double click on it. but it was working in my old PC. could your please support how to associate .bat file in windows 10? Kindly looking for your support and reply in this regards. Thanks.....
  5. Notepad Opening File Complications

    in Windows 10 Software and Apps
    Notepad Opening File Complications: While I was downloading something I received the option to use Notepad to help download a mod for a game of mine, I accidentally clicked the "open all files using Notepad" option, which, every time I open apps it opens with Notepad which doesn't let me use the app but shows...
  6. 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...
  7. need help creating a file/folder listing *.bat file

    in Windows 10 Support
    need help creating a file/folder listing *.bat file: pretty much as the subject states, l had one in the past but l cant remember where l put it and forget how it was written. basically l just want a script that lists files and folders in a specific directory without listing the sub folders within that dir (just a bog standard...
  8. Help me files

    in Windows 10 Network and Sharing
    Help me files: I have some files on my PC and I want to back up, I have some CDs but I don't know how to copy them https://answers.microsoft.com/en-us/windows/forum/all/help-me-files/49c6a4e6-176c-4882-a917-e4810795ceff"
  9. Help with a .bat file.

    in Windows 10 Support
    Help with a .bat file.: I have this .bat file that I've been messing around with: [img] I got it to open the Windows Update interface: [img] However, I need the .bat file to go a step further and auto click the Check for updates button circled in orange. Can someone help me to finish...
  10. slow complicated file copying

    in Windows 10 Support
    slow complicated file copying: I am using Win10 10240. I have a problem copying a large number of big files. The setup is a bit tortuous. The source is an old WD Cloud NAS on ethernet via my ethernet connected router. The destination is an external hard drive on USB3.0 Using file explorer, I drag a...