How to create and use Batch Files

Started by Sean

Sean

How to create and use Batch Files   13 March 2025, 13:28

I didn't see any documentation around the "Create Batch File" feature. Once I create it, where is it stored? How do I actually run the batch against the device? What's different about this vs using the built-in scripting?

Also, would you consider creating a simple remote execution utility for managing groups of machines? I think you have most of the underpinnings already from Network Scanner. It would be great if this could support both Windows and Linux.
SoftPerfect Support forum - Ann avatar image
Ann

Re: How to create and use Batch Files   13 March 2025, 13:39

Here is a detailed response addressing each point:

Batch file location
When you create a batch file, you choose where to save it. There is no fixed location enforced by the application.

Batch file execution
The batch file is typically executed from the admin workstation. You can run it from a Command Prompt (cmd.exe) or simply double-click the .bat file.
For example, a batch file like this will copy files to the specified devices over the network using standard file-sharing permissions:
xcopy C:\Source\*.* \\192.168.0.1\C$\Destination
xcopy C:\Source\*.* \\192.168.0.2\C$\Destination
xcopy C:\Source\*.* \\192.168.0.3\C$\Destination

Difference between batch files and the built-in scripting
Batch Files execute actions from the admin workstation, such as copying files, running scripts, or applying configurations on remote machines.
Built-in Scripting (VBScript) runs inside the application and is intended for retrieving information from scanned devices. It does not usually make modifications.

Remote Execution Utility
Your suggestion for a remote execution tool is interesting, however the Network Scanner already supports launching third-party applications, including:
  • PsExec - for running commands on Windows machines.
  • SSH - for executing commands on Linux/Unix devices.
As these tools are already integrated, you can execute remote commands on selected machines without needing a separate built-in remote execution feature. Below are a couple of screenshots illustrating how to do that.

SoftPerfect support forum

SoftPerfect support forum

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

  ******     ******    *******   ********  **    ** 
 **    **   **    **  **     **  **         **  **  
 **         **               **  **          ****   
 **   ****  **         *******   ******       **    
 **    **   **               **  **           **    
 **    **   **    **  **     **  **           **    
  ******     ******    *******   ********     **    

Message: