I do the following in a bat file:
@SET/P MYON=FTP OK?
@IF %MYON%=="N" ECHO NOT_OK
@ECHO %MYON%I enter N, I DON'T get NOT_OK (the test doesn't work), N gets echoed .
In your original you test whether %MYON% is equal to "N"
Try running it and entering "N" rather than N. Razor's version corrects that. Or, simpler, just remove all the quote marks.
Thank you, the fix worked fine and solved a lot of my other problems. I think that there are not too many ways to ask for input using a bat file.
JEBoyden9
