Search found 12369 matches

by jvierra
Mon Jul 11, 2011 11:07 pm
Forum: Windows PowerShell
Topic: Merge excel cells.
Replies: 72
Views: 13465

Merge excel cells.

Sorry but I have done this for you three different ways. Every time I show you how to do it you start changing things in ways that make no sense. Please try to learn one thing at a time. Look at you send mail line. What is it trying to do? It doesn't look anything like an example and what you have d...
by jvierra
Mon Jul 11, 2011 6:22 pm
Forum: Windows PowerShell
Topic: Difference between who two sets of objects
Replies: 4
Views: 1203

Difference between who two sets of objects

Try this:
get-content .servers.txt | where{Test-Connection $_ -q -count 1}
or this:
get-content .servers.txt | where{!(Test-Connection $_ -q -count 1)}
by jvierra
Mon Jul 11, 2011 5:56 pm
Forum: Windows PowerShell
Topic: Difference between who two sets of objects
Replies: 4
Views: 1203

Difference between who two sets of objects

It is not possible to answer this without you posting your code.

What output is being derived?
Why would you use both of these in the same script?

by jvierra
Mon Jul 11, 2011 10:34 am
Forum: PrimalScript
Topic: Support for file compilation.
Replies: 8
Views: 486

Support for file compilation.

I just discovered that in 2011 the regex seems to now be working. Is there a way to define a custom project type in 2011. I suspect it can be done. The debugger for C# and VB.NET still does nothing in 2011. No problem except that it means defining a whole project in VS 2010 which is a big pain for s...
by jvierra
Mon Jul 11, 2011 10:08 am
Forum: PrimalScript
Topic: Support for file compilation.
Replies: 8
Views: 486

Support for file compilation.

I just decided to see if I could use PrimalScript to compile C# file. It didn't work because the path to CSC is not in the environment by default. I reconfigured and put in the full path to CSC.exe and the compile proceeded as expected. We now get a nice little EXE but cannot exexcute it with any me...
by jvierra
Mon Jul 11, 2011 4:44 am
Forum: Windows PowerShell
Topic: Merge excel cells.
Replies: 72
Views: 13465

Merge excel cells.

: A positional parameter cannot be found that accepts argument 'jermaine.grant@.com'.At line:41 char:28+ send-mailmessage <<<< -to jermaine.grant@.com ` -from jermaine.grant@.com ` -BodyAsHtml $htmlBody ` -smtpserver smtp.com ` -subject 'My report' ` -dno onSuccess, onFailure + CategoryInfo : Inval...
by jvierra
Mon Jul 11, 2011 3:30 am
Forum: Windows PowerShell
Topic: Merge excel cells.
Replies: 72
Views: 13465

Merge excel cells.

Cmon -grantb You are missing teh line contiuator character. The message is completely obvious. Missing expression after unary operator '-'.At line:42 char:5 This means that a continuation line is being processd as a main line. Just add the continuator to the previous line and it will wotk.
by jvierra
Mon Jul 11, 2011 2:08 am
Forum: Windows PowerShell
Topic: Merge excel cells.
Replies: 72
Views: 13465

Merge excel cells.

Code: Select all

$_ | Add-Member -MemberType NoteProperty -Name Status -Value 'Deleted' -PassThru
by jvierra
Mon Jul 11, 2011 1:41 am
Forum: Windows PowerShell
Topic: Merge excel cells.
Replies: 72
Views: 13465

Merge excel cells.

Here is an example of a custom maul report. This tool only a few minutes to create. This is what is displayed in the body of the email. The formatting is easily changed. I used the formatter because its exagerations show what is affected where. My Little Service Report name status Alerter Stopped AL...
by jvierra
Mon Jul 11, 2011 1:00 am
Forum: Windows PowerShell
Topic: Merge excel cells.
Replies: 72
Views: 13465

Merge excel cells.

Each line of text appears like this, Deleting unattached DB file C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLDATAabnd antoher.mdf Deleting unattached DB file C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLDATAanother db.mdf Deleting unattached DB file C:Program FilesMicro...