English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

is there a way to save one file (like a .html or .gif) with several other names (same content in each file)?

2007-02-20 07:42:06 · 6 answers · asked by eyeseeparis 1 in Computers & Internet Programming & Design

is there a way to do it automatically (not file by file).
For htmls, I was thinking about Xalan (to generate html files with xml/xslt) but there should be a simpler way or maybe a software.

2007-02-20 07:55:55 · update #1

6 answers

One of the easiest things to do:

Open the file
click File
cl Save as
in the Save As dislog box there are three things to look out for:

1. Save in: this is the directory where you want to save
2. Filename: give it a new name
3. File type: be sure it is the correct type
click Save

Look at the title bar. It will reflect the new name. The original is right where it was.

2007-02-20 07:49:45 · answer #1 · answered by TheHumbleOne 7 · 0 0

Im sure you have your reasons for having 400 copies of the same file so whatever.
Try this:
1. After you have created the first file and saved it to a folder, open that folder.
2. Right click on the file and select "copy"
3. Unselect that file and right click on a blank area (not a file) and select "paste". You will now have a file that begins with "copy of..."
4. Press [Ctrl+V] four or five times and you will have multiple copies of the file with a number in it.
5. Hightlight all of the files that have a number in them (copy (6) of...) and copy those [Ctrl+C].
6. Press [Ctrl+V]. You will now have twice as many files and again maintaining the numerical counts.
7. Repeat the steps a couple times untill you get to 400.

Hint = create 10 and paste those 10 times to get 100. Then copy those 100 and paste them 4 times.

The only thing that is not perfect here is the naming convention. But this can be solved with a Renaming software. Here is one that appears to be free and quite robust. http://www.stintercorp.com/br.php
Or, do a search for "batch rename"

Okay... hope that helps

2007-02-20 09:19:02 · answer #2 · answered by 1opinion 2 · 0 0

I'm guessing you've moved your website and you want to put redirection pages in place to point surfers to it's new location.

You can do this with a batch file. Just create a text file and save it renameall.bat. In the file enter the following command:

for %%v in (*.html) do copy base\template.html %%v

Now create a folder called base, and place the html file you want copied in there, calling it template.html. Now go back a level to where the batch file is, double click on the renameall.bat file, and all the files in the current directory will be overwritten by the template.

2007-02-20 10:08:51 · answer #3 · answered by Neil M 2 · 0 0

If you are using unix, and know how to write a shell script. Then just make a shell that will take in a filename as an arguement and then just make copies with different names.

(Could also create a perl program that does the same by using back ticks)

2007-02-20 08:34:17 · answer #4 · answered by rsmith985 3 · 0 0

Someone has to ask the question so here goes.

WHY do you want to copy a file several times?

It seems that you have a problem with your procedural logic!!

2007-02-20 08:08:56 · answer #5 · answered by AnalProgrammer 7 · 0 0

there is a way .... but m not sure if it's the right one ...

2007-02-20 07:48:17 · answer #6 · answered by sk8er o 1 · 0 0

fedest.com, questions and answers