Windows 10: Passing argument to the application does not work

Discus and support Passing argument to the application does not work in Windows 10 Gaming to solve the problem; Hello,I found strange behaviour on Windows 11, which caused problems during the application start. I have my own application that accepts some... Discussion in 'Windows 10 Gaming' started by Jakub Vana, Jul 17, 2023.

  1. Passing argument to the application does not work


    Hello,I found strange behaviour on Windows 11, which caused problems during the application start. I have my own application that accepts some arguments on the input. I have an association in the registry Computer\HKEY_CLASSES_ROOT\MyApplication.psi\shell\open\command for starting the application execution the association is via file extensions."C:\Program Files x86\ApplicationFolder\MyApplication.exe" -p "%1"But if I am trying to debug my application opening the file with a specific extension, the argument -p path is not passed inside the Main method of the application, where the ar

    :)
     
    Jakub Vana, Jul 17, 2023
    #1

  2. Unable to access HP Simple Pass to Sign-in to the computer on Windows 10

    Hi Jerome,

    Thank you for posting in Microsoft Community and being a part of Windows 10.

    I understand your concern about accessing HP simple pass after upgrading to Windows 10. We will help you with this issue.

    • Do let us know the make and model of your computer?
    • Have you installed HP simple pass software on your computer?

    Try the below steps and check if it helps.

    Step 1: I suggest you to download the latest HP Simple Pass software from the manufacturer's website install it and check if it helps.

    Step 2: If you have already installed the software, I suggest you to re-install it and check if the issue persists.

    Follow the steps to Access Recovery Manager:

    • Press Start button from the keyboard, type Recover Manager.
    • Select Recovery Manager from the list when it becomes available. Allow the action to continue, if prompted. The
      HP Recovery Manager opens.
    • Click Software program re-installation, Next , select
      HP SimplePass for the listing and then follow the on-screen instructions to reinstall application

    Hope it helps. Try the above and get back to us with an updated status of this issue for further assistance.
     
    Deepika Gowda, Jul 17, 2023
    #2
  3. Limaye Win User
    sc.exe create service with arguments ...

    Hello,

    I am trying to create a service for an application (exe). To start exe , I have to pass args as followed -

    Testapp.exe -conf "app.xml"

    Now, I want to create a service for this application , so that after machine restart , application will run by reading

    configuration (app.xml).

    I tried followed -

    case 1) sc.exe create "Testapp" type= own start= auto binPath= "C:\myapp\Testapp.exe -conf C:\myapp\app.xml"

    It didn't work.

    case 2) sc.exe create "Testapp" type= own start= auto binPath= " \"C:\myapp\Testapp.exe\" -conf C:\myapp\app.xml"

    service is created but service doesn't start. Giving error as it not up in timely manner.

    So, i want to know how to create service with passing agruments as well.

    There are various pages says , you can pass the arguments as optionname etc. But there is no proper example about how

    to pass such arguments.
     
    Limaye, Jul 17, 2023
    #3
  4. Passing argument to the application does not work

    Pass an argument from a .bat file to PowerShell script

    Arguments can be passed to scripts when they are started. Each value passed along to a script can be examined using formal parameters. The script name itself is represented by the parameter %0. The parameter %1 represents the first argument passed in to the script, %2 the second, and so on until %9 for the ninth argument. For example, if you create a script called Check-sys and then use the following command to call the script:


    Code:
    You would find that the related parameter values are:

    %0 — check-sys

    %1 — mailer1

    %2 — full

    %3 — actual
     
    FreeBooter, Jul 17, 2023
    #4
Thema:

Passing argument to the application does not work

Loading...
  1. Passing argument to the application does not work - Similar Threads - Passing argument application

  2. Passing argument to the application does not work

    in Windows 10 Software and Apps
    Passing argument to the application does not work: Hello,I found strange behaviour on Windows 11, which caused problems during the application start. I have my own application that accepts some arguments on the input. I have an association in the registry Computer\HKEY_CLASSES_ROOT\MyApplication.psi\shell\open\command for...
  3. Microphone does not work with applications.

    in Windows 10 Gaming
    Microphone does not work with applications.: I've had issues with my built-in microphone in my laptop for a while now. I use a Samsung Galaxy Book Pro. The microphone works only in the browser for some reason, and although I do get the icon in my taskbar when I use it with apps, the app cannot detect any audio from the...
  4. Microphone does not work with applications.

    in Windows 10 Software and Apps
    Microphone does not work with applications.: I've had issues with my built-in microphone in my laptop for a while now. I use a Samsung Galaxy Book Pro. The microphone works only in the browser for some reason, and although I do get the icon in my taskbar when I use it with apps, the app cannot detect any audio from the...
  5. Microsoft application does not work

    in Microsoft Windows 10 Store
    Microsoft application does not work: Run wsreset.exe, throwing the error. The problems are: The Microsoft Store does not start at all. To report that when testing the comment hub that one doesn't start at all either. Trying to open Photos throwing an error Can someone help me on this?...
  6. Microsoft application does not work

    in Windows 10 Gaming
    Microsoft application does not work: Run wsreset.exe, throwing the error. The problems are: The Microsoft Store does not start at all. To report that when testing the comment hub that one doesn't start at all either. Trying to open Photos throwing an error Can someone help me on this?...
  7. Microsoft application does not work

    in Windows 10 Software and Apps
    Microsoft application does not work: Run wsreset.exe, throwing the error. The problems are: The Microsoft Store does not start at all. To report that when testing the comment hub that one doesn't start at all either. Trying to open Photos throwing an error Can someone help me on this?...
  8. Pass an argument from a .bat file to PowerShell script

    in Windows 10 Support
    Pass an argument from a .bat file to PowerShell script: I have subscribed to a push notification service in order to be able to send push notifications to my phone. Here is the PowerShell script: Code: $uri = "https://api.pushover.net/1/messages.json" $parameters = @{ token = "token" user = "user" message = "Push Message" }...
  9. Application does not work

    in Windows 10 Software and Apps
    Application does not work: I just bought an application in the microsoft store. but it does not work in any way. I want a refund.. What or where should i do or go for this? https://answers.microsoft.com/en-us/windows/forum/all/application-does-not-work/71f5d53d-0f80-4c4f-af55-22730d2a745e
  10. Pass multiple arguments in a "basic task" in task scheduler.

    in Windows 10 Ask Insider
    Pass multiple arguments in a "basic task" in task scheduler.: In the Add arguments(optional): Can I pass two tasks to perform? add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v AppUsesLightTheme /t REG_DWORD /d 0 /f add HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize /v SystemUsesLightTheme /t...