Dear all,
I meet difficulties while changing the directory using macros.
Specifically, I am trying to change to "F:/Research/economy"
The word "economy" is stored in a local, because I loop over different folders in "F:/Research/"
While running
global path "F:\Research"
foreach topic in "economy" {
cd "$path`topic'"
}
I receive a weird message
unable to change to F:\Research`topic'
r(170);
But while running
global path "F:\Research"
foreach topic in "economy" {
cd "$path `topic'"
}
I receive
unable to change to F:\Research\ economy
r(170);
which is of course true because there is no such folder " economy" (with a space before economy).
What should I do?
I meet difficulties while changing the directory using macros.
Specifically, I am trying to change to "F:/Research/economy"
The word "economy" is stored in a local, because I loop over different folders in "F:/Research/"
While running
global path "F:\Research"
foreach topic in "economy" {
cd "$path`topic'"
}
I receive a weird message
unable to change to F:\Research`topic'
r(170);
But while running
global path "F:\Research"
foreach topic in "economy" {
cd "$path `topic'"
}
I receive
unable to change to F:\Research\ economy
r(170);
which is of course true because there is no such folder " economy" (with a space before economy).
What should I do?
Comment