Facebook Badge

Thursday, October 8, 2009

How to copy index.thml file to the root directory for LiteCommerce CMS

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.

Monday, October 5, 2009

HTML Catalog and Dead link on pager in LiteCommerce software

How I fix dead links:
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:

del /q catalog\*.*
FTP -v -i -s:catalog-download.txt
"C:\Program Files\Rat\Rat.exe" -Cc:\handicrafts\catalog-update.cfg -G -Kc:\handicrafts\catalog -A_page_0.html -B.html -R -X
FTP -v -i -s:catalog-upload.txt


And this bat file line by line with comments and examples of config files:
del /q catalog\*.*
I just delete files downloaded in the previous session
catalog directory is for html files

FTP -v -i -s:catalog-download.txt
Downloading category html pages by windows command line ftp command
Where catalog-download.txt is the list of ftp commands:
open your-site.com
ftpaccount
ftppassword
!:--- making active the local pc directory for downloading html files---
lcd c:\deadlink-cleaning\catalog
cd catalog
mget category*
disconnect
bye


"C:\Program Files\Rat\Rat.exe" -Cc:\deadlink-cleaning\catalog-update.cfg -G -Kc:\deadlink-cleaning\catalog -A_page_0.html -B.html -R –X
Using RAT application for with command line options for fixing dead links

FTP -v -i -s:catalog-upload.txt
Uploading category html pages by windows command line ftp command
Where catalog-upload.txt is:
open your-site.com
ftpaccount
ftppassword
!:--- making active the local pc directory for downloading html files---
lcd c:\ deadlink-cleaning\catalog
cd catalog
mdelete "category*.*"
mput *
disconnect
bye


I use the bat file under admin account for avoiding error message for RAT application.

This is it.
Just use bat file and dead links will be killed :)

Write me if you have any difficulties.