OpenWith.exe delayed for some minutes

Discussion in 'General Discussion' started by Erhy, Mar 13, 2018.

  1. Erhy

    Erhy

    Joined:
    Sep 28, 2016
    Messages:
    18
    Likes Received:
    1
    Hello!
    To open a specific file with File Explorer I wrote a .bat file to do this job.

    If I select this .BAT in the Open With dialog of File Explorer
    it needs minutes till the file is opened as suggested.

    I analyzed this behavior with Event Viewer and realised
    that there is a OpenWith.exe started from a svchost.exe
    and this is minutes after clicked in File Explorer.

    What I can do for normal work?

    Thank You
    Erhy
     
    Erhy, Mar 13, 2018
    #1
    1. Advertisements

  2. Erhy

    Norton

    Joined:
    Feb 18, 2016
    Messages:
    2,676
    Likes Received:
    561
    Just asking! Why a .BAT file? I bet you can open a file quicker using the old method.
     
    Norton, Mar 13, 2018
    #2
    1. Advertisements

  3. Erhy

    Erhy

    Joined:
    Sep 28, 2016
    Messages:
    18
    Likes Received:
    1
    want to rise the priority, when the task started;
    this by passing to a powershell script with

    if ( -not $Args[0] ) {
    [int]$PIDNOW=(Start-Process -PassThru -FilePath "C:\Program Files\PhotoLine\PhotoLine.exe" ).Id
    } else {
    [int]$PIDNOW=(Start-Process -PassThru -FilePath "C:\Program Files\PhotoLine\PhotoLine.exe" -ArgumentList $Args ).Id
    }
    (Get-WmiObject -Class Win32_Process -Filter "ProcessId=$PIDNOW").SetPriority(32768) | out-null


    Erhy
     
    Erhy, Mar 13, 2018
    #3
  4. Erhy

    Erhy

    Joined:
    Sep 28, 2016
    Messages:
    18
    Likes Received:
    1
    I decided a other way, to increase the priority, when this software will be started.
    With an Event-Viewer task for the event, when this software is started.
    It is necessary to enable Events when task are started.
    Further I edited the scheduler task, see this exported script.
    Erhy
     
    Erhy, Mar 14, 2018
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.