I am trying to enter the connection directory and entry name inside a script.
Can anyone give me any ideas?
Current directry Script name
Want to use DATA, Central, Central
Was:
dialnumber DATA sznumber
Tried:
dialname DATA Central 1 Central
dialnumber DATA szNumber
Any ideas would help.
---- Posted via Deja News ----
-- Visit the Procomm Plus / Aspect Script community
-- http://www.dejanews.com/~procomm
You can use the dialload command to load a specified Connection Directory
within your script. The format is:
dialload DirName
where DirName is either a Connection Directory name enclosed in double quotes,
or a string which contains the name of the Connection Directory. You can
include a path to the Connection Directory if it is not in the main Procomm
Plus directory.
I'm not sure what you are trying to do with the dialname and dialnumber
commands. If you know the name of the entry you want to dial and have the
correct Connection Directory loaded, you can dial a specific entry by using:
dial DATA Entry
where Entry is either the entry name enclosed in double quotes or a string
that contains the name of the entry. Let me know if I am trying to do
something differently than you are.
I tried
diaload "DirName\myentry"
and
dial "DirName\myentry"
none of them works
thanks
Ben
In article <7dcqi6$r9t$1...@nnrp1.dejanews.com>,
Almost. You have the dialload command correct, but you need to specify what
connection type to use with the dial command. Your example above should be:
dial DATA "myentry"
assuming you are trying to dial a data number.
This part I have and it worked. But, if I go into Procomm and do Current Dir
and select Direct. Then next to it I select the Callit script. THe call goes
out and uses the callit script.
How would I do these manual steps with a script. I am using the "dial DATA
"myentry" " to make the call. ??
Are you saying that you want the Callit script to run automatically when you
dial "myentry" in an ASPECT script? If so:
1. Open the Connection Directory.
2. Click on the Data tab if it is not current selected.
3. Select "myentry"
4. Click on the Basic Options button.
5. In the lower right corner, select the "Callit" script in the Script drop-
down listbox.
By default, the script will run after the connection has been made. If you
need the script to run before the connection is made, click on the Setup
button just to the right of the Script listbox and make the change.
You won't need to make any changes to your script for this to work. However,
this change means the Callit script will run whenever you dial myentry, either
via the ASPECT script or by selecting myentry in the Connection Directory.
since I dont know the absolute directory before hand, chdir wont work
directly. How can I do these?
thanks a lot for any tip.
Benjamin
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
sendfile xmodem "c:\procomm\dti.trn"
although the transmission window showes up, with
Sending dti.trn
Byte count:
corrections: 0
Transfer Status: 0
Bytes/second:
Time remaining:
File Length 6263 Bytes
But the file is not really transfered, with 'Percent Complete' staying at 0%.
Can anyone give me a hint on where the problem may resides?
thanks
How do you find out what directory you need to access? I'm not sure if this
will work for your purposes, but the chdir command can use arguments like .. \
and \date. I wrote a test script that used chdir to set the current directory
to D:\temp and then changed to various directories. Here are the commands I
used:
chdir ".." --- changed directory to parent of current directory
chdir "\" --- moved to root directory of current drive
chdir "\data" ---changed directory to \data
One command you'll want to know about is getdir. This command can tell you
the current directory for each disk drive on the system, or the current
working directory. Hopefully, that will let you do what you need.
The problem probably is that you are not telling the remote system to prepare
for an XMODEM transfer. Since XMODEM is not an auto-start file transfer
protocol like ZMODEM or Kermit, you need to tell the remote system to get
ready for the file transfer. This varies from system to system, but you'll
probably need to issue a command of some sort, such as sending a "U" for
upload followed by an "X" for XMODEM, followed by a filename perhaps. Hope
this helps!
actually, I tried chdir("\.."), which etc, just not your chdir(".."), which
solved my problem.
best Regards
Benjamin
In article <7e3hkd$8c9$1...@nnrp1.dejanews.com>,
John Schultz <jsch...@mail.coin.missouri.edu> wrote:
> In article <7du21b$gkl$1...@nnrp1.dejanews.com>,
> zh...@fisci.com wrote:
> > Since the files to be transfered are in a different directory as the \aspect
> > directory where the scripts are located, typically in a paralell directory,
I
> > need command to do like "cd..", "cd\", "cd \data" in DOS.
> >
> > since I dont know the absolute directory before hand, chdir wont work
> > directly. How can I do these?
>
> How do you find out what directory you need to access? I'm not sure if this
> will work for your purposes, but the chdir command can use arguments like .. \
> and \date. I wrote a test script that used chdir to set the current directory
> to D:\temp and then changed to various directories. Here are the commands I
> used:
>
> chdir ".." --- changed directory to parent of current directory
> chdir "\" --- moved to root directory of current drive
> chdir "\data" ---changed directory to \data
>
> One command you'll want to know about is getdir. This command can tell you
> the current directory for each disk drive on the system, or the current
> working directory. Hopefully, that will let you do what you need.
>
John:
thanks for your hints. Do you mean that I should use a command like:
transmit "UX^M" ? where do I find such info for specific platform?
The other side is a VAX server, which has a programm triggered when my Procomm
script login to the system and receives the file. The program starts, but the
file never gets over the link.
I am new to PC communication programming, how can I know which protocol is
best for me to use, does the terminal mode play a role?
Thank you so much for your time and expertise !
Ben
If UX followed by a carriage return is what the system is looking for to
start an XMODEM transfer, then that is what you need to send before telling
Procomm to send a file. The best way to find what a particular system
requires is to talk to the system administrator or someone else in charge of
the system. Some systems, such as bulletin board systems, display the
commands they accept in a menu.
> The other side is a VAX server, which has a programm triggered when my Procomm
> script login to the system and receives the file. The program starts, but the
> file never gets over the link.
>
> I am new to PC communication programming, how can I know which protocol is
> best for me to use, does the terminal mode play a role?
The biggest key to determining what transfer protocol to use is what
protocols the other system offers. In my opinion, the best protocol to use
is ZMODEM, followed by Kermit. Another thing to keep in mind that many
transfer protocols require an 8-bit path between both systems. If you telnet
to a system, you usually have a 7-bit path between the two machines. In this
case, Kermit may be a better choice, although some Unix versions of Zmodem
can work over a 7-bit path if started with the correct flag (-e I believe).
If neither Kermit or ZMODEM is available on the system you are transferring
files to, the list of protocols in descending order looks something like
YMODEM, XMODEM CRC, and plain XMODEM.
...
getfile xmodem "dti.sta"
the file transfer status window showes me "timeout", but the file does arrive
correctly. This "timeout" msg is annoying for users, how can I solve this
problem? Or can it be suppressed? Do I have an option to extend the timeout
value?
Thanks