View previous topic :: View next topic
|
Author |
Message |
km_madhu111
New User
Joined: 27 Jul 2005 Posts: 4 Location: Danbur, CT
|
|
|
|
I'm trying to FTP multiple files to different directories on a server but, it fails. Can someone help me fix this?
Sample:
-----------
ipaddr
username
pwd
cd aaa\bbb\ccc\ddd
put xxx.yyy.zzz xxx.txt
cd aaa\bbb\ccc\mmm
put ppp.qqq.rrr rrr.txt
quit |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
We're going to need a whole lot more details ...
If there are error codes being generated, you'll need to post them, along with their description and the suggested resolution. If the FTP process is failing on the server, not on the mainframe, then you'll need to resolve the problem(s) at that level. |
|
Back to top |
|
|
km_madhu111
New User
Joined: 27 Jul 2005 Posts: 4 Location: Danbur, CT
|
|
|
|
I don't know if it could be a problem with the mainframe or the server coz, everytime I split them and run, the RC=0.
The problem arises only when I club them both into one FTP card. Even then, the first part goes thru completely. It even executes cd aaa\bbb\ccc\mmm but, when it tries to execute the 'put' statement after that it says 'the path is not found'. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
If you change directory the first time to:
aaa\bbb\ccc\ddd
then that would make the working directory aaa\bbb\ccc\ddd.
If you change directory a second time to:
aaa\bbb\ccc\mmm
then wouldn't that make the current working directory aaa\bbb\ccc\ddd\aaa\bbb\ccc\mmm? |
|
Back to top |
|
|
km_madhu111
New User
Joined: 27 Jul 2005 Posts: 4 Location: Danbur, CT
|
|
|
|
Oh OK. Got it. But, if I wanna make aaa\bbb\ccc\ddd to aaa\bbb\ccc\mmm then how do I do it? |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
put a \ in front of the whole path on the CD command
cd \aaa\bbb\ccc\ddd
put filea
cd \aaa\bbb\ccc\mmm
put fileb |
|
Back to top |
|
|
km_madhu111
New User
Joined: 27 Jul 2005 Posts: 4 Location: Danbur, CT
|
|
|
|
Thanks a lot. It worked!! |
|
Back to top |
|
|
|