LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I have to change my password, computer name, and IP address programmatically using CVI. Can anybody help with this

I have to change my password, computer name, and IP address programmatically using LabWindows/CVI.  Can anybody help with this?
 
Thanks,
AR
0 Kudos
Message 1 of 9
(6,311 Views)
those are features of your OS.

OS commands can be called via the "system( )" function.

Message 2 of 9
(6,304 Views)

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

0 Kudos
Message 3 of 9
(6,280 Views)

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

S. Eren BALCI
IMESTEK
Message 4 of 9
(6,276 Views)

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

0 Kudos
Message 5 of 9
(5,602 Views)

Hi,

 

Could you better explain what the end goal is for your network settings? Are you wanting to permanently change them?

 

-Adri K

Adri Kruger
National Instruments
LabVIEW Product Marketing
0 Kudos
Message 6 of 9
(5,568 Views)

Hi,

 

Just I wanted to check whether I am able to change the network settings through LabVIEW. Please provide me the solution.

 

Thanks

MRK

0 Kudos
Message 7 of 9
(5,560 Views)

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.

 

Chris Van Horn
Applications Engineer
Message 8 of 9
(5,537 Views)

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.

Message Edited by Chris_VH on 03-24-2009 01:14 PM
Chris Van Horn
Applications Engineer
Message 9 of 9
(5,536 Views)