Jump to content

Recommended Posts

Posted

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

Posted

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

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
  • Recently Browsing   0 members

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