A sourceMask with at least 8
?
for the name and at least 3
?
for the extension will match all
files because it will always match the short 8.3 name.
ren ????????.??? ?x.????999.*rForTheCourse
part1.part2.part3.part4 -> px.part999.part3.parForTheCourse
“We may dig in our heels and dare life never to change, but, all the same, it changes under our
feet like sand under the feet of a sea gazer as the tide runs out. Life is forever undermining us.
Life is forever washing away our castles, reminding us that they were, after all, only sand and
sea water” - Erica Jong (Parachutes and Kisses)
REPLACE
Replace or update one file with another
Syntax
REPLACE
Source_PathName Destination_path [/A] [/P] [/R] [/W]
REPLACE
Source_PathName Destination_path [/P] [/R] [/S] [/W] [/U]
Key
path : The folder where files are to be replaced.
/A : Add any missing files.
/P : Prompt for confirmation (each file)
/R : Replace even Read-only files
/S : Include all subfolders of the destination.
/W : Wait for you to insert a floppy disk.
/U : Replace (update) only files that are older than the source.
Limitations:
When replacing in all subdirectories (/S ) you cannot ADD files (/A) or restrict to replacing older
files (/U)
"That's the secret to life... replace one worry with another" ~ Charles M. Schulz
RD
Delete folder(s)
Syntax
RD
pathname
RD /S
pathname
RD /S /Q
pathname
Key
/S : Delete
all files and subfolders
in addition to the folder itself.
Use this to remove an entire folder tree.
/Q : Quiet - do not display YN confirmation
Place any long pathnames in double quotes.
RD will only delete an empty folder.
RD /S will delete subfolders even if they contain files.
RD does
not support
wildcards
but you can remove multiple folders in one command:
RD C:\docs\Jan C:\docs\Feb "C:\My Documents\Mar"
“Dying is the most embarrassing thing that can happen to you, because someones got to take
care of all your details” - Andy Warhol
RMTSHARE.exe
(
NT 4 Resource kit
-
download
)
Manage File and Printer shares, local or on a remote server.
Although missing from recent Resource kits, the old version appears to work fine under
Windows 2000/XP/2003.
Syntax
Display
all shares
RMTSHARE \\
server
Display details of a specific share
RMTSHARE \\server\sharename
Share
a Folder
RMTSHARE \\
server\sharename=drive:path [
options]
Share a Printer
RMTSHARE \\
server\sharename=
printername /PRINTER [
options]
Edit
an existing SHARE
RMTSHARE \\
server\sharename [
options]
Delete a SHARE
RMTSHARE \\
server\sharename /DELETE
Options
/USERS:
number
/UNLIMITED
/REMARK:"
text"
/GRANT
user:
perm
/REMOVE
user
Notes: Either specify
/Users
to restrict the number of connections
that can be made OR
specify
/UNLIMITED
You can include several
/GRANT
s in a single command line.
Enclose paths that include spaces like this
\\server\"long share name"="c:\long file name"
“How to be green? consume less, share more, enjoy life” ~ Penny Kemp
Chia sẻ với bạn bè của bạn: