Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. electricwizard84

    For Each command skipping over some files

    I have updated my script with the solution from jges and it now works perfectly. Thanks again!
  2. electricwizard84

    How to limit changes to filename syntax to first 9 files only

    Thank you very much for the link and your summary. This is much appreciated.
  3. electricwizard84

    How to limit changes to filename syntax to first 9 files only

    Hi Guitarzan, Thanks very much for this. I still don't understand how it stops the leading zero after E10 (i thought it would simply go E010...) but it works a treat. I will now look into the dictionary object as per your other comment to scan the files first then rename from the array...
  4. electricwizard84

    How to limit changes to filename syntax to first 9 files only

    Dear all, Please note that in the sample script above, i was focusing on making any filename changes to the first 9 files. Therefore, replacing "good" with "test" is merely an example.
  5. electricwizard84

    How to limit changes to filename syntax to first 9 files only

    Dear all, This thread is related to another thread i have just posted (For Each command skipping over some files), but refers to a different problem. For convenience, i have created two separate scripts with the aim of embedding elements of this script below to the main script in the first...
  6. electricwizard84

    For Each command skipping over some files

    Dear all, I have developed a simple script to rename the filename of a video file according to the TV show name, Season No., Episode number and file extension. The script then renames all files in the directory and increments the episode number by one. For example, the first video is renamed...
  7. electricwizard84

    Read filenames from a text file, match to folder and copy

    I've figured out the problem! When the program is checking to see if the filename.avi exists in the root folder, it does not check subfolders. Is there a way how to improve to code so as to allow this?
  8. electricwizard84

    Read filenames from a text file, match to folder and copy

    Hi Geates, Thanks so much for your help, and especially providing some code. I'm not sure whether i'm missing something, but even after i declare the variables, the code doesn't seem to do anything. For example, i create some test folders on my desktop, create a list.txt file and then execute...
  9. electricwizard84

    Read filenames from a text file, match to folder and copy

    Hi, I have developed a script that lists all the files in a folder (and subfolders) and writes the filename to a text file. For example, if filename.avi is in a folder c:\test\movie\filename.avi then the script will create a text file (and located as a destination directory) and on the first...
  10. electricwizard84

    Creating a folder of the same name as filename

    Guys, Another problem i need your help with! I tested the code at work today, moving some text files around and it worked well, without any problems. However, at home i am trying to move some movie files (movie.avi) onto a network drive and at line 18 newfolder.Move(destination), i receive a...
  11. electricwizard84

    Creating a folder of the same name as filename

    It's all fixed - it was a simple matter of ensuring i did not call a variable before i actually stored data in it. Final code: --------------------------- dim objFSO, objFolder, b, c, newfolder dim colFiles, source, destination source = "C:\Test\" destination = "C:\Test1\" Set objFSO =...
  12. electricwizard84

    Creating a folder of the same name as filename

    Thanks for this PHV. The last thing i'm trying to do is to move the newly created folder (with file inside) to a different directory. This seems very basic to do however, i get an error reporting 'Path Not Found'. I'm not sure whether it is because of the '\', but i want the program to move all...
  13. electricwizard84

    Creating a folder of the same name as filename

    Hi all, Appreciate your comments. The problem is that i'm trying to create a folder with the same name as the filename, but created in a particular destination. Using the updated code, the folder is always created on the desktop and not in "C:\test\". ------------------------- dim objFSO...
  14. electricwizard84

    Creating a folder of the same name as filename

    Hi, I am trying to create a folder based upon the base name of a filename. For example, if a file is named 'test.txt' then the program will create a folder called 'test'. Additionally, the filename 'test.txt' shall be moved such that is become inside the folder 'test'. Also, the folder...
  15. electricwizard84

    Move File and Wildcards

    Thanks PHV - it worked. Most appreciated :-)
  16. electricwizard84

    Move File and Wildcards

    Thanks PHV for your quick reply. After making your corrections, i receive an 800A003A 'File already exists' error message (i never got an error before, just didn't move files individually). Please note that an actual folder called Week 1 (c:\test\week 1\) already exists, but there are no files...
  17. electricwizard84

    Move File and Wildcards

    Hi, I am very new to VB Scripts, and hence i already have a question to ask. The code i have written is probably very innefficient, but what i am trying to do is compare the DateLastModified attributes of a collection of pictures that are in a folder, and then according to the number of days...

Part and Inventory Search

Back
Top