TIP: Click on subject to list as thread! ANSI
echo: batpower
to: ALL
from: `Matt Williamson`
date: 2008-02-11 13:21:14
subject: Re: How To Get Filename Without The Extension!

Path: number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!out04b.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!cycny01.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny07.POSTED!c0b2b03e!not-for-mail
From: "Matt Williamson" 
Newsgroups: alt.msdos.batch,alt.msdos.batch.nt,fidonet.batpower
References: 
Subject: Re: How To Get Filename Without The Extension!
Lines: 70
Message-ID: 
Date: Mon, 11 Feb 2008 13:21:14 GMT
NNTP-Posting-Host: 72.88.77.195
NNTP-Posting-Date: Mon, 11 Feb 2008 08:21:14 EST
Bytes: 2908
Xref: number1.nntp.dca.giganews.com alt.msdos.batch:93253
 alt.msdos.batch.nt:42181 fidonet.batpower:570



> Speaking of working on websites this is old but lots of folks never seen 
> how
> to use FTP with batch files...
>
> Upload.bat:
> ------------------------------------------------------------
> FTP -s:Upload.txt %1.%2.%3.%4.%5.
> ------------------------------------------------------------
> Upload.txt:
> ------------------------------------------------------------
> open ftp.YourSite
> Logon Name Here
> Password Here
> send index.html
> send some.gif
> send some.zip
> bye
> ------------------------------------------------------------
> I guess ya get the picture...
>
> Nice to see the name of Prof. Timo Salmi in here, his DOS programs can be
> handy, with his & Horst Schaeffer's programs you can even get your batch 
> files
> to write batch files, I used to use Concat to copy files side by side but 
> I do
> not remeber what I used those programs for since I did learn how to 
> program
> since then.
> http://www.filegod.netfirms.com
>

Here is my version. Just drag and drop, no limit on the number of files.

@echo off&setlocal
cd /d %~dp0

:: User defined parameters ::
set remhttppath=http^:^/^/websiteaddress^/
set rempath=images/
set site=ftpsite.ftp.com
set port=21
set user=
set pass=

echo open %site% %port%>"%temp%\ftp.tmp"
echo %user%>>"%temp%\ftp.tmp"
echo %pass%>>"%temp%\ftp.tmp"
echo prompt>>"%temp%\ftp.tmp"
echo cd %rempath%>>"%temp%\ftp.tmp"
echo binary>>"%temp%\ftp.tmp"
echo hash>>"%temp%\ftp.tmp"
:loop
if *%1==* goto finish
echo mput %1>>"%temp%\ftp.tmp"
echo %remhttppath%/%rempath%/%~nx1>>"%temp%\ftppath.tmp"
shift
goto :loop
:finish
echo bye>>"%temp%\ftp.tmp"

ftp -s:%temp%\ftp.tmp
notepad "%temp%\ftppath.tmp"
del "%temp%\ftp*.tmp"

SOURCE: echoes via archive.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.