OpenWith.exe delayed for some minutes


Joined
Sep 28, 2016
Messages
18
Reaction score
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
 
Joined
Feb 18, 2016
Messages
2,826
Reaction score
622
Just asking! Why a .BAT file? I bet you can open a file quicker using the old method.
 
Ad

Advertisements

Joined
Sep 28, 2016
Messages
18
Reaction score
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
 
Ad

Advertisements

Joined
Sep 28, 2016
Messages
18
Reaction score
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
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top