<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title><![CDATA[Source-Center Forum: Coding & more]]></title>
		<link>http://www.source-center.de/forum/</link>
		<description>Community (nicht nur) übers Programmieren</description>
		<language>de</language>
		<lastBuildDate>Fri, 10 Sep 2010 09:33:49 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.source-center.de/forum/images/misc/rss.png</url>
			<title><![CDATA[Source-Center Forum: Coding & more]]></title>
			<link>http://www.source-center.de/forum/</link>
		</image>
		<item>
			<title>Windows 2008 R2 Share Permissions</title>
			<link>http://www.source-center.de/forum/showthread.php?69654-Windows-2008-R2-Share-Permissions&amp;goto=newpost</link>
			<pubDate>Thu, 02 Sep 2010 11:23:45 GMT</pubDate>
			<description>Hallo zusammen, ich habe ein kleines Problem. 
Unter Windows 2008 gibt es einen Ordner auf dem Laufwerk D: 
D:\LogDaten die Freigabe ist LogDatei$ 
Die Freigabe wird per Script ersrtellt. 
  
Nun möchte ich aber per Script zusätzlich noch die Permissions der Freigabe ändern. 
Per default ist hier...</description>
			<content:encoded><![CDATA[<div>Hallo zusammen, ich habe ein kleines Problem.<br />
Unter Windows 2008 gibt es einen Ordner auf dem Laufwerk D:<br />
D:\LogDaten die Freigabe ist LogDatei$<br />
Die Freigabe wird per Script ersrtellt.<br />
 <br />
Nun möchte ich aber per Script zusätzlich noch die Permissions der Freigabe ändern.<br />
Per default ist hier Everyone auf Read gesetzt.<br />
Dies möchte ich aber auf Full Control ändern. <br />
Wie kann ich das über ein VBS machen? Was unter Windows 2008 R2 funktioniert.<br />
 <br />
Danke Roland</div>

 ]]></content:encoded>
			<category domain="http://www.source-center.de/forum/forumdisplay.php?15-VBS">VBS</category>
			<dc:creator>nightman</dc:creator>
			<guid isPermaLink="true">http://www.source-center.de/forum/showthread.php?69654-Windows-2008-R2-Share-Permissions</guid>
		</item>
		<item>
			<title>Problem Excel Klasse</title>
			<link>http://www.source-center.de/forum/showthread.php?69653-Excel-Klasse&amp;goto=newpost</link>
			<pubDate>Thu, 26 Aug 2010 09:03:26 GMT</pubDate>
			<description>Hi Community, 
 
habe da gnaz trivial eine Excel klasse und versuche grade per job da was draus zu machen. 
 
job: 
 
 
Code: 
--------- 
static void WorkSheet(Args _args)</description>
			<content:encoded><![CDATA[<div>Hi Community,<br />
<br />
habe da gnaz trivial eine Excel klasse und versuche grade per job da was draus zu machen.<br />
<br />
job:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">static void WorkSheet(Args _args)<br />
{<br />
&nbsp; &nbsp; ExcelReporter&nbsp; &nbsp; &nbsp;  brp;<br />
&nbsp; &nbsp; ;<br />
<br />
&nbsp; &nbsp; brp = new ExcelReporter();<br />
<br />
&nbsp; &nbsp; brp.new();<br />
}</code><hr />
</div> Die Kompilier Ausgabe besagt nun das die Funktion new() nicht in der Klasse existiert! Dabei ist doch da, die sieht naemlich so aus:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">void new()<br />
{<br />
&nbsp;;<br />
&nbsp;excelApplication&nbsp;  = new COM(&quot;excel.application&quot;);<br />
&nbsp;excelWorkBooks&nbsp; &nbsp;  = excelApplication.workBooks();<br />
&nbsp;excelWorkBook&nbsp; &nbsp; &nbsp; = excelWorkBooks.add();<br />
&nbsp;excelWorkSheets&nbsp; &nbsp; = excelWorkBook.worksheets();<br />
&nbsp;excelWorkSheet&nbsp; &nbsp;  = excelWorkSheets.add();<br />
<br />
}</code><hr />
</div> Sehe ich grade den Wald vor lauter Baumen nicht?</div>

 ]]></content:encoded>
			<category domain="http://www.source-center.de/forum/forumdisplay.php?28-X-Programmierung">X++ Programmierung</category>
			<dc:creator>Xyrano</dc:creator>
			<guid isPermaLink="true">http://www.source-center.de/forum/showthread.php?69653-Excel-Klasse</guid>
		</item>
		<item>
			<title>try und catch</title>
			<link>http://www.source-center.de/forum/showthread.php?69652-try-und-catch&amp;goto=newpost</link>
			<pubDate>Wed, 25 Aug 2010 12:40:19 GMT</pubDate>
			<description><![CDATA[Gibt es in VBS so etwas wie try und catch?  
 
Bisher fange ich das sonst folgendermaßen ab 
 
 
Code: 
--------- 
On Error Resume Next 
Set objADSysInfo = CreateObject("ADSystemIfo") 
If err.Number <> 0 Then]]></description>
			<content:encoded><![CDATA[<div>Gibt es in VBS so etwas wie try und catch? <br />
<br />
Bisher fange ich das sonst folgendermaßen ab<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">On Error Resume Next<br />
Set objADSysInfo = CreateObject(&quot;ADSystemIfo&quot;)<br />
If err.Number &lt;&gt; 0 Then<br />
&nbsp;'Fehlermeldung<br />
Else<br />
SiteName = objADSysInfo.SiteName<br />
End If</code><hr />
</div> Try catch wäre schön oder eine elegantere Lösung</div>

 ]]></content:encoded>
			<category domain="http://www.source-center.de/forum/forumdisplay.php?15-VBS">VBS</category>
			<dc:creator>James Blond</dc:creator>
			<guid isPermaLink="true">http://www.source-center.de/forum/showthread.php?69652-try-und-catch</guid>
		</item>
		<item>
			<title>Gelöst HTML Datei auslesen</title>
			<link>http://www.source-center.de/forum/showthread.php?69651-HTML-Datei-auslesen&amp;goto=newpost</link>
			<pubDate>Fri, 13 Aug 2010 13:54:10 GMT</pubDate>
			<description><![CDATA[Hallo, klingt trivial, klappt aber nicht: 
  
Ich habe eine *.htm Datei, deren Inhalt ich per VBS in eine Variable auslesen will: 
  
 
Code: 
--------- 
  
 Set ObjHtmlFile = ObjFso.OpenTextfile(StrHTMLFilename) 
   'Do While NOT ObjHtmlFile.AtEndofStream]]></description>
			<content:encoded><![CDATA[<div>Hallo, klingt trivial, klappt aber nicht:<br />
 <br />
Ich habe eine *.htm Datei, deren Inhalt ich per VBS in eine Variable auslesen will:<br />
 <br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"> <br />
&nbsp;Set ObjHtmlFile = ObjFso.OpenTextfile(StrHTMLFilename)<br />
&nbsp;  'Do While NOT ObjHtmlFile.AtEndofStream<br />
&nbsp; &nbsp; 'StrHtmlContent = StrHtmlContent &amp; VBCRLF &amp; ObjHtmlFile.Readline<br />
&nbsp;  'loop<br />
&nbsp;  StrHtmlContent = ObjHtmlFile.Readall<br />
Msgbox StrHTMLContent</code><hr />
</div> Komischerweise wird nur das erste Zeichen &quot;&lt;&quot; ausgelesen...<br />
Schreibe ich was anderes in die Datei hinein, wird auch das erste Zeichen zurückgegeben.<br />
 <br />
Erstelle ich die Datei neu, gehts.<br />
Die Datei lässt sich mit dem editor, mit dem IE, Firefox, NP++ etc völlig normal anzeigen.<br />
Sie ist auch nicht besonders groß: 6 kb<br />
 <br />
Ich steh da grade mächtig auf dem Schlauch...<br />
 <br />
 <br />
 <br />
GrüüÜÜüüße, Goink</div>

 ]]></content:encoded>
			<category domain="http://www.source-center.de/forum/forumdisplay.php?15-VBS">VBS</category>
			<dc:creator>Goink</dc:creator>
			<guid isPermaLink="true">http://www.source-center.de/forum/showthread.php?69651-HTML-Datei-auslesen</guid>
		</item>
		<item>
			<title>Code Snippet Regex</title>
			<link>http://www.source-center.de/forum/showthread.php?69650-Regex&amp;goto=newpost</link>
			<pubDate>Thu, 12 Aug 2010 11:52:52 GMT</pubDate>
			<description><![CDATA[Hier zwei Funktionen. Einmal regex suchen und ein mal regex ersetzen 
 
 
PHP: 
--------- 
Public Function fncReplace( strSource , strRegExprPattern, strReplace, blnRelaceAllOccurrences, blnIgnoreCase) 
	' Function replaces characters in strSource with strReplace if 
	' strSource:              ...]]></description>
			<content:encoded><![CDATA[<div>Hier zwei Funktionen. Einmal regex suchen und ein mal regex ersetzen<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">PHP-Code:</div>
	<hr /><code class="bbcode_code"><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">Public&nbsp;Function&nbsp;</span><span style="color: #0000BB">fncReplace</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">strSource&nbsp;</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">strRegExprPattern</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">strReplace</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">blnRelaceAllOccurrences</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">blnIgnoreCase</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'&nbsp;Function&nbsp;replaces&nbsp;characters&nbsp;in&nbsp;strSource&nbsp;with&nbsp;strReplace&nbsp;if<br />&nbsp;&nbsp;&nbsp;&nbsp;'&nbsp;</span><span style="color: #0000BB">strSource</span><span style="color: #007700">:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">String&nbsp;which&nbsp;should&nbsp;be&nbsp;analysed<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'&nbsp;strRegExprPattern:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Regular&nbsp;expression&nbsp;describing&nbsp;what&nbsp;should&nbsp;be&nbsp;replaced<br />&nbsp;&nbsp;&nbsp;&nbsp;'&nbsp;</span><span style="color: #0000BB">strReplace</span><span style="color: #007700">:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">Sting&nbsp;which&nbsp;should&nbsp;be&nbsp;used&nbsp;</span><span style="color: #007700">for&nbsp;</span><span style="color: #0000BB">replacement<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'&nbsp;blnRelaceAllOccurrences:&nbsp;true=replace&nbsp;all&nbsp;occurences&nbsp;;&nbsp;false=replace&nbsp;first&nbsp;occurence&nbsp;only<br />&nbsp;&nbsp;&nbsp;&nbsp;'&nbsp;</span><span style="color: #0000BB">blnIgnoreCase</span><span style="color: #007700">:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">true&nbsp;</span><span style="color: #007700">=&nbsp;case&nbsp;</span><span style="color: #0000BB">insensitive<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'&nbsp;For&nbsp;regular&nbsp;expressions&nbsp;check:&nbsp;http://msdn.microsoft.com/en-us/library/ms974570.aspx<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;Dim&nbsp;objRegEx<br />&nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objRegEx&nbsp;=&nbsp;CreateObject("vbscript.regexp")<br />&nbsp;&nbsp;&nbsp;&nbsp;With&nbsp;objRegEx<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.IgnoreCase&nbsp;=&nbsp;blnIgnoreCase<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Global&nbsp;=&nbsp;blnRelaceAllOccurrences<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.MultiLine&nbsp;=&nbsp;True<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.Pattern&nbsp;=&nbsp;strRegExprPattern<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fncReplace&nbsp;=&nbsp;.Replace(strSource,&nbsp;strReplace)<br />&nbsp;&nbsp;&nbsp;&nbsp;End&nbsp;With<br />&nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objRegEx&nbsp;=&nbsp;Nothing<br />End&nbsp;Function<br /><br /><br />Public&nbsp;Function&nbsp;fncStringFullfillsPattern(&nbsp;strValue2check,&nbsp;strRegExprPattern,&nbsp;&nbsp;blnIgnoreCase)<br />&nbsp;&nbsp;&nbsp;&nbsp;'&nbsp;</span><span style="color: #007700">Function&nbsp;</span><span style="color: #0000BB">checks&nbsp;</span><span style="color: #007700">if&nbsp;</span><span style="color: #0000BB">Value2check&nbsp;fullfills&nbsp;pattern</span><span style="color: #007700">-</span><span style="color: #0000BB">description<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'&nbsp;strValue2check:&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;which&nbsp;should&nbsp;be&nbsp;analysed<br />&nbsp;&nbsp;&nbsp;&nbsp;'&nbsp;</span><span style="color: #0000BB">strRegExprPattern</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">regular&nbsp;expression&nbsp;describing&nbsp;the&nbsp;structure&nbsp;of&nbsp;how&nbsp;strValue2check&nbsp;should&nbsp;look&nbsp;like<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">'&nbsp;blnIgnoreCase:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;true&nbsp;=&nbsp;case&nbsp;insensitive<br />&nbsp;&nbsp;&nbsp;&nbsp;'&nbsp;</span><span style="color: #007700">For&nbsp;</span><span style="color: #0000BB">regular&nbsp;expressions&nbsp;check</span><span style="color: #007700">:&nbsp;</span><span style="color: #0000BB">http</span><span style="color: #007700">:</span><span style="color: #FF8000">//msdn.microsoft.com/en-us/library/ms974570.aspx<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">fncStringFullfillsPattern&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">false<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim&nbsp;objRegEx<br />&nbsp;&nbsp;&nbsp;&nbsp;Dim&nbsp;objMatch<br />&nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objRegEx&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">CreateObject</span><span style="color: #007700">(</span><span style="color: #DD0000">"vbscript.regexp"</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">With&nbsp;objRegEx<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">.Global&nbsp;=&nbsp;</span><span style="color: #0000BB">True<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">.</span><span style="color: #0000BB">Pattern&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">strRegExprPattern&nbsp;</span><span style="color: #DD0000">'&nbsp;example&nbsp;"^&#91;a-z0-9\-\.&#93;{2,63}@&#91;a-z0-9\-\.&#93;{2,63}\.&#91;a-z&#93;{2,4}$"<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.IgnoreCase&nbsp;=&nbsp;&nbsp;blnIgnoreCase<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objMatch&nbsp;=&nbsp;.Execute(strValue2check)&nbsp;'&nbsp;&nbsp;</span><span style="color: #0000BB">example&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"abcdef@g-hijkl.mn"</span><span style="color: #007700">)<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">End&nbsp;With<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">If&nbsp;</span><span style="color: #0000BB">objMatch</span><span style="color: #007700">.</span><span style="color: #0000BB">Count&nbsp;</span><span style="color: #007700">&gt;&nbsp;</span><span style="color: #0000BB">0&nbsp;Then&nbsp;fncStringFullfillsPattern&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">true<br />&nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objRegEx&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Nothing<br />&nbsp;&nbsp;&nbsp;&nbsp;Set&nbsp;objMatch&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Nothing<br />End&nbsp;</span><span style="color: #007700">Function&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code></code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://www.source-center.de/forum/forumdisplay.php?15-VBS">VBS</category>
			<dc:creator>James Blond</dc:creator>
			<guid isPermaLink="true">http://www.source-center.de/forum/showthread.php?69650-Regex</guid>
		</item>
	</channel>
</rss>
