z_newmove.btm questions

Apr 2, 2011
1,462
10
54
North Carolina, USA
using the attached z_newmove.btm I am still getting prompted for a replace - which I am trying to advoid. I don't want to use setdos /x at all.

Code:
C:\z_Dothis\Z_NewAll\WAV_002\^ELVIS~41.WAV ->! C:\Z_NewAll\0001_WAV\^ELVIS~41.WAV (Replace) (Y/N/A/R)?

Any ideas why this is occurring?

I have attached the BTM and the jpsoft.ini - with the passwords [omitted] ....
 

Attachments

  • z_newmove.btm
    290 bytes · Views: 109
  • tcmd.txt
    3.1 KB · Views: 107
May 20, 2008
11,534
103
Syracuse, NY, USA
using the attached z_newmove.btm I am still getting prompted for a replace - which I am trying to advoid. I don't want to use setdos /x at all.

Code:
C:\z_Dothis\Z_NewAll\WAV_002\^ELVIS~41.WAV ->! C:\Z_NewAll\0001_WAV\^ELVIS~41.WAV (Replace) (Y/N/A/R)?

Any ideas why this is occurring?

I didn't try it but I suppose it's because you're using "/R". The help for MOVE says:

/R Prompt for a Y or N response before overwriting an existing destination file
 
Apr 2, 2011
1,462
10
54
North Carolina, USA
I know what the /R does on the MOVE but I am trying to get the if not isfile ... to work - given the strange file name from the new text txt file...
 
May 20, 2008
11,534
103
Syracuse, NY, USA
Anyway, your unprotected '^' is getting discarded. Double it.
Code:
v:\test> touch /c ^^elvis~41.wav
2013-12-30 20:23:09.773  V:\test\^elvis~41.wav

v:\test> d *.wav
2013-12-30  20:23  0  ^elvis~41.wav

v:\test> if isfile ^elvis~41.wav (echo isfile) else (echo notfile)
notfile

v:\test> if isfile ^^elvis~41.wav (echo isfile) else (echo notfile)
isfile
 
May 20, 2008
11,534
103
Syracuse, NY, USA
'^' in a filename is very unfortunate. Without SETDOS I think you'll need to jump through some hoops. One strategy would be to rename everything in both the source and target directories to get rid of the carets and put them back when your done (maybe others have better ideas). If there's a character you're sure won't be in any filenames (I used the "cent" symbol) you might ...
Code:
v:\test> d *.wav
2013-12-30  20:39  0  ^elvis~41.wav
2013-12-30  20:52  0  ^presley~41.wav

v:\test> do f in * /a:-d ( ren /q "%f" "%@replace[^^,%@char[162],%f]" )

v:\test> d *.wav
2013-12-30  20:39  0  ¢elvis~41.wav
2013-12-30  20:52  0  ¢presley~41.wav

v:\test> do f in * /a:-d ( ren /q "%f" "%@replace[%@char[162],^^,%f]" )

v:\test> d *.wav
2013-12-30  20:39  0  ^elvis~41.wav
2013-12-30  20:52  0  ^presley~41.wav
 
Similar threads
Thread starter Title Forum Replies Date
D LEAVE quits btm Support 5
old coot Debugging .btm with >3 arguments fails on step. Support 3
MickeyF equivalent to TCSTART.btm for TCMD? Support 4
vefatica Console not redrawn in BTM or with multiple commands Support 4
Joe Caverly Embedding an .EXE (or other file) into a .BTM Support 8
Charles S. Roaten Problems with TCSTART.BTM Support 1
P Kill all other instances of tcc from a btm batch file Support 2
C TCC 26 BATCOMP BTM problems? Support 5
B IF command problem in tcexit.btm Support 9
vefatica WAD DIR.BTM? Support 11
vefatica BTM, elevated, console window caption? Support 4
I BTM slower than BAT? Support 14
D btm file command line augments comparing for string or math. Support 12
D check for network tcstart.btm and load if newer Support 3
Craig Fitzgerald Problems using tcstart.btm Support 3
vefatica Installer sets BTM associations wrongly Support 4
O I cannot use links to .btm files Support 5
CWBillow Can't right-click a BTM Support 7
C NE1 have BTM to remove %appdata\JP Software\ etc... Support 0
C interesting TCStarts.btm Support 2
JohnQSmith ALIAS /R in TCSTART.BTM Support 9
Paul Berwanger BTM Bugs Support 2
M Drag and Drop for .BTM scripts Support 10
D WAD START /ELEVATED "Title" /PGM "job.btm" Support 6
C How to? run a BTM in elevated, inv tcc tab window Support 9
Roedy How to? Understanding BTM file properties Support 0
Fross GetOpt.btm Support 0
Roedy BTM file encoding Support 13
C How to? Add date/time to custom tpipe based BTM Support 1
thedave Problem chaining piped FIND commands in BTM Support 7
P Concatenating strings in a BTM Support 3
C Cmpr_Del.btm need help understanding UDF..... Support 2
R Unable to start any BTM file from Explorer Support 5
G .BTM association doesn't work anymore Support 1
A 18.00.21 tries to cancel TCSTART.BTM Support 3
B How to? why does my BTM stop Support 2
redwdc btm won't run in ver. 17 but works in ver. 16 Support 11
I How to? Bat Works but BTM Doesn't Support 6
C Documentation .CMD .BAT .BTM Support 15
C TCMD17x64\tcchere.btm Support 3
T How to? sort history in tcexit.btm Support 22
Mezlo help with btm fragment Support 9
C REQ: tcmdhere.btm mod Support 11
vefatica Why isn't TCSTART.BTM run? Support 8
vefatica BTM file hoses logon session Support 12
C move_all.btm Support 34
J Passing % character through command line to .btm Support 5
C @CharlesDye - RegTweaks.btm n/w Support 11
R Drag to BTM no longer works in Windows 8.1 Support 10
T Associating BTM files with IDE results in DOS box Support 33

Similar threads