Sign in to follow this  
Followers 0
skywalker

Help !

7 posts in this topic

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..

Share this post


Link to post
Share on other sites



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!

Share this post


Link to post
Share on other sites

I have a domain controller. but not in microsoft platform, is in novell platform.

hope to hear ffrom you .

thank you for your guidance.

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

:ph34r: 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

Share this post


Link to post
Share on other sites

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 Nuttall
Nuttall 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...

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0