Thank you all for the quick replies. It worked! Truely appriciated. I
am python novice and still learning I hope to contribute to this
group someday :)
Hitesh
--
http://mail.python.org/mailman/listinfo/python-list
o create a for loop like this it doesn't work.... how can
>I pass computerName var as an argument?
>What am I doing wrong here? Thank you in advance
>
>import os
>
>Computerlist = ['PC1', 'PC2', 'PC3', 'PC4', 'PC5']
>for C
Thank you Robert, It worked!!!
Thank you so much
--
http://mail.python.org/mailman/listinfo/python-list
Hitesh Joshi a écrit :
(snip)
> But if I try to create a for loop like this it doesn't work how can
> I pass computerName var as an argument?
> What am I doing wrong here? Thank you in advance
>
> import os
>
> Computerlist = ['PC1', 'PC2
Hitesh Joshi wrote:
> ok here is the deal... I figured out how to pass the variable but now
> messages are not popping up on the windows screen if I use this method:
>
> import os
>
> Computerlist = ['PC1', 'PC2', 'PC3', 'PC4', 'PC5']
> for ComputerName in Computerlist:
> print ComputerName
>
ok here is the deal... I figured out how to pass the variable but now
messages are not popping up on the windows screen if I use this method:
import os
Computerlist = ['PC1', 'PC2', 'PC3', 'PC4', 'PC5']
for ComputerName in Computerlist:
print ComputerName
s = "net send %s" % ComputerName
ss computerName var as an argument?
What am I doing wrong here? Thank you in advance
import os
Computerlist = ['PC1', 'PC2', 'PC3', 'PC4', 'PC5']
for ComputerName in Computerlist:
print ComputerName
os.system('net send ComputerName "Message"')
--
http://mail.python.org/mailman/listinfo/python-list