Jump to content

how can i run this via auto it


r2dak
 Share

Recommended Posts

hi can you tell me how can i run cscript.exe with these arguments using a autoit script currently i'm using a batch file to run this

"C:\Windows\System32\cscript.exe" "C:\project\rohit.vbs" "C:\project\fileneame.exe"

[center][font=comic sans ms,cursive]PEACE & LOVE[/font][/center]

Link to comment
Share on other sites

hi i tried RUN

FileInstall("rohit.vbs",@TempDir & "\rohit.vbs")
Run("C:\Windows\System32\cscript.exe" @TempDir & "\rohit.vbs" "C:\project\fileneame.exe")

and

Run("C:\Windows\System32\cscript.exe" & @TempDir & "\rohit.vbs" & "C:\project\fileneame.exe")

not working any ideas ???

now trying ShellExecute

Edited by r2dak

[center][font=comic sans ms,cursive]PEACE & LOVE[/font][/center]

Link to comment
Share on other sites

Run(@ComSpec & " /c " & "C:\Windows\System32\cscript.exe" & " " & "C:projectrohit.vbs" & " " & "C:projectfileneame.exe", "", @SW_HIDE)

You have forget the space

didnt work :(

Or convert the vbscript to autoit and save yourself the headache.

sorry but i'm just a beginner in autoit can you please tell me how can i do that or where i can learn that

Edited by r2dak

[center][font=comic sans ms,cursive]PEACE & LOVE[/font][/center]

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

×
×
  • Create New...