Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

z_newmove.btm questions

Apr
1,825
17
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

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
 
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...
 
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...
But you said
"I am still getting prompted for a replace - which I am trying to advoid."
That seemed to be your only complaint.
 
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
 
'^' 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
 
Would maybe an update to the FixNames.dll be a good option?
 
Back
Top
[FOX] Ultimate Translator
Translate