468,505 Members | 1,586 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

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 2433
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 fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.