Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I created a Windows XP bat script to modify etc/hosts file.

I want to share this script at other machine, then from another computer I want to invoke these script to modify hosts file at first computer (via LAN).

I need some example. I didn't find any example. Is this possible?

I try:

runas/user:username block.bat

On the same machine login as guest but it doesn't work. No errors just "Attempting to call block.bat" and end of invocation. As admin script works ok.

Could someone give me any advice?

share|improve this question
    
A Windowx XP bash script ? Seriously ? –  adaptr Apr 27 '12 at 15:24
    
Thanks I changed it –  drupality Apr 27 '12 at 15:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.