Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Command Line ftp switch for overwrite option

Posted on 2006-11-14
6
Medium Priority
?
828 Views
Last Modified: 2012-06-27
Hi Experts.

I am running an automated ftp upload out of hours on a scheduled task from a Win2k server to my home server.
I am using this text file run from a batch file:

open myftp.server.com
my_username
my_password
bin
prompt
mput *.zip
bye

Is there a switch that I can add to only upload if the files are newer (like in xcopy).

Thanks

Nick
0
Comment
Question by:Nick Denny
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 43

Accepted Solution

by:
Steve Knight earned 400 total points
ID: 17941196
The obvious way I can think of doing its to use xcopy...

xcopy source to a second local dest dir with /d and the capture the list of files it copies then use that to produce the ftp script with individual entries.

Can't write it right now but maybe that will givw you a clue to one way...
0
 
LVL 13

Author Comment

by:Nick Denny
ID: 17941341
Thanks dragon-it.

Good call.
If the plain answer to the question is no - then I will have to go with something like that or I have other options.
At present one of the files is about 80MB and growing (but it doesnt change over the weekend and neither do the others). So I was thinking rather than tinkering with the sheduler, there may be a simple switch.
The no-brainer answer is to schedule just Mon-Fri.
Also, I could move files on my home server Mon - Fri, then deny permissions to overwrite.
If the answer is indeed "no" - could you confirm this please and you have the points.

Bottom line is - I couldnt find a switch and just wondered if there was one.

Cheers

Nick
0
 
LVL 30

Assisted Solution

by:SteveGTR
SteveGTR earned 100 total points
ID: 17941547
There is no FTP switch that I know. dragon-it is correct.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 43

Expert Comment

by:Steve Knight
ID: 17941667
Is it worth me putting a script like that together for you - I.e. a second holding area on the source server or is that impratical / not wanted.

Steve
0
 
LVL 13

Author Comment

by:Nick Denny
ID: 17945567
Thanks for the offer but I would only be asking you to do something I could work around easily.
Really appreciate the offer though.
Thanks again
Nick.
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17945580
Ok, thanks for the answer / points

Steve
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

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…
Being a system administrator some time we require to do things remotely, one of them is installing software. Here I am going to tell you how to install software through wmic (Windows management instrument console). I am not at all saying that this i…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

715 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