How would you use this dos command to have a user choose a file and then have the selected file open the file rather than appear on the command line example:...
sarkis_44 said, ... There are two ways I use. The first is to redirect the output of the command to a file, then open that file in ARexx to read the contents ...
Hi, Sorry folks, I am having a bad time remembering things. I want to set a variable to an ENV value. How do I? I can't remember. I now think/suspect I have to...
Andrew Bruno
abruno@...
Jan 12, 2002 10:49 pm
2569
Hi! ... Either with ADDRESS COMMAND "setenv Var " || Value or by opening the file as write and write it: call open(out,"env:Var",w) call writeln(out,value) ...
Andrew Bruno said, ... rexxdossupport.library and rmh.library both have functions to read and set environment variables. ... That's the long way to do it. If...
Hi, Actually I was wanting to set the AREXX variable from an ENV: variable. The echo $APPPipLocal idea is the easiest. Cya! -- Hi, I'm Cal, and I'm a tagline...
Andrew Bruno
abruno@...
Jan 15, 2002 6:42 am
2572
Andrew Bruno said, ... Use GetVar() ... That sends the contents to stdout, unless you readirect the output and read from stdin you won't be able to import the...
... Do a line by line read of a file with readln(), if the variable is null (or after compressing out white space is null, within the if statement) skip...
Xavier
onelist@...
Jan 20, 2002 6:52 am
2575
Hello, Sarkis: ... It may depend on just what you really are doing. Do you want to automate the whole process? Does the document change? Is this a one-time...
sarkis_44 said, ... Does CED allow search and replace on special characters? If so you could replace \n\n with \n to remove all blank lines. ... Reading line...
Went to SYS/ Prefs/Keyshow on the keymap for with "control" key depressed the return key was shown as ^j The text file I am editing has many lines that are...
sarkis_44 said, ... if left(str, 1) = '0a'x checks for a line feed, but if str = '0a'x is faster. If you're using readln() to read the lines, the trailing LF ...
... LF = d2c(10) /* '0a'x */ Sarkis: There are two ways to identify what you want. Pick your weapon... decimal or hex. Most web documents are OK with this, but...
Hello, I am trying to write a small script giving me disk name as output. Below there is general idea of script: /* DiskName */ address command "info Dh0: >...
Dariusz Gac said, ... rxset sets an ARexx clip, not a variable. Change the last line to Say word(getclip('Var'),18) A more elegant approach is to use...
Hello Neil, ... But still no output in Arexx window :( ... I am checking it out... and, I think, it is not what I am looking for... I just need to know what is...
... Have you checked the content of "ram:Env/output" You can also run "rxset" without arguments (in a shell) to get a list of the clips with their content. Try...
Dariusz Gac said, ... You may not be able to use environment variables by name here. Try replacing the first two lines with rxset Var `info DH0:` ... Which is...
... Another thought: Are you sure you need word 18? What does "say getclip('Var')" print? Be aware that the clipname is case-sensitiv, Var ~= var Bernd...
Hello Bernd, ... Yes, I did... it exists and text string is in... ... And it is what makes miracle ! :) Thanks for help... ... Yes, it works excellent......
Dariusz Gac said, ... You should add setclip('Var') to clear the contents of the clip. Otherwise it will stay in memory until you reboot and may cause problems...
Hello Neil, ... Absolutely right... ... Thanks for tip... btw: Before I use AbsolutePath command do I need activate rexxdosssupport.library ? Btw: There is...
Dariusz Gac said, ... Yes, with the usual addlib() call. ... Do you mean an AmigaOS function? I've not seen a command by that name. Cheers Neil -- In plumbing,...
Hello Neil, ... I just wanted to be sure... ... I've got it from my friend, 564 bytes long, version 37.20 dated on 11. Aug., 1995. On Aminet there is very...
Hiall! Is there a way to get a system link to use the current path settings? I'm trying to launch an executable in my path but it only works if I specify the...
Pete Wason said, ... Does it work if you use a program in one of the standards paths, like C:? You could try adding the path to $AmigaGuide/Path Cheers Neil --...
... I do it like this (for drawers): HistDir = "ram:" /* default path/file */ ADDRESS COMMAND 'RXSET HDir `C:RequestFile TITLE "Select Cache-Directory of...