process.start replaces clipboard content

Pipster

New member
Joined
May 1, 2022
Messages
1
Programming Experience
10+
When I execute a program (any program) using Process.Start (for example Process.Start("explorer.exe", "C:\Program Files\Google\Chrome\Application\chrome.exe")), the contents of my Windows 10 clipboard is deleted and replaced by the text property of the object that called explorer.exe. For example, if a button or label object named "foo" calls explorer.exe via process.start then my clipbaord content, whatever it may be, is replaced by the text "foo". Can anyone explain why Process.Start overwrites the clipboard and how I can prevent that? Any answers would be gratefully received. -- P
 
Back
Top