Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    SUF6NEWBIE Guest

    Multiconvert lowercase filenames to uppercase Help

    Howdy all.

    Could somebody help with a code suggestion to help with:

    file.find *.*** all file types in a directory(including subfolder contents)
    then convert all files from lowercase to uppercase
    ..Sorry I dont have my attempt code to give here, my machine is Down for
    several days..
    I think file.find to a table then perform split.path(target.filename..file.extension) and loop through is the key, however
    I could not get the rename or copy to the source path working.

    tks MTN

  2. #2
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    You could try something like this

    Code:
    strfolder = Dialog.FolderBrowse("Please Select a folder.", _DesktopFolder);
    tblFiles = File.Find(strfolder, *.*, true, true, nil);
    TBLFILES = {};
    for fileindex,file in tblFiles do
    	file = String.Upper(file);
    	Table.Insert(TBLFILES, fileindex, file);
    end
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  3. #3
    SUF6NEWBIE Guest
    TKS TJ the tables code, helped with
    other stuff too in my App. also.
    tables , tables, tables.....

    your da man...

  4. #4
    SUF6NEWBIE Guest
    this got things to works fine.. dropped the additional table idea..

    code:

    strfolder = "F:\\BINS\\STD\\" -- or using a folder.browse 'result'
    tUpper = File.Find(strfolder .. "\\" , "*.*", true, true, nil);
    for fileindex,file in tUpper do
    new_file = String.Upper(file);
    tempname = file .. "_" -- needs to be done to
    File.Rename(file, tempname); -- make this work
    File.Rename(tempname, new_file);
    end

  5. #5
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    good deal
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

Similar Threads

  1. How to exclude specific filenames in a File List box?
    By jbarr in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 11-28-2003, 12:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts