r2dak Posted January 14, 2013 Share Posted January 14, 2013 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 More sharing options...
johnmcloud Posted January 14, 2013 Share Posted January 14, 2013 Read the help for ShellExecute or RunIf you have problem, just say r2dak 1 Link to comment Share on other sites More sharing options...
r2dak Posted January 14, 2013 Author Share Posted January 14, 2013 (edited) 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 January 14, 2013 by r2dak [center][font=comic sans ms,cursive]PEACE & LOVE[/font][/center] Link to comment Share on other sites More sharing options...
johnmcloud Posted January 14, 2013 Share Posted January 14, 2013 Run(@ComSpec & " /c " & "C:\Windows\System32\cscript.exe" & " " & "C:projectrohit.vbs" & " " & "C:projectfileneame.exe", "", @SW_HIDE)You have forget the space Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted January 14, 2013 Moderators Share Posted January 14, 2013 Or convert the vbscript to autoit and save yourself the headache. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
r2dak Posted January 14, 2013 Author Share Posted January 14, 2013 (edited) Run(@ComSpec & " /c " & "C:\Windows\System32\cscript.exe" & " " & "C:projectrohit.vbs" & " " & "C:projectfileneame.exe", "", @SW_HIDE)You have forget the spacedidnt 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 January 14, 2013 by r2dak [center][font=comic sans ms,cursive]PEACE & LOVE[/font][/center] Link to comment Share on other sites More sharing options...
r2dak Posted January 14, 2013 Author Share Posted January 14, 2013 (edited) Read the help for ShellExecute or Run If you have problem, just say got it working thank you i did this FileInstall("rohit.vbs",@TempDir & "\rohit.vbs") ShellExecute(@TempDir & "\rohit.vbs","C:\project\fileneame.exe") Edited January 14, 2013 by r2dak [center][font=comic sans ms,cursive]PEACE & LOVE[/font][/center] Link to comment Share on other sites More sharing options...
johnmcloud Posted January 14, 2013 Share Posted January 14, 2013 Good for you 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