; make two folders with spaces in the name MAKEDIR "c:\A nice folder" MAKEDIR "c:\A junk folder" ; make two files in one of the folders WRITEFILE "c:\a nice folder\file1.txt" "first test file" WRITEFILE "c:\a nice folder\file2.txt" "second test file" ; make a string that contains the DOS command ; note the outer single quotes and inner double quotes SET cmd = 'COPY "c:\A nice folder\*.txt" "c:\A junk folder\"' ; run the DOS command DOSCMD cmd ; verify the file1.txt file exists in both folders GETNEXTFILE "c:\a nice folder\file1.txt" GETNEXTFILE "c:\a junk folder\file1.txt" ; verify the file2.txt file exists in both folders GETNEXTFILE "c:\a nice folder\file2.txt" GETNEXTFILE "c:\a junk folder\file2.txt"