Quantcast
Channel: Total Commander
Viewing all articles
Browse latest Browse all 18761

Eng :: RE: Swap the name of two files. Any method?

$
0
0
Author: petermad
Posted: Wed Jul 27, 2016 5:42 am (GMT -6)

Quote:
Technically you'd need add a check whether the parameters are directories instead of file


I have now added check for folder selection:
Code:
TOTALCMD#BAR#DATA
%COMSPEC% /C
if not "%p%s"=="%c1 %c2" ((echo MARK TWO FILES!) && (echo.) && pause) else if exist %c1\* ((echo DO NOT MARK DIRECTORIES!) && (echo.) && pause) else (move %C1 %c1.tempfile && move %C2 %C1 && move %c1.tempfile %C2)
wcmicons.dll
Swap Two Filenames


-1

_________________
#524
Danish Total Commander Translator
TC 9.0b6 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit. TC 2.72 on Android 6.0

Get Extended Total Commander Menus


Viewing all articles
Browse latest Browse all 18761

Trending Articles