471,071 Members | 982 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 software developers and data experts.

How to Refresh the Desktop window with python script

Hi everybody

I have couple of questions,

1) How can i refresh my desktop window(wallpaper), using the python
script, after pasting some data on the desktop.

2) How can i run an exe file from the python

3) How can i get the information of a machine like "computer name",
"mac address", "ip address" and "OS on that system".

Thanks in advance for having given a thought on my questions.

Regards
Yogi

Dec 13 '05 #1
1 2709
mu*******@yahoo.com wrote:
Hi everybody

I have couple of questions,

1) How can i refresh my desktop window(wallpaper), using the python
script, after pasting some data on the desktop.

The is *way* too operating system and window system dependent to answer
without more knowledge.
2) How can i run an exe file from the python

One way is os.system: http://docs.python.org/lib/os-process.html#l2h-1692
Another more comprehensive method can be found in the subprocess module:
http://docs.python.org/lib/module-subprocess.html
3) How can i get the information of a machine like "computer name",
"mac address", "ip address" and "OS on that system".

The platform module can give lots of such info:
http://docs.python.org/lib/module-platform.html

Good Luck,
Gary Herron
Thanks in advance for having given a thought on my questions.

Regards
Yogi

Dec 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

43 posts views Thread by dan baker | last post: by
1 post views Thread by kiplring | last post: by
2 posts views Thread by Jeronimo Bertran | last post: by
3 posts views Thread by Steve Wark | last post: by
5 posts views Thread by Peter | last post: by
12 posts views Thread by jeremyvoros | last post: by
5 posts views Thread by =?Utf-8?B?Sm9obg==?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.