Re: Debugging Help Please! :) File renaming...




"Dakota Interactive" <onebucktraffic@xxxxxxxxx> wrote in message
news:74ae843c-3d34-4cb6-8074-5d8ddbd0da9c@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Sep 13, 2:12 pm, "Pegasus \(MVP\)" <I....@xxxxxxxxxx> wrote:
<onebucktraf...@xxxxxxxxx> wrote in message

news:5e1841f9-2082-4583-8b4f-3930157b6bf4@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Thanks for reading this.

This code segment is part of a larger script that moves PST files so
that they are accessible to users anywhere in the network. The rest of
the script works but this is making me nuts. This is supposed to
determine if two or more files have the same name, and if so, rename
them to include the file dat or timestamp as well. It doesn't work.
Can some offer some guidance?

DI

How can you have two files of the same name in the same folder?

They do not originate from the same folder, but they will end up in
the same folder and therefore need different names.
===========
This is what I suspected but so far I am unable to see the flow of your
logic. You wrote "If two or more files have the same name". This implies
that you must perform a comparison, then take appropriate action if two
names are the same. I am unable to see any code in your script that performs
this file name comparison.


.



Relevant Pages

  • Re: Shortcut to network folder in Explorer
    ... Thanks for all your help William. ... >>> to the network places folder. ... >> need a script. ...
    (microsoft.public.windowsxp.customize)
  • Re: Shortcut to network folder in Explorer
    ... >>> Hi William, ... >> Explorer with switches to change the default views and folder locations. ... >> to the network places folder. ... You will need to write a script to do this because XP will just tell you the ...
    (microsoft.public.windowsxp.customize)
  • Re: code to copy files
    ... This is better done in the network login script. ... Put your Add-In in a network folder (not the ... Can I do something similarly in VBA code? ...
    (microsoft.public.word.vba.general)
  • Re: Script to close open files in a folder?
    ... about which machines the script will actually have to run on, ... I am essentially using solution you just suggested; the second folder ... happens to be on my PC (not on the server) and I'm manually overwriting ... the network administrator who in turn uses MMC to determine which IP ...
    (microsoft.public.scripting.vbscript)
  • Re: Script to close open files in a folder?
    ... about which machines the script will actually have to run on, ... I am essentially using solution you just suggested; the second folder ... happens to be on my PC (not on the server) and I'm manually overwriting ... the network administrator who in turn uses MMC to determine which IP ...
    (microsoft.public.scripting.vbscript)