Is it possible in vbs to make windows explorer or stritcly by vbs to reanme
the last file written to a specfic name

I got this app that writes a funky extension .inf.1 inf.2 inf.3 etc...
adding them up each time you enter in this curse of a text editor
it's giving me the info i need from the main app... but i don't know what
filename.inf.? number will be there

if I could rename it to a standard ext then I could access it a lot better
with automation

so file <last one > rename to anything.txt ???

Re: renaming the last file written by Jon

Jon
Fri Jun 24 17:36:44 CDT 2005

Oh and you need to use the filesystem object to perform any file related
operation ... eg renaming.

And another suggestion is you could perform a search for *.inf.* files and
then use a mid() or right() or similiar function to get the number fo the
file. But this is only if i've understood correctly. You could also do a
search for modification / creation time if you don't know what the filename
is aswell as a *.inf.* search

--
Jon
warpedpixel@gmail.com
Look at that dead pixel on your screen! *SLAP* Gotcha!

"cadcamguy" <piearesquared2@NOSPAMyahoo.com> wrote in message
news:%23%23l7nFOeFHA.3836@tk2msftngp13.phx.gbl...
> Is it possible in vbs to make windows explorer or stritcly by vbs to
> reanme
> the last file written to a specfic name
>
> I got this app that writes a funky extension .inf.1 inf.2 inf.3 etc...
> adding them up each time you enter in this curse of a text editor
> it's giving me the info i need from the main app... but i don't know what
> filename.inf.? number will be there
>
> if I could rename it to a standard ext then I could access it a lot better
> with automation
>
> so file <last one > rename to anything.txt ???
>
>



Re: renaming the last file written by Jon

Jon
Fri Jun 24 17:41:30 CDT 2005

Here was the first post ... i sent it the person by mistake instead of the
group! :op

U can easily rename a file ... but without being able to know what it is you
can't.

You could use a variable or similar to store the name of the file and when
you want to rename it this would contain the name of the last written file
??

--
Jon
warpedpixel@gmail.com
Look at that dead pixel on your screen! *SLAP* Gotcha!

"cadcamguy" <piearesquared2@NOSPAMyahoo.com> wrote in message
news:%23%23l7nFOeFHA.3836@tk2msftngp13.phx.gbl...
> Is it possible in vbs to make windows explorer or stritcly by vbs to
> reanme
> the last file written to a specfic name
>
> I got this app that writes a funky extension .inf.1 inf.2 inf.3 etc...
> adding them up each time you enter in this curse of a text editor
> it's giving me the info i need from the main app... but i don't know what
> filename.inf.? number will be there
>
> if I could rename it to a standard ext then I could access it a lot better
> with automation
>
> so file <last one > rename to anything.txt ???
>
>