![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

We are trying to execute a function using the shell command ">shell", but we
need to be able to change the working directory that the executable will run
from - this will be imbedded in a turnkey, not operated from the SwiftForth
command line, so using "CD", I believe, does not apply.
Can anyone tell me how to change the working directory from within a
turnkey?
For example, within the turnkey we want to execute a shell command and have
it place the file, junk.txt, in a certain directory. The command below puts
the file in the directory from which the original word was called, not where
we want it. How do we specify that?
s" c:\windows\psftp user_at_mysite.com -pw pass -b c:\windows\input.scr" >shell
;
where c:\windows\input.scr is simply:
get junk.txt
quit
All works fine except the file ends up where my turnkey lives, not where I
want it! I would like to put it in c:\windows, for example.
I hope I am being clear here.
-- Roger
--------------------------------------------
Dr. Roger Dube
President and Chief Science Officer
Digital Authentication Technologies, Inc.
561.392.7404 (office)
561.892.2474 (eFax)
RogerDube_at_datHQ.com
1900 Glades Road Suite 441
Boca Raton, FL 33431
----------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message. Any views expressed in this message are those of
the individual sender, except where the sender specifically states them to
be the views of Digital Authentication Technologies, Inc.
----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Thu May 18 2006 - 11:01:49 PDT
This archive was generated by hypermail 2.2.0 : Thu Dec 04 2008 - 03:04:21 PST