Windows 10: How to create a batch file for network printer

Discus and support How to create a batch file for network printer in Windows 10 Drivers and Hardware to solve the problem; How to create batch file for several network printers? I used the below info, but when I entered several printers only the first one worked.... Discussion in 'Windows 10 Drivers and Hardware' started by CB44240, Jan 4, 2021.

  1. CB44240 Win User

    How to create a batch file for network printer


    How to create batch file for several network printers? I used the below info, but when I entered several printers only the first one worked.


    %SystemRoot%\explorer.exe \\ServerName\PrinterName

    :)
     
    CB44240, Jan 4, 2021
    #1

  2. Batch file

    hello,

    i am not so good in creating batch files i need some help in creating one.

    in the following path

    C:\Windows\System32\spool\PRINTERS

    there is a .SHD and .SPL file created when prints launched

    i need a batch file to open the .SPL in notepad first then on closing the notepad opened, all the files .SHD and .SPL are permanently deleted

    any help please

    code to open the notepad is as below

    start notepad "C:\windows\system32\spool\printers\FP00002.SPL"

    the file is opened but there are unwanted characters that appear as well as below


    How to create a batch file for network printer upload_2014-6-19_10-43-2-png.png
     
    Sandeep Bhugoo, Jan 4, 2021
    #2
  3. Bentley12 Win User
    Batch File to list files from two seperat networks

    Hello,

    I work in a factory where multiple PCs are on seperate VLANs. I need to view contents of a directory from one VLAN called "Admin" and compare it with individual directories from multiple PCs on another VLAN called "Shop" ("Shop" is not part of the Domain)

    I have created a VB script that will compare two txt files and report the diffences. So I am trying to create two text files from each VLAN using a batch file. The batch file will be ran from a PC with two network cards so it can see both VLANs.

    I can easily create the list from the "Admin" network using:
    dir /b \\Server\Share\ > Active.txt

    The "Shop" list is different. It needs a username and password. All Shop PCs have the same user name and password but I'm not sure how to structure the script to create a list from multiple PCs using a user name and password.
    If I open the folders from Windows and enter the credentials then a script like this will work:
    dir /b \\PC_Name1\Share > Programs.txt
    dir /b \\PC_Name2\Share >> Programs.txt

    Using the command above without first opening the folder and entering the credentials gives this error: Logon failure: unknown user name or bad password

    Thanks in advance for any help.
     
    Bentley12, Jan 4, 2021
    #3
  4. oily_17 Win User

    How to create a batch file for network printer

    Batch Files Knowledge Base

    Don't use batch files very much but one I find useful is for creating a list of files in a directory.
    Just copy the text below into Notepad and save as Filelist.bat

    dir /a /-p /o:gen >filelist.txt

    When you run it from a folder it will create a Filelist.txt file,in the same folder, that lists all the files in that folder.Useful when you are too lazy to type all the files out yourself.
     
    oily_17, Jan 4, 2021
    #4
Thema:

How to create a batch file for network printer

Loading...
  1. How to create a batch file for network printer - Similar Threads - create batch file

  2. Creating batch file on Win10

    in Windows 10 Network and Sharing
    Creating batch file on Win10: Hey, this is someone's previous answer of creating a bat file but it only works if you dont change the file name first to "*.bat" before you open the file:Open the fileClick Save AsSelect the desired locationIn the File name field, type Whatever.batIn the Type field, select...
  3. Creating batch file on Win10

    in Windows 10 Gaming
    Creating batch file on Win10: Hey, this is someone's previous answer of creating a bat file but it only works if you dont change the file name first to "*.bat" before you open the file:Open the fileClick Save AsSelect the desired locationIn the File name field, type Whatever.batIn the Type field, select...
  4. Creating batch file on Win10

    in Windows 10 Software and Apps
    Creating batch file on Win10: Hey, this is someone's previous answer of creating a bat file but it only works if you dont change the file name first to "*.bat" before you open the file:Open the fileClick Save AsSelect the desired locationIn the File name field, type Whatever.batIn the Type field, select...
  5. Creating a Batch File Example

    in Windows 10 Support
    Creating a Batch File Example: Hey All, I am not looking for someone to do the work for me, I'm trying to get a general idea of what I need to start at. It's been a few years since I've done a batch file and Windows 10 is so different than Windows 7. I am essentially wanting a batch file, that if I type a...
  6. Creating a batch file to send the label files to the printer

    in Windows 10 Support
    Creating a batch file to send the label files to the printer: is it possible to create a bat file to print a barcode label? 178788
  7. Create batch files with Batch?

    in Windows 10 Software and Apps
    Create batch files with Batch?: How to create Batch and VBS files with Batch? So I write a batch file which I then convert to exe that creates new folders in a certain directory and then creates batch and VBS files with a certain content and saves them in the created folder. So it's similar to a program...
  8. Batch File to install a network printer with a specific Post Script driver?

    in Windows 10 Drivers and Hardware
    Batch File to install a network printer with a specific Post Script driver?: I've seen people use the following in a batch file to install a printer: \\PrinterServerName\PrinterShareName My question is... can this be done where i also supply a specific Post Script Driver?...
  9. Create Multipurpose batch file

    in Windows 10 Software and Apps
    Create Multipurpose batch file: Hope this is the correct sub forum for this.. Often use a variety of command line functions e.g. winver / netplwiz etc etc Is there a way of creating a batchfile to include multiple commands with a number option to select...would be so handy i.e. 1 Netplwiz 2 Winver...
  10. Include date in file created by batch file.

    in Windows 10 Support
    Include date in file created by batch file.: How can I add to this batch command to include the date: xcopy C:\all\* Z:\Allbak\* /E /Y /C I'd like the resulting file to be named "Z:\Allbak171129" (yr mo day). The plan is to set up a task schedule to run the batch file every week. I want to keep several previous...