Hal Rottenberg replied...
13-Jul-07 02:09 PM
As a side note let me say that I had to skip this chapter to come back
later.  Later has not happened yet.  :)
Scripting
(1)
Programming
(1)
Constructs
(1)
Chapter
(1)
Later
(1)
Happened
(1)
  Jason replied...
13-Jul-07 04:05 PM
My personal opinion is that it's best to learn a language (human or
programming) by practicing it, not reading about abstract principles of
grammar, composition rules, optimization strategies, "agile" programming
theory, etc.  Those books are for *after* you've learned a language and you
want to fine-tune, not to learn the language in the first place.  I think
the best way to start is to read through other peoples' scripts until you
start to internalize the patterns/strategies/techniques which those scripts
are utilizing but not describing explicitly or formally.  Then, when you
want to write your own script which does something complex, break down that
script into small managable sub-tasks, write functions or chunks of code for
each sub-task while looking at other peoples' code for guidance, then
combine these smaller functions/chunks together into the main script.

For example, if you want to learn Active Directory scripting, a great way to
start would be to pick up Robbie Allen's "Active Directory Cookbook" and
work through his examples (which you can get for free from
http://robbieallen.com/scripting).  Unfortunately, almost all his code is in
Perl or VBScript, not PowerShell.  The same learning approach applies, but
there's not yet a ton of PowerShell cookbooks out yet, so you'll have to
scrounge the Internet for those PowerShell scripts to learn from.  This
newsgroup is a great place to start!   :-)

My two cents...

Cheers,
Jason


------------------------------------------------------
PowerShell Training at SANS Conferences
http://www.WindowsPowerShellTraining.com
------------------------------------------------------
  Rich replied...
14-Jul-07 05:34 AM
I would agree with Jason.  It is probably easier to learn PowerShell,
especially if you are using at as an admin tool, by looking at examples.
There are a number of blogs with lots of examples (lots of links from the
user group site), the user group site has some, theres MS TechNet script
center etc etc

There are a lot of useful examples in the PowerShell help files as well
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk
  Clint Bergman replied...
16-Jul-07 07:43 PM
Thanks for the info :)

~Clint
help
If you want to do .Net development in C++, just forget about it and start programming in C#". It should have been clear from the beginning, with the miraculously appearing loader should all be ashamed of yourselves in leading VC++ straight to a dead end of programming for .Net. VC++.NET Discussions Visual Studio 2005 (1) Windows Update (1) Visual Studio (1 1) Ruby (1) Perl (1) What's wrong with you? If you know only one programming language you are a dinosaur. Use C++ when appropriate. Use C# when appropriate. Use other to you that C++ / CLI, despite being a version of C++ expressly created for .Net programming, should not have the same visual programming support in the Visual Studio IDE for mainstream .Net technologies that C# and VB .Net you have a good point that one should be flexible in learning more than one programming language, I think it is quite normal for programmers to be disappointed when the promise and hype of using a programming language soons becomes obsoleted by the very same people who hyped and promised in the the first place, to move C++ programmers to C# for the purpose of doing .Net programming. C++ / CLI I see now as essentially a ploy to throw C++ a bone which
among our customers. While C# looks common, its use in industry extends little beyond web programming. So I would say that use of ML is already far more widespread and F www.ffconsultancy.com / products / signal_processing_net / ?cs The lack of libraries for C# outside web / database programming is a vicious circle because people are highly unlikely to start using a language if don't know about C# but everything I find suggests that its use is web programming first, database programming second and windows application programming a distant third with very little else. That is not a surprising result because Microsoft most general-purpose language I have ever used. Definitely not. I would say Windows application programming first, web second, and database third. It is not at all a special-purpose or in MS terminology) * embedded apps which must the all the possible types of apps. Database programming is a part of many apps across app types. And in my estimate 95% of when you said: While C# looks common, its use in industry extends little beyond web programming. So I would say that use of ML is already far more widespread and F
Net applications using Thinstall and Xenocode, it was pointed out that there may be better programming languages / IDEs to use for the purpose of creating standalone, single executable apps. My goal then I can not see a problem going with .NET ! Arne [followups set to comp.programming, where I'm reading this thread] Terry Olsen said: Another objection is that it's there are some things that it's easier to do in Windows. But industrial-strength programming isn't one of them.) What took you? My personal record for responding to such don't think the original poster should have included a group as general as comp.programming for a Windows specific question. Arne The one whre you for reasons unknown to me just a few of them: - what is the program supposed to do? - what kind of programming languages / systems do you know already? - why the criteria of single-exe, no installer? - what original coding did not build in two orders of stupidity for us to magically find later), or drop .Net - it was no contest, believe me. Right. That's what we thought lengthy off-topic thread because of his posting habits. I can't speak for comp.programming, but for sure the m.p.dotnet.languages.* groups are not appropriate forums for comparative discussions of various programming platforms. Those are for language-specific programming questions, and nominally also general .NET programming questions
kann? Bin dankbar für jede Hilfe. Ich möchte noch bemerken dass ich keine Ahnung von Scripting, Programmierung oder ähnliches habe. mfg. Harald Keil Scripting WSH - German Discussions Scripting.FileSystemObject (1) OFSO.CreateTextFile (1) OFSO.OpenTextFile (1) Quelldatei.WriteLine (1) OFSO.FolderExists (1) OFSO s mal mit diesem Programm: 01. sVerzeichnis = "D: \ MP3 Dateien" 02. 03. Set oFSO = CreateObject("Scripting.FileSystemObject") 04. Set oFolder = oFSO.GetFolder(sVerzeichnis) 05. 06. For Each oFile In oFolder.Files los - - '- - Filemover - - Const Trenner = " - " Dim oFSO, Datei, file, Ordner, filename, trennposition, newfolder Set oFSO = CreateObject("scripting.filesystemobject") Set folder = oFSO.GetFolder(GetMyPath) For each Datei In folder.Files If Right(Datei Next Set folder = Nothing Set oFSO = Nothing Function GetMyPath() Dim FSO, Fldr Set FSO = CreateObject("scripting.filesystemobject") Set Fldr = FSO.GetFolder(". / ") GetMyPath = Fldr.Path Set FSO = Nothing Set Fldr = Nothing End Function Function Move_File(oldname, newname) Set fs = CreateObject("Scripting.FileSystemObject") if fs.FileExists(oldname) = True then fs.MoveFile oldname, newname end If Set fs Anfang - - ' Filemover Const Trenner = " - " Dim oFSO, Datei, file, Ordner, filename, trennposition, newfolder Set oFSO = CreateObject("scripting.filesystemobject") Set folder = oFSO.GetFolder(GetMyPath) For each Datei In folder.Files If Right(Datei
1) VbFirstFourDays (1) TitleMenuOpen (1) Gerry Hickman wrote on 28 aug 2009 in microsoft.public.scripting.jscript: Not true! var t = 'one, two, , four, , , seven, eight'; var n = t.split(', ').length results? - - Gerry Hickman (London UK) Gerry Hickman wrote on 28 aug 2009 in microsoft.public.scripting.jscript: [Please do not toppost on usenet] yes: var n = t.split( / , / ).length; cscript and correctly? - - Gerry Hickman (London UK) Gerry Hickman wrote on 29 aug 2009 in microsoft.public.scripting.jscript: What do you think? and what did you try? and why do you need Thanks. - - Gerry Hickman (London UK) Gerry Hickman wrote on 29 aug 2009 in microsoft.public.scripting.jscript: var a = t.replace( / , / g, '$comma$').split('$comma$'); - - Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress) In microsoft.public.scripting.jscript message <#ZO38m#JKHA.1488@TK2MSFTNGP03.ph x.gbl> , Fri, 28 Aug 2009 15:13 FF3 Op9 Sf3 Dr J R Stockton wrote on 29 aug 2009 in microsoft.public.scripting.jscript: This does not help, John, as the split(', ') is working. It is the split IS" with no warranties, and confers no rights. - -- -- -- -- -- -- -- -- -- - this.charAt(J) } at? In microsoft.public.scripting.jscript message <#P3XRbWKKHA.3992@TK2MSFTN Extend the question, and an extended answer is needed. For it is a known issue. Currently, the issue is not fixed yet and the current scripting engine will be replaced by a new one in IE 9. You also can post