07-20-2007 03:39 PM
07-20-2007 06:52 PM
07-23-2007 08:22 AM
Is there anyway you can eliborate on how to use the system() function or any other function to change the IP, computer name and password? I looked at the CVI help for the system() command and can't see a way to change these. I don't want to go into the registry to change these either.
Thanks,
AR
07-23-2007 09:00 AM - edited 07-23-2007 09:00 AM
sunnyar,
The system() function does not have these capabilities in itself. It is used to run MS-DOS type commands within your program.
Simplest example: Open the system() function panel and type "calc" as the command string. When you run the function panel the Windows calculator will be started and the function will not return until you quit the calculator application.
This way, if you know the DOS commands that does what you want to do, you can call them as command strings or you can save them to a batch file and use this function again to run the batch file.
For changing the password see this link: http://www.petri.co.il/change_user_password_from_the_command_prompt.htm
For changing the IP address see ARP command in this link: http://www.governmentsecurity.org/archive/t8329.html
Hope this helps.
Message Edited by ebalci on 07-23-2007 05:07 PM
03-22-2009 11:54 PM
Hi all,
Should I have to take backup of the network details of my PC before I am going to change the IP address programmatically, and should I retrive back the same details at the end? so that my PC's network functionalities cannot be affected. If it is so, please let me know the method / procedure how to do it?
Thanks in advance
MRK
03-23-2009 02:52 PM
Hi,
Could you better explain what the end goal is for your network settings? Are you wanting to permanently change them?
-Adri K
03-23-2009 11:01 PM
Hi,
Just I wanted to check whether I am able to change the network settings through LabVIEW. Please provide me the solution.
Thanks
MRK
03-24-2009 01:09 PM
mrk,
The same functionality is available in LabVIEW as the system() command. It is the System Exec.VI and will take a string input for what you want to use as the DOS command. As far as "reccomending" what you should do, that is entirely up to you. You can always do an IPconfig to see what the current value is and set it back to that after you are finished, but those commands are going to be found in the previous links.
03-24-2009 01:13 PM - edited 03-24-2009 01:14 PM
Heres an NI community document that I created a while back that pings a given URL or IP. You would use the same concept except to send different commands.