?
Solved

Get the stat after retreiving using the Core FTP lite

Posted on 2011-05-13
5
Medium Priority
?
585 Views
Last Modified: 2012-05-11
How can i add in bat file or script to download the stat file in Core FTP
cd "C:\Program Files\CoreFTP"
Coreftp.exe -s -site NuBridgeFTP -d /$TCI39.#RMT/Inbox/:EDINET/ -p C:\ediftp\Inbound\Processing\ Use:-s -output c:\ediftp\logd.txt
0
Comment
Question by:tvae
  • 3
  • 2
5 Comments
 
LVL 6

Accepted Solution

by:
Dangle79 earned 1000 total points
ID: 35754206
you can create a shell object and pass it a command to run.
the 0 and TRUE at the end of the second line set the window style and whether or not the script execution halts until the command has finished.

all the variable options for the window style can be seen here
http://msdn.microsoft.com/en-us/library/d5fk67ky%28v=vs.85%29.aspx
Set objShell = CreateObject("WScript.Shell")
objShell.Run "C:\Program Files\CoreFTP\coreftp.exe -s -siteNuBridgeFTP -d /$TCI39.#RMT/Inbox/:EDINET/ -p C:\ediftp\Inbound\Processing\ Use:-s -output c:\ediftp\logd.txt", 0, TRUE

Open in new window

0
 

Author Comment

by:tvae
ID: 35771339
Dangle79,

What i need is to download the stat from the ftp site so they will know that the data has completely download.
0
 
LVL 6

Expert Comment

by:Dangle79
ID: 35771356
is that done by running the command you cited?
0
 

Author Comment

by:tvae
ID: 35815940
it is in a command line and callng the Core FTP and running the profile. I need to include that it will also download the stat
0
 
LVL 6

Expert Comment

by:Dangle79
ID: 35815995
If it's a repetitive thing (the command doesn't change each time) then this would work. These two lines just create a command shell environment (a black DOS window) and then pass it a command string exactly as typed. it could be a ping command, a move, a copy, anything (mostly) you'd run from a command window. You can run multiple commands sequentially by just replicating the second line.

essentially, if you're completing this process by manually typing the command, you can automate it with this.
Set objShell = CreateObject("WScript.Shell")
objShell.Run "INSERT COMMAND STRING HERE", 0, TRUE

Open in new window

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

TOMORROW TOMORROW.BAT is inspired by a question I get asked over and over again; that is, "How can I use batch file commands to obtain tomorrow's date?" The crux of this batch file revolves around the XCOPY command - a technique I discovered w…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question