logo

Macro Expert

Save your TIME!

Site Map About us
Home Overview Downloads Purchase Support Contact Us
 
 

Rename files or folders


Rename one or more existing files or folders. The format control tags are supported.

Click here to show the figure

Parameters

  • Source

  • Specifies a full-qualified path and filename. The standard Microsoft MS-DOS wild cards are permitted in the file-name position. Multiple file names may be specified by separating entries with a semi-colon. For example: c:\documents\*.*, c:\documents\*.doc;*.jpg;*.inc. It will have unpredictable results, if you use the relative paths.

  • Exclude mask

  • Specifies one or more source file names which don't move at this operation. Also, each file name must be terminated by a single semicolon, and standard Microsoft MS-DOS wild cards, such as "*", are permitted in the file-name position. The wild cards name "*.*" does not allowed.

  • Match case

  • Specifies whether the search finds the source files which names match the case of characters in the Files or folder name exactly.

  • Include subfolders

  • Specifies whether the search extends to the subfolders of the Source folder.

  • Destination name(Format-control string)

  • Specifies the new name for the file or folder, the format control tags can be placed in the name position, for more information about the format control tag, please see the remark.

  • If the destination name has been used

  • Specifies the action when the destination name has been used by another file or folder, it can be:
    • Ignore, don't try to rename the file
    • Add a number at end of file name

  • Allow to rename folder

  • Specifies whether to rename the folder.

  • Sequence number for all sub-folder(s)

  • Specifies how to use the sequence number. With the option checked, all files use one index number, it makes sure that the name of the file is uniquely under the specified folder, no matter where it is.

    Remark:

    The destination name can contains one or more format control tags which are special codes used to generate an actual file name. A tag consists of a left angle bracket <, a type character, and a right angle bracket >. For example, to get source file name you may insert the tag "<s>" in the destination name parameter. The type character such as the "s" in the <s> is case sensitive. Therefore, the "<m>" and "<M>" will do different the thing - "<m>" get the month of the current date, and "<M>" get the minute of the current time.

    Notes
    The file main name and extension name will be handled respectively. For example, a file name "hello.txt" and the destination name control string is "<s>", a new name "hello" will be generated, if you want to get a full name, the destination name control string should be "<s>.<s>".

    The following table is the tags that are permitted in the destination name.

    TagDescription
    <s>Original file name.
    <sl>Original file name in lowercase
    <su>Original file name in uppercase
    <lx>Get left x characters from the original name
    <llx>Get left x characters from the original name in lowercase.
    <lux>Get left x characters from the original name in uppercase
    <rx>Get right x characters from the original name
    <rlx>Get right x characters from the original name in lowercase
    <rux>Get right x characters from the original name in uppercase
    <ix,n>Get a substring from the orginal name n characters from the original name, starting at position x (zero-based).
    <ilx,n>In lowercase, get a substring from the orginal name n characters from the original name, starting at position x (zero-based).
    <iux,n>In uppercase, Get a substring from the orginal name n characters from the original name, starting at position x (zero-based).
     In above i tags, the ,n can be omitted to represent the remainder of the string.
    <n>The index number of the source file in the searching.
    <n?x> The index number of the source file in the searching, with prefix characters. The prefix characters will be added until the minimum width x is reached. For example, the index number is 20 and the format control string of the destination name is "<nA5>"(i.e. the prefix character is 'A' and the width is "5".), a new name "AAA20" is generated.
    <T>The current time
    <D>The current date
    <y>Year of the current date
    <m>Month of the current date
    <d>Day of the current date
    <h>Hour of the current time
    <M>Minute of the current time
    <e>Second of the current time

    Example

  • The original file name : "MacroExpert.txt"
  • The current date and time : "08/05/2005 01:00"
  • Destination name control string Generated new name
    abc.txt abc.txt
    <s>.<s> MacroExpert.txt
    <sl>.<sl> macroexpert.txt
    <su>.<su> MACROEXPERT.TXT
    abc-<su>.<su> abc-MACROEXPERT.TXT
    <l5>.<l3> Macro.txt
    pic<lu5>.<lu3> picMACRO.TXT
    pic-<rl5>.jpg pic-xpert.jpg
    pic-<n03>.jpg pic-001.jpg
    pic-<ll5><n-3>.jpg pic-macro--1.jpg
    pic-<D>.<s> pic-08-05-2005.txt
    <l5>---<i5>.<s> Macro---Expert.txt
    <l5>---<i5,2>.<s> Macro---Ex.txt

    Note:

    You could filter files based on the attribute settings of the source files. For more information, please refer to Attributes Filter.

    To exclude certain subfolders, the folder name must be preceded by a backslash character \ in the field Exclude mask. For example: \My Pictures;\My Music;.

  • Introduction
  • Compare Editions
  • Installation and Uninstall
    • Minimum system requirements
    • Installnation
    • Uninstalling
  • Work environment
    • Getting familiar with Macro Manager
    • Folder panel
    • The tool bar of the macro list
    • Working with the progress window
    • Working with Macro Player Manager
  • Using Macro Expert
    • Basic concept of Macro Expert
    • Creating a new macro
    • Playing a macro manually
    • Recording/Editing TemporaryMacro
    • Playing TemporaryMacro
    • Stop Macro Service
    • Disabling all triggers of macro
  • Changing the properties of a macro
    • General
    • Scope
    • Triggers
    • Schedule
    • Play back
    • Advance
  • Triggering macro
    • Triggering macro overview
    • Idle trigger
    • Startup trigger
    • System event trigger
    • Resource event trigger
    • Driver trigger
    • Dial trigger
    • Hotkey
    • Window Trigger
    • File Trigger
  • Scheduling macro
    • Scheduling macro overview
    • Minute
    • Daily
    • Weekly
    • Monthly
    • Once
    • At a time
  • Changing Options
    • General
    • Hot keys
    • TemporaryMacro
    • Play back
    • Record
    • Macro list
    • Auto-logon
    • Appearance
  • Script Editor
    • Looking at the work area
    • Inserting an action
    • Editing an action
    • Removing one or more actions
    • Working with the variables
  • Macro Commands
    • General settings and Error Handling Options
    • Keyboard and mouse
      • Key action
      • Mouse action
      • Put a Text
      • Mouse Move Activity
      • Mouse Action on Object
    • Dialog
      • Display Message Dialog
      • Select a Folder
      • File-selection Dialog
      • Input Dialog
      • Show Tip Text
      • Hide tip text
    • Wait
      • Delay
      • Wait for a window
      • Wait for color
      • Wait for keystroke
      • Wait for mouse motion
      • Wait for file
      • Wait for process
    • Play Control
      • On Error
      • Pause
      • Stop
      • End
      • Play speed
      • Play a macro
      • Set emulation level
    • System
      • Run
      • Image search
      • Text earch based on image
      • Generate random number
      • Log off
      • Start Screen-Saver
      • Lock workstation
      • Shut down computer
      • Registry Operation
      • Call an External DLL
      • Send Message to Window
      • Get Text from Object
    • Flow
      • Comments
      • Separator line
      • Label
      • Goto
      • If variable
      • If color
      • If File Exists
      • If Window Exists
    • Loop
      • Loop
      • Loop Windows
      • Loop Files
      • Loop Processes
      • Loop Control
    • Window
      • Window action
    • Clipboard
      • Copy, Cut, Paste and Clear
      • Put a text to the clipboard
      • Get the text from the clipboard
    • Multimedia
      • Play an audio
      • Increase/Decrease Volume
      • Adjust volume
      • Sound Switch
      • Sound on/off
      • CD Player
    • Network
      • Make remote access connection
      • Disconnect remote access connection
      • Connect network resource
      • Disonnect network resource
      • Clear Internet Explorer History
      • Delete Internet Explorer Cookies
      • Delete Tempoary Internet Files
      • Internet Explorer Navigation Actions
    • Webpage
      • On Popup Window on Webpage
      • Open a Web page
      • Connect a Opened Webpage
      • Close Webpage
      • Read Field on Webpage
      • Fill Field on Webpage
      • Submit Form on Webpage
      • Click Element on Webpage
      • Find Element on Webpage
    • File
      • Copy files
      • Move files
      • Delete files
      • Create a folder
      • Delete a folder
      • Rename files
      • Set file attributes
      • Change file time
      • Synchronize Folders
      • Compress files
      • Extract a zipped file
      • Read text file
      • Write text file
    • Document
      • Open Document
      • Close Document
      • Save Document
      • Read Excel Cell
      • Write Excel Cell
      • Find Excel Cell
      • Add Worksheet
      • Remove Worksheet
      • Activate Worksheet
    • Variable
      • Increase/Decrease value
      • Set value
      • Advanced Set Variable Value
      • Advanced Get Variable Value
    • Database
      • Execute SQL Statement
      • Close Dataset
      • Set Field Value
      • Get Field Value
      • Change Current Record Position
  • Command Line Usage
  • Variables and Expressions
  • Frequent Question and Answer
  • Purchasing Macro Expert
  • Contact Grass Software
  • License Agreement
  • Help & Support
    Support
    Online Manual
    Online Bug Report
    Suggestion & Comments
    Downloads
    Macro Expert
    Advanced Key and Mouse Recorder
    GS Typing Tutor
    GS Typing Test
    GS Typing Network
    Websites
    GS Typing Tutor
    One-hand typing tutor
    Macro Expert
    Advanced Key and Mouse Recorder
    Company
    About Us
    Press Room
    Privacy Policy
    Links
    Copyright © 2002-2009 GrassSoftware. All Rights Reserved.