Creating, Editing, Renaming Files

August 1, 2011 at 09:47:32
Specs: Windows Server 2003
Im having some trouble with a batch file.. Very Rusty....

Here is my scope of the project. I have to create 18 Million Web pages that are almost identical except a few variables.

Step 1: Im trying to run a test on just one variable to get everything working like I want.

Step 2: I need to build all 18 Million variables into a batch file to finish the project.

Here is my step 1 so far. The issue is the ECHO line doesnt work.

md "G:\My Web Sites\ServiceBidPro\NEW_XPS\Power_Washing\Power_Washing_South_Boston"
@CON >>  "G:\My Web Sites\ServiceBidPro\NEW_XPS\Power_Washing\Power_Washing_South_Boston\mytest.TXT"
echo "<%Service= "Power-Washing" City=Danville%>"  >> "G:\My Web Sites\Servicebidpro\NEW_XPS\Power_Washing\Power_Washing_Danville\Power_Washing_Danville\Mytest.TXT"
ren G:\My Web Sites\ServiceBidPro\NEW_XPS\Power_Washing\Power_Washing_South_Boston\mytest.TXT mytest.asp


See More: Creating, Editing, Renaming Files

Report •


#1
August 1, 2011 at 10:44:49
Here is my scope of the project. I have to create 18 Million Web pages that are almost identical except a few variables.
This is where Perl, ASP, or any of the server side web languages shine.

The issue is the ECHO line doesnt work.

echo "^<%Service= "Power-Washing" City=Danville%^>"  >> "G:\My Web Sites\Servicebidpro\NEW_XPS\Power_Washing\Power_Washing_Danville\Power_Washing_Danville\Mytest.TXT"

How To Ask Questions The Smart Way


Report •

#2
August 1, 2011 at 10:54:13
Razor,

Thanks for the help..

Apparently that is not the only issue after adding a few pauses so I can watch the process run 1 by 1 to make sure they succeed. It appears the @con has an issue as well..

Can you please just review the complete 4 lines and make sure they are correct? Here is the edited version per your last reply.

Creating, Editing, Renaming Files   
Kurt Lynch August 1, 2011 at 09:47:32 Pacific
Windows Server 2003


--------------------------------------------------------------------------------
Im having some trouble with a batch file.. Very Rusty....

Here is my scope of the project. I have to create 18 Million Web pages that are almost identical except a few variables. 

Step 1: Im trying to run a test on just one variable to get everything working like I want. 

Step 2: I need to build all 18 Million variables into a batch file to finish the project.

Here is my step 1 so far. The issue is the ECHO line doesnt work.


md "G:\My Web Sites\ServiceBidPro\NEW_XPS\Power_Washing\Power_Washing_South_Boston"
@CON >>  "G:\My Web Sites\ServiceBidPro\NEW_XPS\Power_Washing\Power_Washing_South_Boston\mytest.TXT"
echo "^<%Service= "Power-Washing" City=" Danville"%^>"  >> "G:\My Web Sites\Servicebidpro\NEW_XPS\Power_Washing\Power_Washing_Danville\Power_Washing_Danville\Mytest.TXT"
ren G:\My Web Sites\ServiceBidPro\NEW_XPS\Power_Washing\Power_Washing_South_Boston\mytest.TXT mytest.asp 


Report •

#3
August 1, 2011 at 11:02:50
I failed to mention which Im sure you figured out on your own by the filename LOL..

This website is completely built on ASP but Im lost on what action to take.

The current setup of the site is the URL uses the ?GET method and Google is not indexing nor giving the ?GET pages PR exclusively.

So I figured I would do a mass page creation using a few SESSION variables and an <!---include--> file based on links clicked which will eventually lead you to the proper page (One of the 18M Im about to create..

If you have a better idea feel free to suggest it. Im dreading this process Im currently on but its the only way I can figure out to resturcture the url path for gogle to accomplish this besides create mass pages 1 by 1 manually.


Report •

Related Solutions

#4
August 1, 2011 at 13:33:27
If you're using GET data, just create a Site Map somewhere, and spend half an hour making it not horrible. Point Google to that, and it should search and index everything linked to that page.

If you haven't already, I suggest looking at what Google has to say on the subject in general.

How To Ask Questions The Smart Way


Report •


Ask Question