home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
c
/
modname.doc
< prev
next >
Wrap
Text File
|
1995-02-27
|
4KB
|
135 lines
ModName V1.0
------------
written by BLOODROCK/SDC
What is it ?
------------
Have you ever downloaded a ProTracker module, named on an MS-DOS PC, like
e.g. "THISIS.MOD", and the real module name is "Mod.This is real tekkno" ??
-Well, checking and correcting hundreds of sound modules for the right name
costs lotsa time and sometimes your HD contains identical modules with
several different names.
ModName renames such files to it's original name.
System Requirements:
--------------------
ModName needs V37+ (OS 2.04 or higher), of course. ModName was written
for AmigaDOS script/CLI usage only.
Usage:
------
Format:
ModName [C|CAPITALIZE] [F|FORCE] [N|NOSPACES] [S|SILENT] {<name>}
Template:
ModName C=CAPITALIZE/S,F=FORCE/S,N=NOSPACES/S,S=SILENT/S,NAME/A
The CAPITALIZE option capitalizes all words of the module name.
The FORCE option suppresses a module check. Normally, ModName checks a file
for the "M.K." ID. If this ID is missing, the file won't be renamed.
This option is for renaming old Soundtracker modules, too.
Note: ModName always attempts to load the first 1084 bytes of a file.
If the file is smaller, nothing will happen; only an error message is
displayed.
Using the NOSPACES option has the effect that all spaces in the module name
will be converted to underscore chars ("_") in the filename (you should
use this).
The SILENT option is a QUIET-like option. There wont' be any text outputs,
but error messages are still typed out. So, you may create an error script
when processing hundreds of modules from a script via AmigaDOS redirection.
Example:
ModName >>Ram:Logfile SILENT Mod.Module1
... and so on....
After running the script, you may return back from watching TV and check
the logfile for any contents. Each present line will contain an error
message and you don't need to search thru' a large file.
ModName suppresses chars which are bad for file names, like "#", "?", ":",
"*" etc. Also, unprintable characters, like ASCII 0-31 will be skipped.
Brackets ("(", ")"), square brackets ("[", "]") and angle brackets ("<", ">")
are converted to braces ("{", "}"), dollar signs ("$") will be converted to
"s".
Any Zero value between valid characters will be converted to space/underscore.
Double Spaces/underscores/zeros (in any order) are skipped.
Spaces before or behind the name itself are skipped, too.
ModName always adds the prefix "Mod." at the beginning and cuts off the
suffix ".Mod" at the end of the filename.
Examples:
---------
You got a file named "MYGREATT.MOD".
The real name is: "** my great tune !! **"
ModName MYGREATT.MOD
renames the file to:
Mod.my great tune !!
ModName NOSPACES MYGREATT.MOD
results in a file named
Mod.my_great_tune_!!
ModName C N MYGREATT.MOD
renames the module to:
Mod.My_Great_Tune_!!
Got it ?
The following ASCII codes are skipped while creating a filename:
- All codes at a range from 0 to 31
- The following characters: " # % * / : ; ? ` |
- All codes from ASCII 126 to 191 and the codes 215 and 247
That's all. Thanks must go to Sniper for the nice idea !
Copyright:
----------
ModName is PUBLIC DOMAIN. Everybody may use, copy and spread this tool for
free, as long as no profit was made by selling it and this documentation
and the program itself are included and both unchanged.
Signing off......
BLOODROCK/SDC