Question for above average programmer - Not for VB -

GgAcE

New Member
Hello.

I was looking into a way to automatically update a link via something similar to a batch file (simply click & go). Now the complete process would be as follows.

Step 1: Pull files from drive A:
Step 2: Copy files to Drive B:

I can do steps 1 & 2 via a batch file. That's not a problem.

Step 3: The files are named by number (1, 2, 3, etc). I would like the script to update my file (txt &/or HTML) to add the latest number.

Example: www . 1 . com
If I ran the script tomorrow, the script would automatically change the file to

www . 2 . com

Then www . 3 . com the following day.

I am using this for a work project & has nothing to do with domains. That was just the easiest way to show the change. If anyone knows of the best way to do this, please let me know.

My skills are: html, php, sql, pearl, & java. If anyone has another language pelase don't hesitate to suggest as I am sure I can make a quick work around none the less.

Thanks for your time.
 
Python or perl allows easy file manipulation. Check some scripts online and you will get the grip on it. I'm not entirely sure what you want the script to do anyway... -.-
 
I need it to pull file A from one server & move it to another server. Then add file A (as a linked path) to lets say an HTML page.

I didn't even think of python. Thank you for the suggestion.
 
use if statements to check if theres been an update and then use the increment property to make it change the pages name. Python and visual basic are great at this but python works better with DOS then VB does. I dont know what language your using but all languages use if statements and the increment property. Hope this helps.
 
Back
Top