ShadowElf Posted April 8, 2014 Posted April 8, 2014 I have a strange situation... Windows 7 64 my very small script #include <Constants.au3> #include <FileConstants.au3> If $CmdLine[0] > 0 Then FileDelete ( "verifica.txt" ) FileWrite ( "verifica.txt", $CmdLine[1] ) MsgBox(0, "Done", $CmdLine[1]) EndIf when I run it fom command line: " abcd.exe asd_asd " IT create a file and write to it asd_asd. If I start this mini exe with another program... it does not create the file. but alert with parameter (msgbox)... but file is not created.... any ideea? thanks I have checked "run as administrator" ... no succes I like IT: php, mysql, codeingiter, css, jquery and AUTOIT
JohnOne Posted April 8, 2014 Posted April 8, 2014 (edited) How you run from other exe? Edited April 8, 2014 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Moderators JLogan3o13 Posted April 8, 2014 Moderators Posted April 8, 2014 (edited) Can you show your program that is running the first script? It works just fine for me. Edit: Too Slow Edited April 8, 2014 by JLogan3o13 "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!
ShadowElf Posted April 8, 2014 Author Posted April 8, 2014 sorry, I just find the problem... one hour for searchng... then forum... then the ideea. FileWrite ( @ScriptDir & "\verifica.txt", $CmdLine[1] ) when I execute if from another program... it make txt file to wrong folder... that's the problem I like IT: php, mysql, codeingiter, css, jquery and AUTOIT
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