Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
120 user(s) are online (91 user(s) are browsing Forums)

Members: 2
Guests: 118

Skateman, ddni, more...

Headlines

Report message:*
 

Re: Looping in DOS batch scripts

Subject: Re: Looping in DOS batch scripts
by nbache on 2021/5/23 23:09:01

@Raziel

Quote:
The problem is, that i need to be IN the directory when starting the arexx script, because arexx will only act on the directory it is started in
This sounds to me like a misunderstanding - although I am not quite sure what you're actually trying to do, once you know where to do it.

You can always build a path in a string variable, even an absolute one, or a relative one starting with one or more '/' for that matter, and use that string variable to "address command 'cd ' || pathvar" or something, i.e. effectively set the current dir of your running script's process somewhere else.

Normally it's good practice to save your current dir first, so you can restore it at the end of the script.

Best regards,

Niels




Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project