Search found 160 matches
- 02 May 2024 03:49
- Forum: DOS Batch Forum
- Topic: time sync errorlevel check
- Replies: 5
- Views: 11900
Re: time sync errorlevel check
Thank you Saso!
- 01 May 2024 23:26
- Forum: DOS Batch Forum
- Topic: time sync errorlevel check
- Replies: 5
- Views: 11900
Re: time sync errorlevel check
Code: Select all
@echo off
:loop
echo Attempting Time Sync...
w32tm /resync | find /i "The command completed successfully." >nul || echo Sync Not Working, Retrying...&goto loop
echo Success!!!!!
pause
exit
What am I doing wrong?
- 15 Nov 2023 14:50
- Forum: DOS Batch Forum
- Topic: Sequential file backup
- Replies: 5
- Views: 20780
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?
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?
- 14 Nov 2023 08:38
- Forum: DOS Batch Forum
- Topic: Sequential file backup
- Replies: 5
- Views: 20780
Sequential file backup
Thanks but assuming we call the script test.bat how exactly is it used?
I.E what is the complete command?
I.E what is the complete command?
- 12 Oct 2023 01:40
- Forum: DOS Batch Forum
- Topic: Sequential file backup
- Replies: 5
- Views: 20780
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
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
- 23 Jun 2022 02:15
- Forum: DOS Batch Forum
- Topic: Split Multiple vCard vcf file into many
- Replies: 6
- Views: 6699
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...
- 17 Jun 2022 13:02
- Forum: DOS Batch Forum
- Topic: Split Multiple vCard vcf file into many
- Replies: 6
- Views: 6699
- 15 Jun 2022 21:16
- Forum: DOS Batch Forum
- Topic: Split Multiple vCard vcf file into many
- Replies: 6
- Views: 6699
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...
- 14 Jun 2022 22:48
- Forum: DOS Batch Forum
- Topic: Split Multiple vCard vcf file into many
- Replies: 6
- Views: 6699
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
Each record starts "BEGIN:VCARD" with and ends with "END:VCARD"
Output can start with 1.vcf to as many as they are.
Thanks
- 20 Jan 2022 13:01
- Forum: DOS Batch Forum
- Topic: VFile creator
- Replies: 15
- Views: 18139
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 ...
- 20 Jan 2022 00:06
- Forum: DOS Batch Forum
- Topic: VFile creator
- Replies: 15
- Views: 18139
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.
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.
- 19 Jan 2022 14:06
- Forum: DOS Batch Forum
- Topic: VFile creator
- Replies: 15
- Views: 18139
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...
- 19 Jan 2022 12:55
- Forum: DOS Batch Forum
- Topic: VFile creator
- Replies: 15
- Views: 18139
Re: VFile creator
I am enclosing files and pictures in the attached archive.
- 19 Jan 2022 01:07
- Forum: DOS Batch Forum
- Topic: VFile creator
- Replies: 15
- Views: 18139
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.
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.
- 18 Jan 2022 16:32
- Forum: DOS Batch Forum
- Topic: VFile creator
- Replies: 15
- Views: 18139
Re: VFile creator
I used
however I am getting
I need the exact character to be returned
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))
when the SUB is encountered.echo is off
echo is off
I need the exact character to be returned