SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
FTP file exist

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
FTP file exist
Author Message
Kevin H



Joined: 04 Oct 2004
Posts: 13

Post FTP file exist Reply with quote

Hello,

I'm using this command straight out of the examples except for one thing. The file is down a couple subdirectories.

FTPFileExists( "10.10.10.109", "ftp", "ftp", "/AMTSIN/IAP/*.*", found )

There are files in the directory, but the found var is being set to false when I debug it.
Is my path ok?

If I don't use subdirectories and just search the root for a file it works ok. I've tried using forward slashes but that didn't help.

Thanks for your help!

Mon Oct 04, 2004 3:05 pm View user's profile Send private message
Kevin H



Joined: 04 Oct 2004
Posts: 13

Post Re: FTP file exist Reply with quote

Nevermind, I found the error. Don't need the first slash.
But now when I try to download a file, I get another error message.
My line is this:

FTPGetFile( "10.10.10.109", "ftp", "ftp", "AMTSIN\IAP\new_sec_1004.1334.csv", "d:\batchtestarea\new_sec_1004.1334.csv" )

The error message I get is:
An error occured while executing 24x7 script.
Line 13: Download failed for "", Error code 123.

Any ideas?

Thanks!!

: Hello,

: I'm using this command straight out of the examples except for one thing. The
: file is down a couple subdirectories.

: FTPFileExists( "10.10.10.109", "ftp", "ftp",
: "/AMTSIN/IAP/*.*", found )

: There are files in the directory, but the found var is being set to false
: when I debug it.
: Is my path ok?

: If I don't use subdirectories and just search the root for a file it works
: ok. I've tried using forward slashes but that didn't help.

: Thanks for your help!

Mon Oct 04, 2004 3:29 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: FTP file exist Reply with quote

Try

FTPGetFile( "10.10.10.109", "ftp",
"ftp", "AMTSIN\\IAP\\new_sec_1004.1334.csv",
"d:\\batchtestarea\\new_sec_1004.1334.csv" )

For details please read about handling of "Special ASCII characters" FAQ in the on-line help file.

: Nevermind, I found the error. Don't need the first slash.
: But now when I try to download a file, I get another error message.
: My line is this: FTPGetFile( "10.10.10.109", "ftp",
: "ftp", "AMTSIN\IAP\new_sec_1004.1334.csv",
: "d:\batchtestarea\new_sec_1004.1334.csv" )

: The error message I get is: An error occured while executing 24x7 script.
: Line 13: Download failed for "", Error code 123.

: Any ideas?

: Thanks!!

Mon Oct 04, 2004 5:21 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.