Saving of .txt file

F

Fornol

Hi,

I would like to do following thing.

I need to save .txt file which I processed. It should be
saved in the same folder but under different name as soon
as processing is done (without operator attention).

Simply I need to know how to get directory where original
is saved, name of original document and I need to know how
to use it and save new file.

Thank you very much for your help.

Regards,

Fornol
 
P

Perry

Question out of interest:
How can you process a textfile, not knowing where it resides?

Other questions:
How is this textfile processed?
Are you using VBA to populate/process this textfile?
Do you use:
Open ... For Output/Append
or do you use FileSystemObject as in
Set fso = CreateObject("Scripting.FileSystemObject")
Set t = fso.CreateTextFile("c:\temp\MyTextFile.txt")
or something similar?

If so, kindly repost some relevant parts of this code ...

Krgrds,
Perry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top