<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: IT Command</title>
    <description>The latest articles on DEV Community by IT Command (@it_command).</description>
    <link>https://dev.to/it_command</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F52194%2Fcf1a661a-3458-40d3-b513-b24028238650.jpg</url>
      <title>DEV Community: IT Command</title>
      <link>https://dev.to/it_command</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/it_command"/>
    <language>en</language>
    <item>
      <title>I'm not getting this...</title>
      <dc:creator>IT Command</dc:creator>
      <pubDate>Mon, 05 Feb 2018 16:25:12 +0000</pubDate>
      <link>https://dev.to/it_command/im-not-getting-this-4ncd</link>
      <guid>https://dev.to/it_command/im-not-getting-this-4ncd</guid>
      <description>&lt;p&gt;Hi everyone, I've posted a few questions with Batch Code and I've noticed it getting a lot of "reactions" but no answers. I assumed this was a place for coding and developer questions but I'm getting the feel that nobody really knows CMD here. Is there a section I should be posting in?&lt;/p&gt;

</description>
      <category>dev</category>
    </item>
    <item>
      <title>Dir was unexpected in Batch</title>
      <dc:creator>IT Command</dc:creator>
      <pubDate>Mon, 05 Feb 2018 13:07:00 +0000</pubDate>
      <link>https://dev.to/it_command/dir-was-unexpected-in-batch-5ack</link>
      <guid>https://dev.to/it_command/dir-was-unexpected-in-batch-5ack</guid>
      <description>

&lt;p&gt;Hello, I have this line of code:&lt;br&gt;
if %Monitor%==No if %Sub%==Yes dir /b /s "%Folder%"&amp;gt;Control&lt;br&gt;
Unfortunately it keeps saying "Dir was unexpected". Any ideas?&lt;/p&gt;


</description>
      <category>batch</category>
      <category>cmd</category>
      <category>batchcode</category>
      <category>help</category>
    </item>
    <item>
      <title>How to handle Explanation Point in a Batch file</title>
      <dc:creator>IT Command</dc:creator>
      <pubDate>Wed, 03 Jan 2018 22:34:00 +0000</pubDate>
      <link>https://dev.to/it_command/how-to-handle-explanation-point-in-a-batch-file-15i4</link>
      <guid>https://dev.to/it_command/how-to-handle-explanation-point-in-a-batch-file-15i4</guid>
      <description>

&lt;p&gt;Hello Everyone, Today I come to you with another strange problem. My friend Josiah has a username which gets him into a lot of trouble. His username is "Josiah!". The problem with this username is that in a batch file where you do something like&lt;/p&gt;

&lt;p&gt;&lt;br&gt;
&lt;code&gt;Start "C:\Users\%username%\Desktop\File.exe"&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;it uses the ! in his username and that crashes the prompt. I was wondering if anyone knew a way around it? Thanks! -Luke.&lt;/p&gt;


</description>
      <category>batchcode</category>
      <category>weird</category>
      <category>windows</category>
      <category>username</category>
    </item>
    <item>
      <title>How do I Include Click Event in Powershell Notification?</title>
      <dc:creator>IT Command</dc:creator>
      <pubDate>Tue, 02 Jan 2018 13:39:52 +0000</pubDate>
      <link>https://dev.to/it_command/how-do-i-include-click-event-in-powershell-notification-1a47</link>
      <guid>https://dev.to/it_command/how-do-i-include-click-event-in-powershell-notification-1a47</guid>
      <description>

&lt;h2&gt;
  
  
  Here's What I've Got
&lt;/h2&gt;

&lt;p&gt;-A powershell script that can create a notification. This working script can be found &lt;a href="http://www.itcommand.tech/Powershell.txt"&gt;Here&lt;/a&gt;&lt;br&gt;
-A Batch script to call said script&lt;/p&gt;

&lt;h2&gt;
  
  
  Here's What I need
&lt;/h2&gt;

&lt;p&gt;-For my powershell script to also start a program when it is clicked on&lt;br&gt;
-That's it&lt;br&gt;
I know it's possible. I don't know how. Note that I'm using Windows 10.&lt;br&gt;
Here's an updated version of what I have so far:&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt; [void]         

 $objNotifyIcon = New-Object System.Windows.Forms.NotifyIcon 
 $objNotifyIcon.Icon = "icon.ico"
 $objNotifyIcon.BalloonTipIcon = "None"
 $objNotifyIcon.BalloonTipText = "Body  text or description" 
 $objNotifyIcon.BalloonTipTitle = "Title" 
 $objNotifyIcon.Visible = $True 
 register-objectevent $objNotifyIcon BalloonTipClicked BalloonClicked_event - Action Start-Process -FilePath "C:\users\Public\ITCMD\Toggler\Toggle.bat"
 $objNotifyIcon.ShowBalloonTip(10000) 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Note that what I have right now does not let me start a program, and also leaves the icon in the system ^ tray, and it cannot be removed without restart.(big problem).&lt;/p&gt;


</description>
      <category>powershell</category>
      <category>notification</category>
      <category>windows10</category>
      <category>help</category>
    </item>
  </channel>
</rss>
