Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining foles

Status
Not open for further replies.

patchman

Programmer
Nov 30, 2004
7
US
Hi everyone. I am a kind of new in scripting languages. While I am reading books and mateials, I try to apply it to undrestand more of it. I have a question. Is it possible to combine two files and run them with one script.? Another words, If there is two files that each one has a script to run. If the script of both files are exactly the same and the only difference is the file name each uses. Now, could I run both with one script.? Thanks for any suggestions and comments.

regards
 
Sorry. The Title is: Combining Files.

Regards
 
the only functionality i can think of which might be of use is using an Include file. WSH are the extensions i think.
there is a FAQ written for it in this forum, 'dilettante' is the author
 
Thanks for your comments. Let me clarify a few points. I am using VBScript, There is two seperate files which each one has its own script. The script for one is exactly the same as the other. I have combined the two script by just adding them toghether, and it does not give me an error. The only diference in the whole program is using diferent file. Now my question is; Is it possible to use both file in one script to run it? I have to say that the program has to run the whole process for each file. I hope this will help.

Regards,
 
Put the file names in an array, then loop through the array to process each file with the same code. You could add as many file names to the array as you wished then.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top