ScriptUO

Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: paezao on October 22, 2009, 07:28:16 PM

Title: Problem writing file
Post by: paezao on October 22, 2009, 07:28:16 PM
Hey everyone.

Im trying to write a file in a script, but its just not working.

Ive seen similar code in various scripts here but it doesnt work for me :(

My code is like that atm:

execute cmd.exe /c echo > %path

Im using EUO 1.5 Version 155 to run it

Anyone got any ideas?
Title: Re: Problem writing file
Post by: rana70 on October 22, 2009, 09:36:24 PM
Hi,

what OS do you use ?

Do you have a Path command set for your "DOS Box" ?
The cmd.exe is in usually in the folder C:\Windows\System32

try to open the cmd.exe via the windows RUN.. button
to see if it can be found from without full pathname
if this is not working ... add the missing Folder to the path

cu
Title: Re: Problem writing file
Post by: paezao on October 23, 2009, 01:06:39 AM
Thanks for replying

It works via run with just cmd
Title: Re: Problem writing file
Post by: rana70 on October 23, 2009, 05:00:38 AM
Hi,

can you check out if this runs for you ?

Code: [Select]
Set %FileName #CURPATH , TestFile.txt
Display File: %FileName $
Execute cmd.exe /c echo Textline , #SPC , for , #SPC , Export > %FileName

You should end up with a new File called TestFile.txt
in your actual EUOX Folder.

cu
Title: Re: Problem writing file
Post by: paezao on October 23, 2009, 12:55:54 PM
Hey that worked !!

Thanks a lot Rana!!
Title: Re: Problem writing file
Post by: rana70 on October 23, 2009, 01:01:03 PM
Hey that worked !!

Thanks a lot Rana!!

No problem, you are welcome ....
I am glad and I hope it works now for your script too !

cu