Author Topic: Problem writing file  (Read 3256 times)

0 Members and 1 Guest are viewing this topic.

Offline paezaoTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • paezao has no influence.
  • Gender: Male
  • Why can't we script our RL Jobs?
  • Respect: +6
  • Referrals: 0
    • View Profile
Problem writing file
« on: October 22, 2009, 07:28:16 PM »
0
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?

Offline rana70

  • Elite
  • *
  • *
  • Posts: 294
  • Activity:
    0%
  • Reputation Power: 5
  • rana70 has no influence.
  • Gender: Male
  • Respect: +37
  • Referrals: 2
    • View Profile
    • MyScripts
Re: Problem writing file
« Reply #1 on: October 22, 2009, 09:36:24 PM »
0
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

Offline paezaoTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • paezao has no influence.
  • Gender: Male
  • Why can't we script our RL Jobs?
  • Respect: +6
  • Referrals: 0
    • View Profile
Re: Problem writing file
« Reply #2 on: October 23, 2009, 01:06:39 AM »
0
Thanks for replying

It works via run with just cmd

Offline rana70

  • Elite
  • *
  • *
  • Posts: 294
  • Activity:
    0%
  • Reputation Power: 5
  • rana70 has no influence.
  • Gender: Male
  • Respect: +37
  • Referrals: 2
    • View Profile
    • MyScripts
Re: Problem writing file
« Reply #3 on: October 23, 2009, 05:00:38 AM »
0
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

Offline paezaoTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Activity:
    0%
  • Reputation Power: 0
  • paezao has no influence.
  • Gender: Male
  • Why can't we script our RL Jobs?
  • Respect: +6
  • Referrals: 0
    • View Profile
Re: Problem writing file
« Reply #4 on: October 23, 2009, 12:55:54 PM »
0
Hey that worked !!

Thanks a lot Rana!!

Offline rana70

  • Elite
  • *
  • *
  • Posts: 294
  • Activity:
    0%
  • Reputation Power: 5
  • rana70 has no influence.
  • Gender: Male
  • Respect: +37
  • Referrals: 2
    • View Profile
    • MyScripts
Re: Problem writing file
« Reply #5 on: October 23, 2009, 01:01:03 PM »
0
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
« Last Edit: October 23, 2009, 01:22:21 PM by rana70 »

Tags: