<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://www.de12werken.nl/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://www.de12werken.nl/feed.php">
        <title>Notes - microsoft:scripting:batchfiles</title>
        <description></description>
        <link>http://www.de12werken.nl/</link>
        <image rdf:resource="http://www.de12werken.nl/lib/exe/fetch.php?media=wiki:dokuwiki.svg" />
       <dc:date>2026-04-05T14:29:11+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://www.de12werken.nl/doku.php?id=microsoft:scripting:batchfiles:allowusertostopandstartservice&amp;rev=1716368542&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.de12werken.nl/doku.php?id=microsoft:scripting:batchfiles:links&amp;rev=1321024939&amp;do=diff"/>
                <rdf:li rdf:resource="http://www.de12werken.nl/doku.php?id=microsoft:scripting:batchfiles:notes&amp;rev=1757507773&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://www.de12werken.nl/lib/exe/fetch.php?media=wiki:dokuwiki.svg">
        <title>Notes</title>
        <link>http://www.de12werken.nl/</link>
        <url>http://www.de12werken.nl/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
    </image>
    <item rdf:about="http://www.de12werken.nl/doku.php?id=microsoft:scripting:batchfiles:allowusertostopandstartservice&amp;rev=1716368542&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-05-22T09:02:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>allowusertostopandstartservice</title>
        <link>http://www.de12werken.nl/doku.php?id=microsoft:scripting:batchfiles:allowusertostopandstartservice&amp;rev=1716368542&amp;do=diff</link>
        <description>Microsoft - Scripting - Batch Files - Allow user to stop and start service

 Tested on Windows Server 2016. 

	*  Open an elevated command prompt.
	*  Check the current SDDL on the service:
&quot;%SYSTEMROOT%\system32\sc.exe&quot; sdshow &quot;Spooler&quot;

	*  Output should look like:</description>
    </item>
    <item rdf:about="http://www.de12werken.nl/doku.php?id=microsoft:scripting:batchfiles:links&amp;rev=1321024939&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-11-11T15:22:19+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>links</title>
        <link>http://www.de12werken.nl/doku.php?id=microsoft:scripting:batchfiles:links&amp;rev=1321024939&amp;do=diff</link>
        <description>Links

The Old New Thing - ERRORLEVEL is not %ERRORLEVEL%</description>
    </item>
    <item rdf:about="http://www.de12werken.nl/doku.php?id=microsoft:scripting:batchfiles:notes&amp;rev=1757507773&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2025-09-10T12:36:13+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>notes</title>
        <link>http://www.de12werken.nl/doku.php?id=microsoft:scripting:batchfiles:notes&amp;rev=1757507773&amp;do=diff</link>
        <description>Microsoft - Scripting - Batch files - Notes

Replace string in variable


%input:search=replace%


Source:Omgili - Batch Dos Replace Search String 


To replace the : with - in %TIME%:


%TIME::=-%


To get the substring from character 3 and onward:


%DATE:~3%


Remove trailing slash in the script directory:</description>
    </item>
</rdf:RDF>
