You have to login in order to post a reply to this topic.

8 replies [Last post]
kratos
kratos's picture
User offline. Last seen 1 week 1 day ago. Offline
Joined: 08/09/2010
Posts: 11
  • I want to open a text file from a program and do some stuff them save it to another folder.
  • Then open another text file from the same folder next to previous file then so on.

Please advice..

 

__________________

Business Directory

__________________

Business Directory

Samantha
Samantha's picture
User offline. Last seen 1 day 22 hours ago. Offline
Joined: 04/23/2010
Posts: 1389
Re: How to do this???

Hello kratos,

I'm afraid that your description is not enough to help us help you. What do you want to do to these files? Is it each text file in that programs folder you want to read, edit content and then save final file to new folder leaving the original content as it was?

Looking forward to hearing from you so we can get you sorted out

;)
Samantha

__________________

Rome wasn't built in a day..

__________________

Rome wasn't built in a day..

kratos
kratos's picture
User offline. Last seen 1 week 1 day ago. Offline
Joined: 08/09/2010
Posts: 11
Re: How to do this???

Hi Samantha,

For example I will open a notepad program then open a text file from a folder then do something with the content. After that I will save that to another folder so the original file will not be overwritten. After that the bot will loop and open the next file in the folder. and so on...

Please let me know if this is clear enough.. If not just let me know.. :)

Kratos

__________________

Business Directory

__________________

Business Directory

Samantha
Samantha's picture
User offline. Last seen 1 day 22 hours ago. Offline
Joined: 04/23/2010
Posts: 1389
Re: How to do this???

Well..

it's clear enough that you will have to use the Run Application action, in conjunction with the Wait for window or Process .. since you will be doing something using another program.. But that's all I can figure out with the info you have given me.

Have you started to build this job? Do you have a manual procedure you are following step by step?

At which exactly step are you getting difficulties?

:)
Samantha

__________________

Rome wasn't built in a day..

__________________

Rome wasn't built in a day..

kratos
kratos's picture
User offline. Last seen 1 week 1 day ago. Offline
Joined: 08/09/2010
Posts: 11
Re: How to do this???

Samantha,

The procedure that I wanted to know is how to chose the next file after the previous one continuosly..

 

Kratos

__________________

Business Directory

__________________

Business Directory

Samantha
Samantha's picture
User offline. Last seen 1 day 22 hours ago. Offline
Joined: 04/23/2010
Posts: 1389
Re: How to do this???

You use the Get Files in Folder, and then use a For each action and use the Run Application to open each text file in notepad.

Selecting the Wait for Application to complete option, you can make as many changes to the file and then once you close it .. it will open the next one..

Please check attached job.. and let me know whether this is what you were after.

:)
Samantha

AttachmentSize
kratos.waj 14 KB
__________________

Rome wasn't built in a day..

__________________

Rome wasn't built in a day..

kratos
kratos's picture
User offline. Last seen 1 week 1 day ago. Offline
Joined: 08/09/2010
Posts: 11
Re: How to do this???

Thanks samantha. I will check this out.. :)

 

 

__________________

Business Directory

__________________

Business Directory

kratos
kratos's picture
User offline. Last seen 1 week 1 day ago. Offline
Joined: 08/09/2010
Posts: 11
Re: How to do this???

Hi samatha Im stucked again.. I need your help.. I dont know how to do this.. If you can provide me the source for this I will be grateful..

What I need to get done:

  • A folder with 5 random .txt files
  • Open Notepad program
  • Open file>> Open the first text file in the folder
  • Save the text file to another folder
  • Then open the next text file.
  • And So on...

I didnt see the tutorial on how to do this. I am able to open a text file using send mouse click but I dont know what to do next to loop and choose the next one..

I really need your help..

Thanks in advance. :)

 

Kratos

__________________

Business Directory

__________________

Business Directory

Samantha
Samantha's picture
User offline. Last seen 1 day 22 hours ago. Offline
Joined: 04/23/2010
Posts: 1389
Re: How to do this???

Hello kratos,

The job you are describing should actually look something like the attached job A.

But since you only want to save the file, why not go for a simpler and much quicker solution of copying the files to another folder directly instead of opening them first? (Please check attached job B)

Let me know if it worked for you

:)
Samantha

AttachmentSize
20100830_kratos A.waj 16 KB
20100830_kratos B.waj 14 KB
__________________

Rome wasn't built in a day..

__________________

Rome wasn't built in a day..