I want to know if I can run/execute (with the include command) a number of subprograms (that are in different folders) in a FOR loop depending on a parameter. For the moment only the first program is run and then the whole thing stops.
THX.
include command clarification
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
include command clarification
Last edited by bco on Fri Sep 16, 2016 8:57 am, edited 1 time in total.
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: include command clarification
In general, no, not with an Include. You cannot dynamically change the name/path of an included file.
Re: include command clarification
Can it be done with a run or exec command? And how - an example will help ...
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: include command clarification
Code: Select all
For %file file1 file2
exec %file
next
Re: include command clarification
And if the files (to be run) are in different folders/subfolders it will still work?
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: include command clarification
Code: Select all
for %fileandpath "c:\temp\folder 1\file1" "c:\temp\folder 2\file2"
exec %fileandpath
next
Who is online
Users browsing this forum: No registered users and 2 guests
