Read String Value From Registry and How do I run an external exe file

Read String Value From Registry and How do I run an external exe file

isocam
Collaborator Collaborator
478 Views
1 Reply
Message 1 of 2

Read String Value From Registry and How do I run an external exe file

isocam
Collaborator
Collaborator

Can anybody help?

 

I need to test Fusion's python API to see if it can do the following simple commands

 

Firstly.

 

Read a "String" value from the registry and display it in a message box. Please see the attached picture.

 

Secondly,

 

Run an external "exe" application. For testing purposes only, open notepad and wait for it to exit before proceeding. This has to be done without showing the CMD window!

 

Many thanks in advance!!!!

 

Darren

 

0 Likes
479 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Hello,

 

Please refer to the following two links. "winreg" can be used to access registry in Windows and "subprocess" can be used to execute external process in silence. You should be able to search samples how to use them by Google. 

 

https://docs.python.org/3.5/library/winreg.html?highlight=winreg

https://docs.python.org/3/library/subprocess.html#module-subprocess

 

Thanks,

Marshal

0 Likes