I use free utility for text changing in category html files and windows command line commands for downloading and uploading files.
Free utility for text changing you can download here: http://www.gidsoftware.com/free.htm
You need RAT Replace Ascii & Text Utility
The main file is bat:
index-modificate.bat
del index-file\index.html
FTP -v -i -s:index-download.txt
"C:\Program Files\Rat\Rat.exe" -Cc:\index-modificate\phrase1.cfg -F -Kc:\index-modificate\index-file -R -X
"C:\Program Files\Rat\Rat.exe" -Cc:\index-modificate\phrase2.cfg -F -Kc:\index-modificate\index-file -R -X
"C:\Program Files\Rat\Rat.exe" -Cc:\index-modificate\phrase3.cfg -F -Kc:\index-modificate\index-file -R -X
"C:\Program Files\Rat\Rat.exe" -Cc:\index-modificate\phrase4.cfg -F -Kc:\index-modificate\index-file -R -X
"C:\Program Files\Rat\Rat.exe" -Cc:\index-modificate\phrase5.cfg -F -Kc:\index-modificate\index-file -R -X
"C:\Program Files\Rat\Rat.exe" -Cc:\index-modificate\phrase6.cfg -F -Kc:\index-modificate\index-file -R -X
FTP -v -i -s:index-upload.txt
And this bat file line by line with comments and examples of config files:
• del index-file\index.html
I just delete index.html file downloaded in the previous session
• FTP -v -i -s:index-download.txt
Downloading index.html file by windows command line ftp command
Where index-download.txt is the list of ftp commands:
open your-site.com
ftpaccount
ftppassword
!:--- making active the local pc directory for downloading html file---
lcd c:\index-modificate\index-file
cd catalog
mget index.html
disconnect
bye
• "C:\Program Files\Rat\Rat.exe" -Cc:\index-modificate\phraseX.cfg -F -Kc:\index-modificate\index-file -R -X
Using RAT application for with phraseX.cfg config file option where
I use 6 different config files for 6 phrases like I posted already above:
href="category
to
href="catalog/category
FlyoutCategories
to
catalog/FlyoutCategories
src="images
to
src="catalog/images
../
to
/
'category
to
'catalog/category
href="style
to
href="catalog/style
All phrases created in separate config files via RAT application interface
• FTP -v -i -s:index-upload.txt
Uploading index.html page by windows command line ftp command
Where index-upload.txt is:
open your-site.com
ftpaccount
ftppassword
!:--- making active the local pc directory for downloading html file---
lcd c:\index-modificate\index-file
cd catalog
delete index.html
put index.html
disconnect
bye
I use the bat file under admin account for avoiding error message from RAT application.
This is it.
Subscribe to:
Post Comments (Atom)
Isn't there a way to change the path of where the index file is generated? I want my index file to be built in the root with all the necessary pages.. Howcome this is so complicated?
ReplyDeleteIdex file generates in the /catalog/ folder and I do not see any necessities to modify php code if I can use the bat script for the same function and if the script is already tested and works correctly
ReplyDeleteHello there. I discovered your web site by way of Google while looking for a similar matter, your website came up. It appears good. I’ve bookmarked it in my google bookmarks to visit then.
ReplyDeletewall hangings