Page 1 of 1

Display (Run) temporary script with chdir

Posted: Sun Nov 03, 2019 5:11 pm
by lazi
I would like to run a temporary script from a different drawer than the original.
For example a script saved to a location obtained from GetTempFileName(), but changed PROGDIR: to another location.

There is a -nochdir argument for Hollywood which controls it but the opposite way. I think a -chdir <path> argument would be
handy for this problem.
What do you think?

Re: Display (Run) temporary script with chdir

Posted: Tue Nov 05, 2019 7:30 pm
by airsoftsoftwair
Can't you do something like this?

Code: Select all

cd <desired-active-directory>
Hollywood:System/Hollywood T:tmp.hws -nochdir
In that way, you can have any directory you want as the current one and the Hollywood script can be in some arbitrary temporary directory. Or have I misunderstood the problem here?

Re: Display (Run) temporary script with chdir

Posted: Tue Nov 05, 2019 9:13 pm
by lazi
I have tried it the same way, but certainly overlooked something because @includes was not worked. Tried again and it works now.
So sorry to bother you with my mistake.