skywalker Posted August 23, 2004 Share Posted August 23, 2004 i have been trying and trying with this code. but it still shows error. can anyone please guide me on this ? RunAsSet("administrator",@COMPUTERNAME","password") RunWait("H:\Software\e.txt") My H drive is a network drive. when i run it. it always shows that unable to execute the external program..what is the problem? secondly. the @COMPUTERNAME is it have to put as computer name? if i want this file 300 user using this file, is that means i have to create 300 different file for different computer name? can i use like %COMPUTERNAME% to replace it so that it can search for computername automatically while user login.? can anyone please guide me on this?? thanks.. Link to comment Share on other sites More sharing options...
Andre Posted August 23, 2004 Share Posted August 23, 2004 Hi, The message u get is correct. For using files on network drives use UNC naming instead of drive letters. Example \\Server1\Software\e.txt Second : Do u have an domain ? Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
skywalker Posted August 23, 2004 Author Share Posted August 23, 2004 I have a domain controller. but not in microsoft platform, is in novell platform. hope to hear ffrom you . thank you for your guidance. Link to comment Share on other sites More sharing options...
Andre Posted August 23, 2004 Share Posted August 23, 2004 Hi, Give it a try with RunasSet("User","Domain","Password") andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
this-is-me Posted August 23, 2004 Share Posted August 23, 2004 You should not have another quote. Your code: RunAsSet("administrator",@COMPUTERNAME","password") Correct: RunAsSet("administrator",@COMPUTERNAME,"password") notice no " after computername Who else would I be? Link to comment Share on other sites More sharing options...
hinfie Posted August 24, 2004 Share Posted August 24, 2004 You can also map H: using DrivemapAdd after you started the runatset account. H: does not exist for the account you use to run the application. A good way to check this is to use "run as" on Internet Explorer and got to my computer using internet explorer. You will notice that there are no mappings to external drives... RunAsSet("administrator",@COMPUTERNAME,"password") DriveMapAdd("H:", "\\myserver\stuff") RunWait("H:\Software\e.txt") Playing and learning with Autoit v3 Hinfie Link to comment Share on other sites More sharing options...
Nutster Posted August 24, 2004 Share Posted August 24, 2004 Another thing I noticed is that you are trying to run a .txt file. In order to work with a text file, you need to run a program to manipulate it like Notepad. David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now