Well, technically it's possible if your remote host (server) is
running under Windows platform. If it's under Linux/Unix then AFR
would not run there.
You should simply upload AFR to remove server. But previously you
should turn and test AFR very carefully on your local computer.
Basic highlights of what should you do:
For turning and testing purposes download all your pages to your local
computer. For example, into:
create scripts directory:
It should be perfect if you have IIS or Apache (the same web server as
on your remove host) on your local computer so you could test it carefully.
so copy afr.exe and default.cfg into c:\InetPub\wwww\scripts
Try to run it manually:
Set "search path" to c:\InetPub\wwww\
Set needed file masks.
Specify operation and search for/replace with pairs.
Very important: uncheck "Confirm before replace/batch replace"
parameters and "Make text preview" option. If you have "confirm before
replace" checked on then when the program runs on remove server it
will display dialog on remote server asking for confirmation. I you
could not "press OK" on remote server. This is a most important thing
why it is not advised to run the program on remote server.
So verify now that program works correctly.
after that create BAT file. for example start.bat
and you will call AFR using this file. put start.bat into c:\InetPub\wwww\scripts\
inside start.bat you should put needed text:
afr -execute:replace -searchfor "Hello World" -replacewith Hi -config -min -exit
Very important: you should always specify -exit parameter. Because
the program should be automatically closed on remote server.
Read more about command line parameters here:
So you have to give access right to execute scripts in c:\InetPub\wwww\scripts\
Then you can make "Complete Local Test" of you local configuration:
You may run script:
If everything was turned fine the program should run normally.
Then you may upload afr.exe, default.cfg and start.bat onto remote host into
scripts directory. You should give rights to start the applications in
scripts folder. Set correct search path in your default.cfg because
search path in remove host is different.
So theoretically it will work. It's recommended to spend some time for
setup if you are going to run such scripts quite often.
But if you need it just once: I would download all pages on local
site, replace it and then I would use Abacre Web Site Uploader which
uploads only needed pages on remote host.
It's quite strange how do you want with your site? Because it it
normal practice to work with web pages locally and then upload it
using synchronization utilities like Abacre Web Site Uploader.