@echo off
set /p name=Please enter the filename you want to copy:
COPY i:\%name%.NC i:\b\%name%.NC
EXIT
There is a file on drive I: gce8011713p0101cdxn010091p0101cdxn010097p0101.nc
When entering gce8011713p0101cdxn010091p0101cdxn010097p0101, it runs correctly
But if I enter *13*91*97*1, the result becomes gce8011713p0101cdxn010091p0101cdxn010097p01013.nc91971.NC
It removed the * from *13*91*97*1 and appended it, for some reason. I don't know why. Please can an expert explain!
set /p name=Please enter the filename you want to copy:
COPY i:\%name%.NC i:\b\%name%.NC
EXIT
There is a file on drive I: gce8011713p0101cdxn010091p0101cdxn010097p0101.nc
When entering gce8011713p0101cdxn010091p0101cdxn010097p0101, it runs correctly
But if I enter *13*91*97*1, the result becomes gce8011713p0101cdxn010091p0101cdxn010097p01013.nc91971.NC
It removed the * from *13*91*97*1 and appended it, for some reason. I don't know why. Please can an expert explain!
