Search found 18 matches
- Fri Jun 03, 2011 2:45 am
- Forum: PowerShell
- Topic: How to get exception in catch block
- Replies: 2
- Views: 1904
How to get exception in catch block
Use the $error collection. Specifically $error[0] will be the last error thrown.
- Fri Jun 03, 2011 2:24 am
- Forum: PowerShell
- Topic: Proxy Problems
- Replies: 1
- Views: 1939
Proxy Problems
The Net.WebClient object does have a .Proxy property. I would suggest setting that then trying the download:
http://msdn.microsoft.com/en-us/library ... 2011-06-03 09:24:40
http://msdn.microsoft.com/en-us/library ... 2011-06-03 09:24:40
- Thu Jun 02, 2011 8:37 am
- Forum: PowerShell
- Topic: get-content | start at line # 100
- Replies: 3
- Views: 8141
get-content | start at line # 100
Well one way is:
$fileContent = Get-Content 'C:PathToFile.txt'
$fileContent[99..100]
That would get you line 100 and 101.
$fileContent = Get-Content 'C:PathToFile.txt'
$fileContent[99..100]
That would get you line 100 and 101.
- Fri Mar 02, 2007 1:49 am
- Forum: PrimalScript
- Topic: Default Dir for Untitled Scripts
- Replies: 2
- Views: 2237
Default Dir for Untitled Scripts
Thanks Don.
- Tue Feb 20, 2007 3:52 am
- Forum: PrimalScript
- Topic: Default Dir for Untitled Scripts
- Replies: 2
- Views: 2237
Default Dir for Untitled Scripts
As usual I'm sure it is simply an issue of me not seeing the obvious. Is there a way to set a specific directory where untitled scripts will be saved when you run them without explicitly saving them first. Currently they are saved in the PWD which means I wind up with Untitled*.vbs files all over my...
- Wed Jan 17, 2007 11:52 pm
- Forum: PrimalScript
- Topic: Output Pane
- Replies: 0
- Views: 5103
Output Pane
I just wanted to drop in and thank the dev team for addressing the Output pane on a second monitor issue.
- Thu Dec 07, 2006 4:37 am
- Forum: PrimalScript
- Topic: Line Wrap
- Replies: 22
- Views: 16718
Line Wrap
I won't dispute it, but I would say that it simply means that our brains must work differently. If I had to do anything that involved understanding the logic and structure of either of the above examples, then I would have to add formatting to figure it out.
- Thu Dec 07, 2006 4:22 am
- Forum: PrimalScript
- Topic: Line Wrap
- Replies: 22
- Views: 16718
Line Wrap
The sample I posted was merely to post some HTML both with artificial line breaks and as a single line to show that neither is really better than the other imo. They both suck roughly equally.
- Thu Dec 07, 2006 3:57 am
- Forum: PrimalScript
- Topic: Line Wrap
- Replies: 22
- Views: 16718
Line Wrap
The previous post illustrates the topic under discussion if I understand it correctly. The request is for PS to display code as it is shown in the first example instead of as it displays it now (the second example). Personally I think they both suck roughly equally and that as was suggested earlier,...
- Thu Dec 07, 2006 3:53 am
- Forum: PrimalScript
- Topic: Line Wrap
- Replies: 22
- Views: 16718
Line Wrap
So you think that this:!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en"><head><meta http-equiv="Content-Type&qu...