[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remote Control



OK, I have solved the problem and can do what I want to do.  I just need to 
be able to do it a little more conveniently.

Here is the QBasic remote location code:

CLS
ON TIMER(1) GOSUB DoIt
TIMER ON
DO UNTIL hfo = 1
LOOP



DoIt:
OPEN "relay.txt" FOR INPUT AS #1
INPUT #1, a$
'here read relay.txt and use it to select which of a series of SHELL 
commands to run
SELECT CASE a$
CASE HomeRA
SHELL "Run program to home RA"
CASE StartRun
SHELL "Run program to start run"
CASE  ...
.
.
.
END SELECT
CLOSE #1
RETURN

This is all the code that it takes to run what I want at the local 
location.  Now all I need to be able to do is to transfer a file to the 
remote computer from a DOS command line statement.  I have tried:

copy relay.txt g:\directory\subdirectory\relay.txt

(The disk drive is c: at the remote location but I have assigned it the 
letter g: in the network)

This does not work.  It says "invalid drive specification"

I suspect that all I need to know is the proper command line protocol to 
transfer a file.  Any help?

I just have a few simple things that I want to do.  Note that I can make it 
work now by dragging and dropping files in Windows Explorer.  This is a 
pain as it requires constant copies and renames to do what I want to do.

Tom Droege