Friday 15 June 2012

python - Pass a string to the command line -


I have written some code that can search through a large CSV file and, on the basis of search parameters, the computer Can find the name. / P>

Now, I want to pass this string (computer name) as a command-line parameter and automatically connect to RealVNC ( C: \ Program Files \ RealVNC \ VNC4 \ vncviewer.exe < / Code>) with it. Therefore, after the code is executed, the RealVNC window will pop up and the computer will be used remotely on the network.

You can use a subprocess like this:

  In the case you do not have this, there are command line arguments and their options here, from the subprocess import call call (["appname", "logic"])   

.

No comments:

Post a Comment