This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title></title> | |
| <link rel="stylesheet" href="//code.jquery.com/ui/1.12.0/themes/base/jquery-ui.css"> | |
| <link rel="stylesheet" href="/resources/demos/style.css"> | |
| <script src="/Style%20Library/POC/Scripts/jquery.min.js" type="text/javascript"></script> | |
| <script src="https://code.jquery.com/jquery-1.12.4.js"></script> | |
| <script src="https://code.jquery.com/ui/1.12.0/jquery-ui.js"></script> | |
| <script src="/_layouts/SP.js" temp_src="/_layouts/SP.js" type="text/ecmascript"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <title></title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/2014.02/jquery.SPServices.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> | |
| </head> | |
| <body> | |
| <div id="readDiv"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <head> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.SPServices/2014.02/jquery.SPServices.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> | |
| </head> | |
| <script> | |
| $(document).ready(function () { | |
| //With out ID | |
| $().SPServices({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This is an example of a BOM in AML language: | |
| <Item type="Part" action="add"> | |
| <item_number>999-888</item_number> | |
| <description>Some Assy</description> | |
| <Relationships> | |
| <Item type="Part BOM" action="add"> | |
| <quantity>10</quantity> | |
| <related_id> | |
| <Item type="Part" action="add"> | |
| <item_number>123-456</item_number> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Root> | |
| <Address myatt="abc">NY</Address> | |
| <Address>AUS</Address> | |
| </Root> | |
| if (myXelement.Element("Address").Attribute("myatt").Value == "Abc") | |
| { | |
| myXelement.Element("Address").Attribute("myatt").Value = "XYZ"; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| StringBuilder strBuilLog = new StringBuilder(); | |
| string strLogData = "Welcome to log data \t"; | |
| strBuilLog.Append(strLogData); | |
| string strLogData2 = "Welcome to log data 2" + Environment.NewLine; | |
| strBuilLog.Append(strLogData2); | |
| string strLogDataFinal = "Welcome to log data final \t"; | |
| strBuilLog.Append(strLogDataFinal); | |
| using (StreamWriter strwLog = new StreamWriter("c:\\log.txt")) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Param | |
| ( | |
| [string]$exePath = $null | |
| ) | |
| write-host “Calling exe” | |
| $startTime = Get-Date | |
| Write-Host "Start time " + $startTime.ToString("u") | |
| $exePath = $exePath | |
| & $exePath |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Set exePath="C:\My.exe" | |
| Echo "Call PS1" | |
| PowerShell.exe Set-ExecutionPolicy RemoteSigned; "C:\MyScript.PS1" -exePath %exePath% | |
| Echo "End PS1" | |
| PAUSE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cls | |
| $startTime = Get-Date | |
| Write-Host "Start " + $startTime.ToString("u") | |
| $exePath = "C:\My.exe" | |
| & $exePath | |
| $endTime = Get-Date | |
| Write-Host "End " + $endTime.ToString("u") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| XmlTextReader objreader = new XmlTextReader("c:\\a.xml"); | |
| StringBuilder strBuilXML = new StringBuilder(); | |
| while (objreader.Read()) | |
| { | |
| if (objreader.IsStartElement()) | |
| { | |
| if (objreader.IsEmptyElement) | |
| { |
NewerOlder