<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://wiki.largegeek.com/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://wiki.largegeek.com/feed.php">
        <title> - wiki:windows:batch</title>
        <description></description>
        <link>http://wiki.largegeek.com/</link>
        <image rdf:resource="http://wiki.largegeek.com/lib/exe/fetch.php?media=wiki:logo.svg" />
       <dc:date>2026-04-17T06:23:08+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:copy_to_clipboard&amp;rev=1618702347&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:dated_folder&amp;rev=1473796482&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:file_list&amp;rev=1473796482&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:make_dir_set&amp;rev=1473796482&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:ping_tester&amp;rev=1473796482&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:powercfg&amp;rev=1562700466&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:print_spool_fix&amp;rev=1473796482&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:sysinfo&amp;rev=1554846910&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://wiki.largegeek.com/lib/exe/fetch.php?media=wiki:logo.svg">
        <title></title>
        <link>http://wiki.largegeek.com/</link>
        <url>http://wiki.largegeek.com/lib/exe/fetch.php?media=wiki:logo.svg</url>
    </image>
    <item rdf:about="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:copy_to_clipboard&amp;rev=1618702347&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-04-17T23:32:27+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>copy_to_clipboard</title>
        <link>http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:copy_to_clipboard&amp;rev=1618702347&amp;do=diff</link>
        <description>Copy Text to Clipboard

Here are a couple batch files that can streamline frequently used strings that don't quite justify an AutoHotKey command.

Batch File Code

This works for a predefined, on line string. Like a not so important password or address that is used frequently.</description>
    </item>
    <item rdf:about="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:dated_folder&amp;rev=1473796482&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-09-13T19:54:42+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>dated_folder</title>
        <link>http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:dated_folder&amp;rev=1473796482&amp;do=diff</link>
        <description>Create a Dated Folder

This batch file will create a folder named YYYYMMDD in the working directory.

Working Directory is the directory in which it resides, or a directory that has been dragged and dropped onto the BAT file.


@Echo off
:: Check WMIC is available
WMIC.EXE Alias /? &gt;NUL 2&gt;&amp;1 || GOTO s_error

:: Use WMIC to retrieve date and time
FOR /F &quot;skip=1 tokens=1-6&quot; %%G IN ('WMIC Path Win32_LocalTime Get Day^,Hour^,Minute^,Month^,Second^,Year /Format:table') DO (
   IF &quot;%%~L&quot;==&quot;&quot; goto s_do…</description>
    </item>
    <item rdf:about="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:file_list&amp;rev=1473796482&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-09-13T19:54:42+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>file_list</title>
        <link>http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:file_list&amp;rev=1473796482&amp;do=diff</link>
        <description>File List

This batch will create a text document listing the files in the working directory.

Working Directory is the directory in which it resides, or a directory that has been dragged and dropped onto the BAT file.


@echo off

title File List

:start
cls
cd /d &quot;%1&quot;
dir /b/s &gt; file_list.txt
exit</description>
    </item>
    <item rdf:about="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:make_dir_set&amp;rev=1473796482&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-09-13T19:54:42+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>make_dir_set</title>
        <link>http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:make_dir_set&amp;rev=1473796482&amp;do=diff</link>
        <description>Make Predetermined Set of Directories

This batch file will create a predetermined set of directories/folders in the working directory.

Working Directory is the directory in which it resides, or a directory that has been dragged and dropped onto the BAT file.</description>
    </item>
    <item rdf:about="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:ping_tester&amp;rev=1473796482&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-09-13T19:54:42+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ping_tester</title>
        <link>http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:ping_tester&amp;rev=1473796482&amp;do=diff</link>
        <description>Ping Tester

This is an anonymized version of a remote printer ping tester I (Matt S.) made. It allows you to select which location to test and will test the VPN router and printer IP addresses and return a plain English answer if the connections are up or down.</description>
    </item>
    <item rdf:about="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:powercfg&amp;rev=1562700466&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-07-09T19:27:46+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>powercfg</title>
        <link>http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:powercfg&amp;rev=1562700466&amp;do=diff</link>
        <description>POWERCFG

Server/HA Config

This is a batch file that should disable most of the problem settings for any machine serving up software or hardware.


@echo off
rem SET HIGH PERFORMANCE SCHEME
powercfg /setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c

rem Turn USB Power Saving OFF
powercfg /SETACVALUEINDEX 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 0

rem Turn PCIe Power Savings OFF
powercfg /SETACVALUEINDEX 8c5e7fda-e8bf-4a96-9a85…</description>
    </item>
    <item rdf:about="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:print_spool_fix&amp;rev=1473796482&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-09-13T19:54:42+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>print_spool_fix</title>
        <link>http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:print_spool_fix&amp;rev=1473796482&amp;do=diff</link>
        <description>Print Spool Fix

This batch file will:

	*  Stop the spool service
	*  Clear ALL print jobs
	*  Restart spool service

It works on all versions of Windows.

Batch File Code


@echo off
echo Stopping print spooler.
echo.
net stop spooler
echo deleting temp files.
echo.
del %windir%\system32\spool\printers\*.* /q
echo Starting print spooler.
echo.
net start spooler</description>
    </item>
    <item rdf:about="http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:sysinfo&amp;rev=1554846910&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-04-09T21:55:10+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>sysinfo</title>
        <link>http://wiki.largegeek.com/doku.php?id=wiki:windows:batch:sysinfo&amp;rev=1554846910&amp;do=diff</link>
        <description>System Info Generator

This script will dump the results of a few system information commands into a text file. By default it creates a folder named 'sand' on the root of C: and names the txt doc based on the computer name. Depending on permissions, it might error out on some server environments.</description>
    </item>
</rdf:RDF>
