problems with spaces for variable
Posted: 04 Feb 2009 22:36
Hello all DOS fan!
i am sorry if this same problems had been asked before, but i could not find the answer.
i want to list the attributed file with
and this files need to be first renamed and then copied to another backup folder. for this i use the FOR command.
apparently some of the folder and file names have spaces and i only knew that FOR can only takes up to 3 variable.
for example if one of the list is
and the variables for the FOR command can only read up until "with\spaces".
are there any solution to this.?
i am sorry if this same problems had been asked before, but i could not find the answer.
i want to list the attributed file with
Code: Select all
attrib /s >> file.txt
and this files need to be first renamed and then copied to another backup folder. for this i use the FOR command.
apparently some of the folder and file names have spaces and i only knew that FOR can only takes up to 3 variable.
for example if one of the list is
Code: Select all
A D:\Computer\DOS\problems with\spaces for \vari able\2090811.txt
and the variables for the FOR command can only read up until "with\spaces".
are there any solution to this.?