I was looking at this documentation.
http://amiga.sourceforge.net/amigadev ... up=AmigaDOS&action=SearchI'm not so good with AmigaDOS scripts, what I wont to do is remove the "/" from a string.
I using "c:requestfile" to get directory.
I'm getting something like "Ram disk:t/"
So I wont to make directory inside "Ram disk:t/"
I have done like:
Set mydir ´c:requestfile title "pick directory"´
Trying to do.
Makedir $mydirNEWDIR
Results in $mydirNEWDIR
don't work, so trying to do:
Makedir $mydir/MYDIR
Results in "Ram Disk:t//MYDIR", this wont work as "//" is parent directory in AmigaOS.
So I was thinking what If removed "/" from back of $mydir.
looking at documentation, I found that echo can take parts of string.
But only from the first chars, to length, as I have coded in PHP, I know that using negative length values, might product what I wanted. So I tried.
echo len -1 "$mydir"
this resulted is a frozen AmigaOS.
http://www.w3schools.com/php/func_string_substr.asp