Search found 68 matches

by zagix
01 Jan 2014 13:03
Forum: DOS Batch Forum
Topic: Merge multiple pdf files in sub folder
Replies: 9
Views: 9673

Re: Merge multiple pdf files in sub folder

Do all folders have today's date in them? What format is the date? MM-DD-YYYY or DD-MM-YYYY? Thanks for response, Foxidrive. Yes all the folders have today's date in them, and they are some what like this. c:\database\001\ todays date \download\PDF\*.pdf c:\database\002\ todays date \download\PDF\*...
by zagix
31 Dec 2013 23:03
Forum: DOS Batch Forum
Topic: Merge multiple pdf files in sub folder
Replies: 9
Views: 9673

Re: Merge multiple pdf files in sub folder

Thanks Penpen for the reply. I am sorry to say, but you misunderstood my question the top part describes what i want to achieve and the below part is what i am using right now (a sample). Let us live all that and i put forward this question. I apologize. This is my situation and i want to merge mult...
by zagix
31 Dec 2013 14:43
Forum: DOS Batch Forum
Topic: Merge multiple pdf files in sub folder
Replies: 9
Views: 9673

Merge multiple pdf files in sub folder

Hello, This is my situation and i want to merge multiple pdf files in the subfolder and named it on todays date. After creation/merger from single file and named on todays date delete all other pdf's. Will use PDFtk.exe Folder structure: c:database\001\todays date(format 01-01-2014)\download\PDF\*.p...
by zagix
08 Dec 2013 22:35
Forum: DOS Batch Forum
Topic: Download the file and call second script
Replies: 8
Views: 5218

Re: Download the file and call second script

Hi Foxidrive,

Thank you. Its working perfectly.

Please add a log file feature if its possible.

Thanks a lot.
Bye
by zagix
08 Dec 2013 06:52
Forum: DOS Batch Forum
Topic: Download the file and call second script
Replies: 8
Views: 5218

Re: Download the file and call second script

foxidrive wrote:

It retries every 30 seconds and will execute the batch file when the file has downloaded.


Foxidrive, it does not break out of loop after downloading the file and does not call the second batch file for further action.

Please help.
Thanks in advance.
by zagix
08 Dec 2013 00:31
Forum: DOS Batch Forum
Topic: Download the file and call second script
Replies: 8
Views: 5218

Re: Download the file and call second script

foxidrive wrote:

Is this to check on the FTP server if the file is there?

Thanks for the reply.

YES it will recursively/repeately search the FTP Server directory for the file and if found will download it and then only call the second bat file.
by zagix
07 Dec 2013 07:48
Forum: DOS Batch Forum
Topic: Download the file and call second script
Replies: 8
Views: 5218

Re: Download the file and call second script

Thanks Foxidrive for the response. Sorry I think I was not able to question properly, :retry if not exist "%~1" timeout /t 180 & goto :retry I want this part of the script to do search repeatedly for file, and once it is found at the server directory to download it and then call the se...
by zagix
07 Dec 2013 04:46
Forum: DOS Batch Forum
Topic: Download the file and call second script
Replies: 8
Views: 5218

Download the file and call second script

Hello, This script works but i need help to resolve my issues. The codes downloads the file from FTP Server when it is delivered in the directory, but it does not stop looping till i close the command window. I want the script to search for file repeatedly and as soon as it is downloaded it will cal...
by zagix
26 Nov 2013 13:28
Forum: DOS Batch Forum
Topic: Make folders on todays date
Replies: 3
Views: 2965

Re: Make folders on todays date

Thanks EXPERTS.

Thanks a lot.
by zagix
26 Nov 2013 05:19
Forum: DOS Batch Forum
Topic: Make folders on todays date
Replies: 3
Views: 2965

Make folders on todays date

Hello Experts, This is the situation. D:/Main folder Folder-1 sub folder -----> make todays date folder -26-11-2013 Folder-2 sub folder -----> make todays date folder Folder-3 sub folder -----> make todays date folder ... I want to create the current date folder in all the subfolders with a singe go...
by zagix
19 Nov 2013 21:41
Forum: DOS Batch Forum
Topic: Remove the trailing from filename
Replies: 5
Views: 3809

Re: Remove the trailing from filename

Hi,

Thanks Squashman.
Fantastic.
by zagix
19 Nov 2013 14:52
Forum: DOS Batch Forum
Topic: Remove the trailing from filename
Replies: 5
Views: 3809

Re: Remove the trailing from filename

Code: Select all

@echo off
for %%G in (*.XML.*) do (
   for /f "tokens=1,2 delims=." %%I in ("%%~G") do echo rename "%%~G" "%%~I.%%~J"
)


Sorry, this does not remove the trailings from the file name.
by zagix
19 Nov 2013 14:36
Forum: DOS Batch Forum
Topic: Remove the trailing from filename
Replies: 5
Views: 3809

Re: Remove the trailing from filename

Squashman wrote:And what happens if more than one file has Exec_19112013_1.XML as the beginning of the file name?


The files are in sequential order. i.e. Exec_19112013_2.XML, xxx.3.XML

Thanks
by zagix
19 Nov 2013 14:02
Forum: DOS Batch Forum
Topic: Remove the trailing from filename
Replies: 5
Views: 3809

Remove the trailing from filename

Hello,

I have multiple xml file in folder, which are response files received after processing them from our central office.

File name: Exec_19112013_1.XML.1.19112013.PASS

To remove the trailing .1.19112013.PASS after .XML