How to do this???

kratos

  • Joined: Aug 9, 2010
  • Posts: 19

Tue 8/24/2010 - 1:35

  • 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..

 

#1

Samantha

  • Joined: Apr 23, 2010
  • Posts: 2329

Tue 8/24/2010 - 11:46

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

#2

kratos

  • Joined: Aug 9, 2010
  • Posts: 19

Tue 8/24/2010 - 12:14

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

#3

Samantha

  • Joined: Apr 23, 2010
  • Posts: 2329

Tue 8/24/2010 - 12:50

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

#4

kratos

  • Joined: Aug 9, 2010
  • Posts: 19

Tue 8/24/2010 - 13:41

Samantha,

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

 

Kratos

#5

Samantha

  • Joined: Apr 23, 2010
  • Posts: 2329

Tue 8/24/2010 - 14:31

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

kratos.waj

#6

kratos

  • Joined: Aug 9, 2010
  • Posts: 19

Tue 8/24/2010 - 17:04

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

 

 

#7

kratos

  • Joined: Aug 9, 2010
  • Posts: 19

Sat 8/28/2010 - 5:36

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

#8

Samantha

  • Joined: Apr 23, 2010
  • Posts: 2329

Mon 8/30/2010 - 11:18

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

20100830_kratos A.waj 20100830_kratos B.waj

#9
Not a member yet? Register

Copyright 2013 - Softomotive Ltd