divide documents into subfolders
Moderator: DosItHelp
divide documents into subfolders
Hello All
Please help me in this regard
we receive zip files so we extract them and we get hundreds of word files in a folder and i want to divide them into subfolders each subfolder should contain 40 documents after separating them we need to convert word documents into PDF its taking time for separating them.
Please help me in this regard
we receive zip files so we extract them and we get hundreds of word files in a folder and i want to divide them into subfolders each subfolder should contain 40 documents after separating them we need to convert word documents into PDF its taking time for separating them.
Re: divide documents into subfolders
adill441 wrote:we receive zip files so we extract them and we get hundreds of word files in a folder and i want to divide them into subfolders each subfolder should contain 40 documents
Try this: (untested)
Code: Select all
@echo off
setlocal EnableExtensions EnableDelayedExpansion
set num=1
set c=0
for /f "delims=" %%a in ('dir *.doc /b') do (
if !c! LSS 40 (
md "files!num!" 2>nul
move "%%a" "files!num!"
) else (
set /a num+=1
set c=0
)
set /a c+=1
)
Re: divide documents into subfolders
Thank You!!!! is there any thing by which we can change this word documents into PDF ?
Re: divide documents into subfolders
Hello Foxidrive
i have these software install C:\Program Files (x86)\PDFCreator and i cannot install any new softwate Please advise
i have these software install C:\Program Files (x86)\PDFCreator and i cannot install any new softwate Please advise
Re: divide documents into subfolders
I got this from the link above - try it from a cmd prompt and see if it works for you. If so without any prompts then a batch file can help.
I think you will need to set the default printer to be pdfcreator.
Code: Select all
"winword.exe" "file.doc" /mFilePrintDefault
I think you will need to set the default printer to be pdfcreator.
Re: divide documents into subfolders
Hello Foxidrive
Yeah its working i have put this into the cmd prompt an pdf creator is oepning i have made default printer to be pdfcreator but we have to save each file and i have hundreds file to be converted
Yeah its working i have put this into the cmd prompt an pdf creator is oepning i have made default printer to be pdfcreator but we have to save each file and i have hundreds file to be converted
Re: divide documents into subfolders
Did you happen to read the user manual. I think you will find you answer there.
http://www.pdfforge.org/content/pdfcreator-user-manual
http://www.pdfforge.org/content/pdfcreator-user-manual
Re: divide documents into subfolders
Hello Squashman
Please check is this correct
C:\Users\mullahshareef\Desktop\Staters\New folder\PDFCreator.exe/PF"C:\Users\mullahshareef\Desktop\Staters\New folder"
Please check is this correct
C:\Users\mullahshareef\Desktop\Staters\New folder\PDFCreator.exe/PF"C:\Users\mullahshareef\Desktop\Staters\New folder"