View Full Version : How to upload only .htm* files?
Jizar ll
12-09-2001, 12:39 PM
I dont know how i can update alot of .htm and .html files in different directories whithout uploading everything :(
I need an easy way to make changes to my galleries, both free and pay hosted.
Jizar ll
12-09-2001, 02:29 PM
I really hope someone know how this is done:-)
Beaver
12-09-2001, 02:29 PM
you can make a script file that runs from DOS using "ftp.com"
1) make a text file with just one line of text "ftp -s:update.txt" and rename it to "update.bat"
2) next create a text file called "update.txt" and then put your ftp login details as the first 3 lines of text and then include all the upload info in the text file it should look something like this.
.------------------------------------------
open ftp.yourdomain.com
yourusernamegoeshere
yourpasswordgoeshere
cd dirpath (change to the directory to upload to)
mput *.html (mput will upload multiple files)
disconnect (closes ftp session but leaves ftp.com running)
open ftp.anotherdomain.com (logon to another ftp)
yourusernamegoeshere
yourpasswordgoeshere
cd uploaddir (change to the directory to upload to)
mput *.html (mput will upload multiple files)
bye ( closes ftp session and closes ftp.com)
------------------------------------------
all you need to do next is double click the update.bat file to start your automated upload of all your files.
.
Open a DOS window and enter "ftp" then type "help" when the program loads and you will see the list of ftp commands, type help followed by one of the commands for more details eg. "help dir" , you should be able to figure out how to use it and once you do you will never want to use an ftp progy again.
One other important thing is if you want to upload any "non text" files you must add the command "binary" before you can upload the file.
If for some reason you don't like that method then I recommend "FlashFXP" it has an awesome interface and is far more stable than any other FTP proggy I have ever used, you can tag individual files and just drag them into your ftp folder.
Jizar ll
12-09-2001, 02:38 PM
beaver thanks alot man :) great stuff, its a bit complicated but i think i can handle it, the only problem i can se is that my files are in MANY different folders..so it would take some time to add them all..
iŽll take alook at flashFXP too:-)
thanks again:-))
jizar
Beaver
12-09-2001, 03:17 PM
If it looks complicated that's just because I'm not very good at explaining things its really very simple, you can also use it to rotate banners and sponsor links just by using the rename commands.
If you get the proggy FlashfXP .. http://flashfxp.com there is a command called "view raw directory" and it lists all your directories and files as a text file ... that may help you creating an upload script.
It might be a bit of hard work and fiddling about writing the script but once its finished you can update anything you want with a mouse click or you can add the ".bat" files to the windows scheduled tasks list.
Good luck :)
Energy Hosting
12-09-2001, 04:40 PM
Originally posted by Jizar ll:
<STRONG>I dont know how i can update alot of .htm and .html files in different directories whithout uploading everything :(
</STRONG>
FlashFXP is great for uploading multiple files. You can also use SSI or iframe to make changes to many pages by editing only one.
Jizar ll
12-09-2001, 04:48 PM
hi again beaver:-)
i just downloaded flashfxp but i didnŽt find any special features in it though..
so i guess my best go is to use your first explanation with the .bat file I have thought over it but i cant see how i can do it :-(
om my puter i have the same directory structure as on the server (must be a +)
so i have fx
dir:
anal
teen
boobs
where
anal/1/index.html
...
anal/20/index.html
teen/site2/1/index.htm
...
teen/site2/15/index.htm
ect.
this is like for 15different folders with each of their own buildup.. its confusing..hehe i hope you can explain the .bat file with the above ex. ?
regards
Energy Hosting
12-09-2001, 04:49 PM
You can just drag and drop in FlashFXP.
It's really easy.
Open the FTP in one window and your hard drive in the other one and then just pull the directory from your computer to the server.
Jizar ll
12-09-2001, 05:01 PM
energie: if i drag and drop, then i need to open a folder and grap the .html file and drop it in the right location right, and loop this? until i have done all 24234234234 files? or else i dont understand..hehe how it can take only the *.htm* files and place them in the right locations?
Energy Hosting
12-09-2001, 05:55 PM
1) You can tell FlashFXP which files to skip and which to include, it's in the settings.
2) Make the directory structure on your hard drive the same as on your site and simply drag & drop the directory.
Jizar ll
12-09-2001, 06:16 PM
ok cool:-) iŽll see if i can find that filter option.
Beaver
12-09-2001, 07:40 PM
I agree with Energy Hosting last post that will be a really easy way to do it, you might even be able to use the compare folder option so you only have updated files visible for upload.
.
As for FlashFXP not having special features I guess all FTP proggys do pretty much the same thing so its the interface and reliability that counts, FlashFXP is defiantly the most reliable FTP programs I've ever used and the interface will grow on you as you start to use it .
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.