Jump to content

#include"file.vbs"


Recommended Posts

You only want FileInstall if you want to install a file on to someone elses computer. FileInstall won't let you use VB6 functions and such, It will just reinstall your code to your harddrive

My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]
Link to comment
Share on other sites

  • Developers

You only want FileInstall if you want to install a file on to someone elses computer. FileInstall won't let you use VB6 functions and such, It will just reinstall your code to your harddrive

<{POST_SNAPBACK}>

Vb6 :lmao: = VBS

You can fileinstall a xyz.vbs and then run it from AutoIt...

You can also just use filewriteline() to create the VBS script on the fly and then run it......

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

#include is for including AutoIt scripts. You're looking for FileInstall.

<{POST_SNAPBACK}>

hmm, I'm getting "An attempt has been made to operate on an impersonation token by a thread that is not currently impersonating a client." I'm trying to run a .vbs script that will list local user accounts.

RunAsSet("Administrator", @Computername, "public")

RunWait(@ComSpec & " /c Start cscript" & @ScriptDir & "\listusers.vbs > C:\listusers.txt")

what am I doing wrong?

max

:lmao:

Link to comment
Share on other sites

Vb6  :lmao: = VBS

You can fileinstall a xyz.vbs and then run it from AutoIt... 

You can also just use filewriteline() to create the VBS script on the fly and then run it......

<{POST_SNAPBACK}>

the "just use filewriteline() to create a VBS script on the fly and then run it" sounds intrigueing.

How would I set that up in my AutoIt script?

thanks!

max

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...