1.

Solve : moving all pdfs using the command prompt?

Answer» <html><body><p>I'm using the command:<br/>C:\Users\CTStudent\Downloads&gt;move *.pdf C:\pdfs<br/>in order to move all the pdf files in my current directory to the pdfs directory. I was able to accomplish this <a href="https://interviewquestions.tuteehub.com/tag/moving-548882" style="font-weight:bold;" target="_blank" title="Click to know more about MOVING">MOVING</a> 1 file:<br/>C:\Users\CTStudent\Downloads&gt;move CramSheet.pdf C:\Users\CTStudent\Downloads\pdfs<br/>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<br/><br/>what is the output of the move command? is there an error message?it's *.* to move all...<br/><a href="https://interviewquestions.tuteehub.com/tag/try-1428546" style="font-weight:bold;" target="_blank" title="Click to know more about TRY">TRY</a> 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.<br/><br/>E:\test&gt;move *.bat d:\test<br/>E:\test\testme0001.bat<br/>E:\test\testme00010.bat<br/>E:\test\testme00011.bat<br/>E:\test\testme0002.bat<br/>E:\test\testme0003.bat<br/>E:\test\testme0004.bat<br/>E:\test\testme0005.bat<br/>E:\test\testme0006.bat<br/>E:\test\testme0007.bat<br/>E:\test\testme0008.bat<br/>E:\test\testme0009.bat<br/>E:\test\testme20001.bat<br/>E:\test\testme20002.bat<br/>E:\test\testme20003.bat<br/>       14 file(s) moved.<br/><br/>E:\test&gt;dir d:\test<br/> Volume in drive D is SATA-2TB<br/> Volume Serial Number is 9ABB-F028<br/><br/> Directory of d:\test<br/><br/>10/11/2019  09:11    &lt;DIR&gt;          .<br/>10/11/2019  09:11    &lt;DIR&gt;          ..<br/>07/02/2019  20:29               820 testme0001.bat<br/>09/02/2019  10:05              1469 testme00010.bat<br/>09/02/2019  10:44              1352 testme00011.bat<br/>07/02/2019  20:44               838 testme0002.bat<br/>08/02/2019  18:58               957 testme0003.bat<br/>08/02/2019  18:23               897 testme0004.bat<br/>08/02/2019  19:02               929 testme0005.bat<br/>08/02/2019  20:00              1004 testme0006.bat<br/>08/02/2019  20:06              1078 testme0007.bat<br/>09/02/2019  09:44              1112 testme0008.bat<br/>09/02/2019  09:57              1278 testme0009.bat<br/>09/02/2019  20:09              2001 testme20001.bat<br/>10/02/2019  09:24              1963 testme20002.bat<br/>10/02/2019  09:47              <a href="https://interviewquestions.tuteehub.com/tag/1456-ii-273784" style="font-weight:bold;" target="_blank" title="Click to know more about 1456">1456</a> testme20003.bat<br/>              14 File(s)          17154 bytes<br/>               2 Dir(s)   1192898379776 bytes free<br/><br/>So the command should work, if you typed it <a href="https://interviewquestions.tuteehub.com/tag/correctly-409968" style="font-weight:bold;" target="_blank" title="Click to know more about CORRECTLY">CORRECTLY</a>, 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 <a href="https://interviewquestions.tuteehub.com/tag/help-239643" style="font-weight:bold;" target="_blank" title="Click to know more about HELP">HELP</a> forums, and on Stack Exchange might get the question closed for 'lack of information'.<br/><br/><br/><br/></p></body></html>


Discussion

No Comment Found