dbyers3 Posted June 8, 2007 Report Share Posted June 8, 2007 Does anyone know how to refresh the windows desktop background? What I am trying to do is overlay some information onto a picture that is the desktop background and then refresh it. Then the info will be displayed on my desktop background. While I am at it, also do you know how to get the systems MAC address and IP address Programaticly? Thanks a bunch, Im sure the rest of you will want to use this too? Right??? :thumbup: Quote Link to comment
Michael Aivaliotis Posted June 8, 2007 Report Share Posted June 8, 2007 You can download a free utility that updates your wallpaper automatically just google: automatically change wallpaper to see a slew of freeware tools. If you type ipconfig /all in the Windows Shell command, it will return all you network card info. Quote Link to comment
Yair Posted June 9, 2007 Report Share Posted June 9, 2007 Another way to get your IP addresses (although not the MAC addresses) is to do this: http://forums.lavag.org/index.php?act=attach&type=post&id=6050 As for the MAC addresses, you can use the command Michael supplied to call the System Exec VI and parse the output. There are also probably some Windows API functions to do this. I'm fairly sure Rolf Kalbermatter (rolfk) posted some either here or to the NI fourms, so you can search there for his posts. Quote Link to comment
crelf Posted June 9, 2007 Report Share Posted June 9, 2007 QUOTE(yen @ Jun 8 2007, 06:20 PM) There are also probably some Windows API functions to do this. I remember about a year ago someone posting a .NET method of doing this... (?) Quote Link to comment
Wolfram Posted June 9, 2007 Report Share Posted June 9, 2007 There is a command called "getmac" to get the MAC address. See in help of Windows XP. Quote Link to comment
dbyers3 Posted June 9, 2007 Author Report Share Posted June 9, 2007 Thanks Guys, All worked great. One last thing,,, How about getting the Computer name???? Quote Link to comment
Jeff Plotzke Posted June 9, 2007 Report Share Posted June 9, 2007 QUOTE(dbyers3 @ Jun 8 2007, 10:23 AM) Thanks Guys, All worked great. One last thing,,, How about getting the Computer name???? Perhaps there's an easier way... but running 'ping localhost' gives the local computer name: "Pinging <computername> [127.0.0.1] with 32 bytes of data:" Quote Link to comment
Wolfram Posted June 9, 2007 Report Share Posted June 9, 2007 Look at this registry key (just read it out): HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ComputerName Quote Link to comment
crelf Posted June 9, 2007 Report Share Posted June 9, 2007 QUOTE(Wolfram @ Jun 9 2007, 12:56 AM) Look at this registry... http://forums.lavag.org/index.php?act=attach&type=post&id=6052''>http://forums.lavag.org/index.php?act=attach&type=post&id=6052'>http://forums.lavag.org/index.php?act=attach&type=post&id=6052 I might make it a bit more comprehensive and upload it to the LAVAcr... Quote Link to comment
Dirk J. Posted June 9, 2007 Report Share Posted June 9, 2007 QUOTE(dbyers3 @ Jun 7 2007, 09:03 PM) Does anyone know how to refresh the windows desktop background? What I am trying to do is overlay some information onto a picture that is the desktop background and then refresh it. See here for the VI to do (part of) this... QUOTE Look at this registry key (just read it out): or, if you don't like registry stuff, use this VI. http://forums.lavag.org/index.php?act=attach&type=post&id=6054 Quote Link to comment
Michael Aivaliotis Posted June 10, 2007 Report Share Posted June 10, 2007 To get computer name: Quote Link to comment
Yair Posted June 10, 2007 Report Share Posted June 10, 2007 QUOTE(Michael_Aivaliotis @ Jun 9 2007, 08:19 PM) To get computer name: Or, for a list of all the network adapters, follow my first example with this modification. Quote Link to comment
Jim Kring Posted June 20, 2007 Report Share Posted June 20, 2007 QUOTE(Michael_Aivaliotis @ Jun 9 2007, 10:19 AM) To get computer name: Actually, you should keep only data before the first period (".") character in case the hostname includes the domain-name suffix, in addition to the machine name (for example: "hostname.domain.com" instead of just "hostname"). The domain suffix can change depending on which network your computer is on (for example: portable computers that move between home, work, and cafes). http://forums.lavag.org/index.php?act=attach&type=post&id=6141''>http://forums.lavag.org/index.php?act=attach&type=post&id=6141'>http://forums.lavag.org/index.php?act=attach&type=post&id=6141 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.