|
Answer» I'm using the command: C:\Users\CTStudent\Downloads>move *.pdf C:\pdfs in order to move all the pdf files in my current directory to the pdfs directory. I was able to accomplish this MOVING 1 file: C:\Users\CTStudent\Downloads>move CramSheet.pdf C:\Users\CTStudent\Downloads\pdfs but for some reason when I use the wildcard it doesn't work. What am I doing wrong?I don't see anything wrong with your command, that should work for multiple files, even if they have long file names
what is the output of the move command? is there an error message?it's *.* to move all... TRY that*.* specifies all files, whatever the extension. To specify all files of a particular extension, use an asterisk, a dot, and the extension, for example *.pdf.
E:\test>move *.bat d:\test E:\test\testme0001.bat E:\test\testme00010.bat E:\test\testme00011.bat E:\test\testme0002.bat E:\test\testme0003.bat E:\test\testme0004.bat E:\test\testme0005.bat E:\test\testme0006.bat E:\test\testme0007.bat E:\test\testme0008.bat E:\test\testme0009.bat E:\test\testme20001.bat E:\test\testme20002.bat E:\test\testme20003.bat 14 file(s) moved.
E:\test>dir d:\test Volume in drive D is SATA-2TB Volume Serial Number is 9ABB-F028
Directory of d:\test
10/11/2019 09:11 <DIR> . 10/11/2019 09:11 <DIR> .. 07/02/2019 20:29 820 testme0001.bat 09/02/2019 10:05 1469 testme00010.bat 09/02/2019 10:44 1352 testme00011.bat 07/02/2019 20:44 838 testme0002.bat 08/02/2019 18:58 957 testme0003.bat 08/02/2019 18:23 897 testme0004.bat 08/02/2019 19:02 929 testme0005.bat 08/02/2019 20:00 1004 testme0006.bat 08/02/2019 20:06 1078 testme0007.bat 09/02/2019 09:44 1112 testme0008.bat 09/02/2019 09:57 1278 testme0009.bat 09/02/2019 20:09 2001 testme20001.bat 10/02/2019 09:24 1963 testme20002.bat 10/02/2019 09:47 1456 testme20003.bat 14 File(s) 17154 bytes 2 Dir(s) 1192898379776 bytes free
So the command should work, if you typed it CORRECTLY, unless (for example) there are no PDF files in the source folder, or you do not have write permissions to the target folder, or it does not exist, or the files are in use, or a number of other things. If there was such an error, you should see an error message, but you just say it 'doesn't work'. That is the bane of HELP forums, and on Stack Exchange might get the question closed for 'lack of information'.
|