Search found 158 matches

by drgt
15 Nov 2023 14:50
Forum: DOS Batch Forum
Topic: Sequential file backup
Replies: 5
Views: 16228

Sequential file backup

What is the OS requirement for this?

I wanted to use it also in an old xp sp2 machine.

Ok. I drag a file onto the batch file?

Where will the target file go?
by drgt
14 Nov 2023 08:38
Forum: DOS Batch Forum
Topic: Sequential file backup
Replies: 5
Views: 16228

Sequential file backup

Thanks but assuming we call the script test.bat how exactly is it used?
I.E what is the complete command?
by drgt
12 Oct 2023 01:40
Forum: DOS Batch Forum
Topic: Sequential file backup
Replies: 5
Views: 16228

Sequential file backup

Hello everyone

I need to backup a File.ext in the same folder renaming the backup to: File.1.ext for the 1st time, File.2.ext for the second time, etc
(Or another perhaps easier renaming method)

Can you help me with the code?

Thanks
by drgt
23 Jun 2022 02:15
Forum: DOS Batch Forum
Topic: Split Multiple vCard vcf file into many
Replies: 6
Views: 4574

Re: Split Multiple vCard vcf file into many

Thank you Aacini. To the point as always! As an alternative to numbered files output, would it be too hard to code for "LastName.FirstName.MiddleName.vcf" output? That info is stored in the line always starting with "N:" Sample input file: BEGIN:VCARD VERSION:3.0 N:Last;First;Middle;Prefix(Mr.);Suff...
by drgt
15 Jun 2022 21:16
Forum: DOS Batch Forum
Topic: Split Multiple vCard vcf file into many
Replies: 6
Views: 4574

Re: Split Multiple vCard vcf file into many

Thank you Antonio, I visited the thread you mentioned. Blame it on old age (70), blame it on stupidity, I do not get it! Please set forth exactly what you are asking me to supply. Note: As an alternative to numbered files output, please show the code for "LastName(.FirstName.MiddleName)*.vcf" output...
by drgt
14 Jun 2022 22:48
Forum: DOS Batch Forum
Topic: Split Multiple vCard vcf file into many
Replies: 6
Views: 4574

Split Multiple vCard vcf file into many

Hi
Each record starts "BEGIN:VCARD" with and ends with "END:VCARD"
Output can start with 1.vcf to as many as they are.

Thanks
by drgt
20 Jan 2022 13:01
Forum: DOS Batch Forum
Topic: VFile creator
Replies: 15
Views: 13336

Re: VFile creator

WOW!!! THANK YOU VERYYYY MUCH!!! Although I know nothing about VBS, I took the liberty of modifying it for 6 fields Option Explicit Const inFile = "Test.txt" Const outFile = "T1.txt" Dim oFSO, oInFile, oOutFile, arrDataSets, dataSet, arrData Set oFSO = CreateObject("Scripting.FileSystemObject") Set ...
by drgt
20 Jan 2022 00:06
Forum: DOS Batch Forum
Topic: VFile creator
Replies: 15
Views: 13336

Re: VFile creator

Thanks AR Coding.
I will leave that to experts in here as it is over my head.

I cannot find a utility that will do this either.
I thought maybe in word, but only mailmerge exists there. :(
by drgt
19 Jan 2022 14:06
Forum: DOS Batch Forum
Topic: VFile creator
Replies: 15
Views: 13336

VFile creator

Thank you very much. I am sure you will find a way! Is there anything I could be modifying in the test.txt file so that does not happen? I do not mean just omit the LF's as the result (all in one continuous paragraph) won't be appealing. Lastly, do you know of any software that will be able to do th...
by drgt
19 Jan 2022 12:55
Forum: DOS Batch Forum
Topic: VFile creator
Replies: 15
Views: 13336

Re: VFile creator

I am enclosing files and pictures in the attached archive.
by drgt
19 Jan 2022 01:07
Forum: DOS Batch Forum
Topic: VFile creator
Replies: 15
Views: 13336

VFile creator

Sure, here it is...

The problem lies in that the "Body" variable may contain multiple lines (SUB in this case, Carriage Returns in other cases)
It seems the variable reads only the part up to the first sub and passes the rest into the next loop, leaving the rest of the fields empty for that record.
by drgt
18 Jan 2022 16:32
Forum: DOS Batch Forum
Topic: VFile creator
Replies: 15
Views: 13336

Re: VFile creator

I used

Code: Select all

@echo off
>"t1.log" (for /f "usebackq tokens=1-3 delims=;" %%i in ("test.txt") do (
echo %%i
echo %%j
echo %%k))
however I am getting
echo is off
echo is off
when the SUB is encountered.

I need the exact character to be returned
by drgt
18 Jan 2022 05:24
Forum: DOS Batch Forum
Topic: VFile creator
Replies: 15
Views: 13336

VFile creator

I need to create a text file of outgoing SMS using patern: BEGIN:VMESSAGE TYP:SMS;OUT BOX:INBOX READ:0 DATE:To be imported as is NUMBER:To be imported as is BODY;CHARSET=1253:To be imported without the quotes EDIT: No need. Removed the quotes. END:VMESSAGE That will import from other text (CSV) file...
by drgt
20 Nov 2021 03:17
Forum: DOS Batch Forum
Topic: Limiting echo & Output word "on"
Replies: 6
Views: 4398

Re: Limiting echo & Output word "on"

Thank you JEB