pcl converter

Use PHP Folder Watcher and PCLTool.exe Command Line software to monitor a folder for PCL to PDF Conversion

Hello,
 
I tested the demo version of PCL to PDF Converter GUI software.
 
1. I can't find any options for the file system watcher to set parameters like available on the command line, like merging another pdf and/or setting page size to A4
2. pctool has all options, but there I miss a setting that the pcl print is merged OVER the pdf, a scanned white paper in pdf results in an empty output file.

Customer
-------------------------------------------
Thanks for your message, please find the answers at below,

>>1. I can't find any options for the file system watcher to set parameters like available on the command line, like merging another pdf and/or setting page size to A4

The file system watcher doesn't support these parameters, if you wish to use more parameters in file system watcher, we suggest you may use "PHP Folder Watcher" + PCLTool.exe Command Line to finish these functions.

PHP Folder Watcher can be purchased from this web page,

https://veryutils.com/php-folder-watcher

image

>>2. pctool has all options, but there I miss a setting that the pcl print is merged OVER the pdf, a scanned white paper in pdf results in an empty output file.

You can use -template parameters to place PCL overlay or underlay the PDF pages,

  -template <string>         : Overlay template PDF file on all pages
  -templatefirst <string>    : Overlay template PDF file on page #1
  -templatefollowing <string>: Overlay template PDF file on page #2,#3,...,#end
  -templateatbottom          : Set template PDF page at bottom

You may run following command lines to try,

   pcltool.exe -templatefirst temp1.pdf -templatefollowing temp2.pdf test.pcl test.pdf
   pcltool.exe -templatefirst temp1.png -templatefollowing temp2.png test.pcl test.pdf
   pcltool.exe -templatefirst temp1.tif -templatefollowing temp2.tif test.pcl test.pdf
   pcltool.exe -templatefirst transparent1.png -templatefollowing transparent2.png test.pcl test.pdf
   pcltool.exe -template temp.pdf test.pcl test.pdf
   pcltool.exe -templateatbottom -template temp.pdf test.pcl test.pdf

Please don't hesitate to contact us if you have question on this.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
hookprinter

How to monitor and capture print outputs from a variety of printers and layouts and store the information in a database? VeryPDF HookPrinter Print Logger is a Web-based print tracking, print management and print control software

Hello,

I need a solution to monitor and capture print outputs from a variety of printers and layouts and store the information in a database. Can you provide such a solution?

Customer
----------------------------------------

image
Thanks for your message, yes, we have a solution to monitor and capture print outputs from a variety of printers, and store captured print jobs and information into a database.

You may download the trial version of "VeryPDF HookPrinter Print Logger" from this web page to try,

https://veryutils.com/hookprinter-print-logger

after you install this software, you can print a document to an installed printer in your system, you will able to see captured print job and information from this web page,

http://online.verypdf.com/app/hookprinter

We can also provide the custom-build development service based on this product to you, if you have any special requirements, please feel free to let us know, we are glad to assist you asap.

btw, you may also look at following web pages to understand more information about VeryPDF Print Logger Solution,

How to run HookPrinter SDK automatically at system startup or reboot or at log on of any user?
https://www.verypdf.com/wordpress/202205/how-to-run-hookprinter-sdk-automatically-at-system-startup-or-reboot-or-at-log-on-of-any-user-46161.html

VeryPDF HookPrinter Print Logger is the best print logging program.
https://www.verypdf.com/wordpress/202204/verypdf-hookprinter-print-logger-is-a-the-best-print-logging-program-46151.html

A print monitor solution for every business!
https://www.verypdf.com/wordpress/202204/a-print-monitor-solution-for-every-business-46145.html

How to Run HookPrinter SDK Program Automatically on Startup or after reboot? Use the Windows Task Scheduler to run HookPrinter SDK without UAC prompts and admin rights?
https://www.verypdf.com/wordpress/202204/how-to-run-hookprinter-sdk-program-automatically-on-startup-or-after-reboot-use-the-windows-task-scheduler-to-run-hookprinter-sdk-without-uac-prompts-and-admin-rights-46135.html

Use HookPrinter SDK to capture print jobs from special EXE processes
https://www.verypdf.com/wordpress/202204/use-hookprinter-sdk-to-capture-print-jobs-from-special-exe-processes-46089.html

How to capture various pieces of data from a receipt printer to an external database / website / computer?
https://www.verypdf.com/wordpress/202204/how-to-capture-various-pieces-of-data-from-a-receipt-printer-to-an-external-database-website-computer-46073.html

How can I intercept and capture the content’s of a window’s spool file, and convert this SPL file to PDF file?
https://veryutils.com/blog/how-can-i-intercept-and-capture-the-contents-of-a-windows-spool-file-and-convert-this-spl-file-to-pdf-file/

Capture documents from any printer and store them as .pdf
https://veryutils.com/blog/capture-documents-from-any-printer-and-store-them-as-pdf/

VeryUtils Print Logger is an Enterprise Print Tracking Tool and Print Statistics Software
https://veryutils.com/blog/veryutils-print-logger-is-an-enterprise-print-tracking-tool-and-print-statistics-software/

How to Track Printing History using HookPrinter Print Logger software?
https://veryutils.com/blog/how-to-track-printing-history-using-hookprinter-print-logger-software/

Use VeryUtils Print Job Tracker software to track all print jobs from Windows system
https://veryutils.com/blog/use-veryutils-print-job-tracker-software-to-track-all-print-jobs-from-windows-system/

VeryUtils Print Tracker software can be used to track printed documents in your system
https://veryutils.com/blog/veryutils-print-tracker-software-can-be-used-to-track-printed-documents-in-your-system/

VeryPDF

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
pdf editor toolkit, verypdf sdk & com

I am interested in the capabilities of your "PDF Editor Toolkit Pro SDK" for a custom cloud application that we are building for a client

Hello,

I am interested in the capabilities of your "PDF Editor Toolkit Pro SDK" for a custom cloud application that we are building for a client. Before I spend time on a proof of concept and evaluation, please help me with the following questions:

1. Does your SDK work with .NET 6 (Core) and C#?
2. Is it possible to create a new PDF document and write output with intermixed text and images?

Please see my attachment for an example output. I need to generate new documents dynamically with code. Alternatively, do you have a product that can write this kind of output to a new Word document and then convert the DOC or DOCX to PDF?

1. Is it then possible to programmatically find certain words inside the PDF to collect a list of details like page number and coordinates and size of all answer choice text (e.g. A., B., C., D.) as shown in my attachment?

I can then use that information with another 3rd party product for doing OMR extraction of hand written answers. Also, what scale is the coordinates based on (e.g. pixels or something else)?

image

1. Is your pricing of $399 a one-time purchase and is that a per developer or Web site license for the client solution where it will be implemented?

We will be hosting the solution in Azure so will be auto-scaling based on user loads.

1. Will I be able to do a full proof of concept inside our custom solution using your downloaded free trial software?

I am excited to try your product to further be sure it meets our requirements. I look forward to your answers.

Best Regards,
Customer
----------------------------------------------------------------------
>>1. Does your SDK work with .NET 6 (Core) and C#?

Yes, "PDF Editor Toolkit Pro SDK" works with .NET 6 (Core) and C#.

>>2. Is it possible to create a new PDF document and write output with intermixed text and images?

Yes, you can use "PDF Editor Toolkit Pro SDK" to create a new PDF document, add a new PDF page, and write output with intermixed text, images and graphics.

>>Please see my attachment for an example output. I need to generate new documents dynamically with code. Alternatively, do you have a product that can write this kind of output to a new Word document and then convert the DOC or DOCX to PDF?

DOC and DOCX formats are depend on MS Office, so I suggest you may use HTML format to instead of DOC and DOCX formats.

I suggest you may write the output to a HTML file first, then you can call "HTML Converter Command Line (htmltools.exe)" to convert this HTML file to PDF file, you may download the trial version of "HTML Converter Command Line (htmltools.exe)" from this web page to try,

https://www.verypdf.com/app/html-converter/try-and-buy.html#cmd

after you download it, you can run following command lines to convert a HTML file to PDF file,

htmltools.exe -$ XXXXXXXXXXXXXXXXXX -html2pdf2 test.htm _test_html2pdf2.pdf

htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit test.htm _test_webkit.pdf
htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit http://www.verypdf.com _web_webkit.pdf
htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit http://www.verypdf.com/artprint/docprintsdk.htm _verypdf_webkit.pdf

htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit2 test.htm _test_webkit2.pdf
htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit2 -width 1080 -height 1080 http://www.verypdf.com _web_webkit2.pdf
htmltools.exe -$ XXXXXXXXXXXXXXXXXX -webkit2 -width 1080 -height 1080 http://www.verypdf.com/artprint/docprintsdk.htm _verypdf_webkit2.pdf

In general, -webkit and -webkit2 options will work better for you, you may call htmltools.exe from your application to convert from web pages to PDF files easily.

>>1. Is it then possible to programmatically find certain words inside the PDF to collect a list of details like page number and coordinates and size of all answer choice text (e.g. A., B., C., D.) as shown in my attachment? I can then use that information with another 3rd party product for doing OMR extraction of hand written answers. Also, what scale is the coordinates based on (e.g. pixels or something else)?

Yes, this is possible, you can use "VeryPDF PDF Extract Tool Command Line" to extract all text contents and coordinates from PDF pages,

https://www.verypdf.com/app/pdf-extract-tool/index.html

The trial version of "VeryPDF PDF Extract Tool Command Line" can be downloaded from this web page,

https://www.verypdf.com/app/pdf-extract-tool/try-and-buy.html

after you download it, you can simple run following command line to extract text contents and coordinates from a PDF file,

pdfextract.exe -outfolder "out-folder" annotstamp.pdf

pdfextract.exe will create a "TextFileWithPosition.txt" file in generated "out-folder" folder, "TextFileWithPosition.txt" file contents following lines, you can parse this text file and get all useful information easily,

//Text Positions for each Word
word: x=157.06..188.76 y=18.60..32.55 base=30.17 fontSize=11.52 rot=0 link=00000000 'Home'
word: x=197.88..257.12 y=18.60..32.55 base=30.17 fontSize=11.52 rot=0 link=00000000 'PDF-Tools'
word: x=266.21..287.18 y=18.60..32.55 base=30.17 fontSize=11.52 rot=0 link=00000000 'Doc'
word: x=288.38..323.97 y=18.60..32.55 base=30.17 fontSize=11.52 rot=0 link=00000000 'ument'
word: x=333.65..379.00 y=18.60..32.55 base=30.17 fontSize=11.52 rot=0 link=00000000 'Support'
word: x=65.66..182.76  y=46.95..72.70 base=68.32 fontSize=21.26 rot=0 link=00000000 'Advanced'
word: x=190.02..237.43 y=46.95..72.70 base=68.32 fontSize=21.26 rot=0 link=00000000 'PDF'
word: x=245.12..307.43 y=46.95..72.70 base=68.32 fontSize=21.26 rot=0 link=00000000 'Tools'
word: x=314.31..432.03 y=46.95..72.70 base=68.32 fontSize=21.26 rot=0 link=00000000 'Command'
word: x=439.29..488.87 y=46.95..72.70 base=68.32 fontSize=21.26 rot=0 link=00000000 'Line'
word: x=496.13..550.23 y=46.95..72.70 base=68.32 fontSize=21.26 rot=0 link=00000000 'User'
word: x=557.23..643.64 y=46.95..72.70 base=68.32 fontSize=21.26 rot=0 link=00000000 'Manual'
word: x=8.87..62.31    y=86.81..100.7 base=98.39 fontSize=11.52 rot=0 link=00000000 'Version:'
word: x=65.64..94.2    y=86.81..100.7 base=98.39 fontSize=11.52 rot=0 link=00000000 'v2.0'
word: x=8.87..79.14    y=117.82..137  base=133.8 fontSize=15.95 rot=0 link=00000000 'Content'
word: x=79.86..133.67  y=155.91..169  base=167.4 fontSize=11.52 rot=0 link=00000000 'Overview'
word: x=79.86..131.13  y=172.74..186  base=184.3 fontSize=11.52 rot=0 link=00000000 'Features'

>>1. Is your pricing of $399 a one-time purchase and is that a per developer or Web site license for the client solution where it will be implemented?

Our products are all one time purchase.
Server License is licensed by per server.
Developer License is licensed by per developer, the Developer License covers Server Licenses.
Yes, the per developer or Web site license is for the client solution where it will be implemented.

>>We will be hosting the solution in Azure so will be auto-scaling based on user loads.

If you want to purchase a server license, you need to purchase a server license for each server running our product.

>>1. Will I be able to do a full proof of concept inside our custom solution using your downloaded free trial software?

Yes, you can download above products from our website to try, if you encounter any problem, please feel free to let us know, we are glad to assist you asap.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
ocr products

How to convert scanned image files to searchable PDF files from web application?

Could not load file or assembly 'Interop.VeryPDF' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'Interop.VeryPDF' or one of its dependencies. An attempt was made to load a program with an incorrect format.

I am using OCR2Any SDK/COM, running application in win 32 bit , getting below error

error
Retrieving the COM class factory for component with CLSID {990771DE-4D3A-49B8-803A-C1970E7ACE62} failed due to the following error:
80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)). @@
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at ManuOcrApplication.Models.OCRProcess.PreocessOCR(String strInFile, String strOutFile) in

Customer
--------------------------------------------

https://www.verypdf.com/app/ocr-to-any-converter-cmd/try-and-buy.html

Thanks for your message, in order to call "VeryPDF.ocr2anyCom" from your source code, you need register ocr2anyCom.exe into your system with administrator privilege first, for example, you may run a CMD window with "Run As Administrator" menu option first, and then run following command line to register ocr2anyCom.exe into your windows system, "ocr2anyCom.exe" is exist in the "ocr2any_sdk\libs" folder,

ocr2anyCom.exe /regserver

You can also double click "install.vbs" from "libs" folder to register ocr2anyCom.exe into your system, "install.vbs" will use administrator privilege to register ocr2anyCom.exe automatically.

After you register "ocr2anyCom.exe" into your system properly, you can call it from your C#, VB.NET, C++, VB6, etc. program languages, for example,

This is a C# example,
-----------------------------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using VeryPDF;
using System.IO;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string appPath = Path.GetDirectoryName(Application.ExecutablePath);
            {
                string strInFile = appPath + "\\test_table_ocr.tif";
                string strOutFile = appPath + "\\_test_out.pdf";
                string strCmd = "-ocrmode 3 -$ XXXX-XXXX-XXXX-XXXX";
                strCmd += " \"" + strInFile + "\" \"" + strOutFile + "\"";

                System.Type VeryPDFType = System.Type.GetTypeFromProgID("VeryPDF.ocr2anyCom");
                VeryPDF.ocr2anyCom VeryPDFCom = (VeryPDF.ocr2anyCom)System.Activator.CreateInstance(VeryPDFType);
                string strReturn = VeryPDFCom.ocr2any(strCmd);
                MessageBox.Show(strReturn);
            }

            {
                string strInFile = appPath + "\\test_table_ocr.tif";
                string strOutFile = appPath + "\\_test_out.rtf";
                string strCmd = "-ocr2 -$ XXXX-XXXX-XXXX-XXXX";
                strCmd += " \"" + strInFile + "\" \"" + strOutFile + "\"";

                System.Type VeryPDFType = System.Type.GetTypeFromProgID("VeryPDF.ocr2anyCom");
                VeryPDF.ocr2anyCom VeryPDFCom = (VeryPDF.ocr2anyCom)System.Activator.CreateInstance(VeryPDFType);
                string strReturn = VeryPDFCom.ocr2any(strCmd);
                MessageBox.Show(strReturn);
            }
        }
    }
}
-----------------------------------------------

This is a VB.NET example,
-----------------------------------------------
Public Class Form1

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        Dim strFolderDir As String = Application.StartupPath()
        Dim strInFile As String = strFolderDir & "\test_table_ocr.tif"
        Dim strOutFile As String = strFolderDir & "\_test_out.pdf"
        Dim strLicenseKey As String = "-$ XXXX-XXXX-XXXX-XXXX"
        Dim strCmd As String = "-ocrmode 3 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"

        Dim VeryPDFCom As Object = CreateObject("VeryPDF.ocr2anyCom")
        Dim strReturn As String = VeryPDFCom.ocr2any(strCmd)
        MsgBox(strReturn)

        strInFile = strFolderDir & "\test_table_ocr.tif"
        strOutFile = strFolderDir & "\_test_out.rtf"
        strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
        strCmd = "-ocr2 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"
        strReturn = VeryPDFCom.ocr2any(strCmd)
        MsgBox(strReturn)

    End Sub
End Class
-----------------------------------------------

This is a VB6 example,
-----------------------------------------------
Private Sub Command1_Click()
    strFolderDir = App.Path & IIf(Right$(App.Path, 1) <> "\", "\", "")
    strInFile = strFolderDir & "\test_table_ocr.tif"
    strOutFile = strFolderDir & "\_test_out.pdf"
    strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
    strCmd = "-ocrmode 3 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"
   
    Set VeryPDFCom = CreateObject("VeryPDF.ocr2anyCom")
    strReturn = VeryPDFCom.ocr2any(strCmd)
    MsgBox strReturn
   
   
    strInFile = strFolderDir & "\test_table_ocr.tif"
    strOutFile = strFolderDir & "\_test_out.rtf"
    strLicenseKey = "-$ XXXX-XXXX-XXXX-XXXX"
    strCmd = "-ocr2 " & strLicenseKey & " """ & strInFile & """ """ & strOutFile & """"
   
    Set VeryPDFCom = CreateObject("VeryPDF.ocr2anyCom")
    strReturn = VeryPDFCom.ocr2any(strCmd)
    MsgBox strReturn
   
End Sub
-----------------------------------------------

btw, I just noticed a "Access is denied" error in your log message, this error is caused by permission restrictions, your web application hasn't permissions to access to "VeryPDF.ocr2anyCom" COM interface, you need to give full control permissions to "VeryPDF.ocr2anyCom" in your system, please refer to following steps,

1. "Start" -> "Run" -> type in "dcomcnfg" on 32bit system or "MMC comexp.msc /32" on 64bit system,

In the Component Services Window, expand the tree item:

Console Root / Component Services / Computers / My computer / DCOM Config

Right click the "VeryPDF.ocr2anyCom" entry and select "Properties":

2. In the 'COM Properties' dialog, select the the 'Security' tab,

3. In the 'Access Permissions' area, select "Customize" and click Edit.

4. Ensure that "Everyone" is present in the list of names. If not, add it by clicking the Add button, typing "Everyone" and give it all permissions, and clicking OK.

5. Make sure "Everyone" has the Access Permission 'Allow' check box ticked.

Click OK to return to the 'properties' window.

You need give "Full Control Permission" to "Everyone" to "Launch and Activation Permissions", "Access Permissions" and "Configuration Permissions" three items.

image

6. Click "Identity" tab. Check the "This user" checkbox, press "Browse" and specify the Administrator account, enter and re-enter the Administrator password, OR simple choose "The interactive user." option.

7. Click "OK" to save it,

8. Add "Everyone" user account to the folder where the ocr2anyCom.exe inside, and assign "Full Control" permission to "Everyone" user account, if you don't give enough permission to this folder, ASP, PHP, C#, VB.NET, ASP.NET etc. web applications will be denied to access to this folder,

9. OK, you can call "VeryPDF.ocr2anyCom" from ASP, PHP, C#, VB.NET, ASP.NET, VBScript, JavaScript, Delphi, etc. program languages without any restrictions now.

Please look at following web page for more information about how to set permissions in dcomcnfg application, although this web page is wrote for "VeryPDFCom.RunCmd", but the steps are same for "VeryPDF.ocr2anyCom",

https://www.verydoc.com/blog/verydoc-release-notes-verydoc-releases-an-exe-com-of-verypdfcomruncmd-exe-today-verypdf-exe-com-does-allow-you-to-call-ms-office-and-any-exe-application-from-asp-php-c-net-etc-program-languag.html

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
image to pdf converter

How to batch convert all TIFF files in a folder and all sub folders to PDF files?

Please help, I am trying to craft a command line command for img2pdf.exe to convert all TIF files in a folder and all subfolders to PDF format. I found this in a blog post, but I can't get it to run. No errors, no verbose of any kind, just nothing:

for /r x:\images\folder001 %F in (*.tif) do "C:\VeryPDF\img2pdf.exe" -o "%~dpnF.pdf" "%F"

What am I doing wrong?

Thank you.
Customer
--------------------------------------------
Your command line is no problem,

for /r x:\images\folder001 %F in (*.tif) do "C:\VeryPDF\img2pdf.exe" -o "%~dpnF.pdf" "%F"

image

However, if you wish execute above command line from a .bat file, you need use %% to instead of %, for example,

for /r x:\images\folder001 %%F in (*.tif) do "C:\VeryPDF\img2pdf.exe" -o "%%~dpnF.pdf" "%%F"

You may look at following details to understand more information about "for /r" command line option,

FOR /R

Loop through files (Recurse subfolders)

Syntax
      FOR /R [[drive:]path] %%parameter IN (set) DO command

Key
   drive:path  : The folder tree where the files are located.

   set         : A set of one or more files enclosed in parentheses (file1.*, another?.log).
                 Wildcards must be used.
                 If (set) is a period character (.) then FOR will loop through every folder.

   command     : The command to carry out, including any parameters.
                 This can be a single command, or if you enclose it
                 in (parentheses), several commands, one per line.

   %%parameter : A replaceable parameter:
                 in a batch file use %%G (on the command line %G)
This command walks down the folder tree starting at [drive:]path, and executes the DO statement against each matching file.

If the [drive:]path are not specified they will default to the current drive:path.

FOR parameters (%%A – %%Z)
Read the main FOR introduction page for a full description of assigning the replaceable %%parameter.
FOR parameters are used in all variations of the FOR command, it is a good idea to get up to speed with writing a basic FOR command before trying the more complex FOR / R variant.

Unlike some other variants of the FOR command, with FOR /R you must include a wildcard (either * or ?) in the 'set' to get consistent results returned. In many cases you can work around this by adding a single character wildcard e.g. if you are looping through multiple folders to find the exact filename myfile.txt you could instead specify myfile.t?t

FOR does not, by itself, set or clear the Errorlevel.

FOR is an internal command.

Examples

List every .bak file in every subfolder starting at C:\temp\
For /R C:\temp\ %%G IN (*.bak) do Echo "%%G"

A batch file to rename all .LOG files to .TXT in the 'demo' folder and all sub-folders:
For /R C:\demo\ %%G in (*.LOG) do Echo REN "%%G" "%%~nG.TXT"

Alternatively the same thing using the current directory:
CD C:\demo\
For /R %%G in (*.LOG) do Echo REN "%%G" "%%~nG.TXT"

(Remove the Echo from these commands to run them for real.)

Change directory to each subfolder under C:\Work in turn:

FOR /R "C:\Work\" %%G in (.) DO (
Pushd %%G
Echo now in %%G
Popd )
Echo "back home"

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)