Jump to content
Sign in to follow this  
ShadowElf

FileWrite problem?

Recommended Posts

ShadowElf

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

Share this post


Link to post
Share on other sites
JLogan3o13

Can you show your program that is running the first script? It works just fine for me.

 

Edit: Too Slow :)

Edited by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
ShadowElf

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

Share this post


Link to post
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
Sign in to follow this  

×