dllhost when running image

Asked 2 years ago, Updated 2 years ago, 19 views

Whenever I run an image in Windows Viewer, I check the process, and dllhost.exe is running, but dllhost does not appear when I run it with this Paint. Is there any way to prevent dllhost from appearing when running in Windows Viewer?

java

2022-09-21 16:21

2 Answers

There are various roles of dllhost, one of which is used to make thumbnails.

dllhost is not a strange file, so you can ignore it.


2022-09-21 16:21

try { ArrayList cmd = new ArrayList(); cmd.add("cmd"); cmd.add("/c");

 cmd.add ("path with image file");

    ProcessBuilder pb = new ProcessBuilder(cmd);
    //p = Runtime.getRuntime().exec(new String[] {"cmd", "/c", directory+"\\"+file});

    Process p=pb.start();

    p.waitFor();`

} } catch (InterruptedException e) {
    e.printStackTrace();
} } catch (IOException e) {
    // // TODO Auto-generated catch block
    e.printStackTrace();
}

} If you run this code as debugging, if the image connection program is set to Paint, it gets caught in waitFor() and if it's set to Windows Viewer, it doesn't get caught in waitFor(). I turned off the external file that I originally ran, so I tried to add a function in my work after that, but it's not like that if it's set to Windows Viewer...


2022-09-21 16:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.