z_newmove.btm questions

Apr 2, 2011
1,216
2
51
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

May 20, 2008
9,204
60
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,216
2
51
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
9,204
60
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
9,204
60
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