View unanswered posts | View active topics It is currently 25 Oct 2014 04:09



Post new topic Reply to topic  [ 9 posts ] 
divide documents into subfolders 
Author Message

Joined: 09 Aug 2012 12:21
Posts: 14
Post 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.


09 Aug 2012 12:26
Profile

Joined: 10 Feb 2012 02:20
Posts: 4322
Post 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:
@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
)


09 Aug 2012 12:42
Profile

Joined: 09 Aug 2012 12:21
Posts: 14
Post Re: divide documents into subfolders
Thank You!!!! :D is there any thing by which we can change this word documents into PDF ?


09 Aug 2012 19:56
Profile

Joined: 10 Feb 2012 02:20
Posts: 4322
Post Re: divide documents into subfolders
Look here:

www.google.com.au/search?hl=en&q=conver ... gle+Search


09 Aug 2012 20:12
Profile

Joined: 09 Aug 2012 12:21
Posts: 14
Post 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


09 Aug 2012 20:35
Profile

Joined: 10 Feb 2012 02:20
Posts: 4322
Post 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.

Code:
"winword.exe" "file.doc" /mFilePrintDefault



I think you will need to set the default printer to be pdfcreator.


09 Aug 2012 20:53
Profile

Joined: 09 Aug 2012 12:21
Posts: 14
Post 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


09 Aug 2012 21:57
Profile

Joined: 23 Dec 2011 13:59
Posts: 1937
Post 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


10 Aug 2012 06:02
Profile

Joined: 09 Aug 2012 12:21
Posts: 14
Post 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"


10 Aug 2012 22:27
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


Who is online

Users browsing this forum: siberia-man and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forums/DivisionCore.