Re: Append characters to file name to establish uniqueness



almass@xxxxxxxxxxx wrote:
Hello...
I am trying to keep a set of files online and append a character
string to each file in order to establish uniqueness to each file name
and avoid purge. My files would look like this:

TEST.dat
TEST.dat
TEST.dat

I would like to run a com proc that i could run on these files in a
batch that would remame this like this:

TEST1.dat
TEST2.dat
TEST3.dat

Does anyone have any ideas about a method that would help? Thanks in
advance.

TEST.DAT;1 becomes TEST1.DAT;1
TEST.DAT;2 becomes TEST2.DAT;1
etc. It's a SMOP, easily done in DCL, and left as an exercise for the student. I'll be happy to write it for you if you are willing to pay!

It seems to me to be even easier to give the files the desired names in the first place!
.



Relevant Pages

  • Re: file delete routine is intermittent
    ... >> terminator character to every string. ... > Only when you pass a string as a parameter. ... VB does NOT automatically append a null ...
    (microsoft.public.vb.winapi)
  • Re: file delete routine is intermittent
    ... >>> terminator character to every string. ... >> Only when you pass a string as a parameter. ... >> character to string members of structures so you must append the null ...
    (microsoft.public.vb.winapi)
  • Append characters to file name to establish uniqueness
    ... I am trying to keep a set of files online and append a character ... string to each file in order to establish uniqueness to each file name ...
    (comp.os.vms)
  • Re: Pound symbol in a string
    ... > When I use system.IO.StreamWriter to write append a string to file that ... > contains the GBP pound symbol, I notice that it also appends an extra ... Yet when I examine the string character ...
    (microsoft.public.dotnet.languages.vb)
  • Re: awk get length of pattern and append text
    ... I want to look at each line of a file and get the length of a string ... to 1 character in length then append FORENAME1_INITIAL to the end of ... then it must be an initial then append the appropriate text to the end ...
    (comp.lang.awk)