![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | commenting lines What is the special character to comment out lines ? in *.vbs , the comment line is ' so what is for *.ps1 ? |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: commenting lines "IT Staff" <jkklim@hotmail.com> wrote in message news:%23zfLShGNHHA.536@TK2MSFTNGP02.phx.gbl... > What is the special character to comment out lines ? > > in *.vbs , the comment line is ' > > so what is for *.ps1 ? It is the # character - comments out until end of line. -- Keith |
My System Specs![]() |
| | #3 (permalink) |
| Guest | RE: commenting lines There isn't a way to comment a block of lines directly in PowerShell - need to use a here string. See the post "Commenting out a Block" -- Richard Siddaway Please note that all scripts are supplied "as is" and with no warranty "IT Staff" wrote: > What is the special character to comment out lines ? > > in *.vbs , the comment line is ' > > so what is for *.ps1 ? > > > |
My System Specs![]() |
| | #4 (permalink) |
| Guest | RE: commenting lines "IT Staff" wrote: > What is the special character to comment out lines ? > > in *.vbs , the comment line is ' > > so what is for *.ps1 ? As other has mentioned, comment character is "#" but it's just for commenting out oneline. There is no block comment characters in PowerShell v.1.0 but there is a useful Newsgroup post for a walk-around. http://www.microsoft.com/communities...1-21b2f3bf21a7 |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| XPS PRinting and Commenting Similar to PDF Abilities | Mills Architect | Vista print fax & scan | 0 | 04-24-2007 12:26 AM |
| Lines on Emails | David Williams | Vista mail | 2 | 02-28-2007 09:19 AM |
| Commenting out a block | John Smith | PowerShell | 5 | 12-29-2006 08:20 AM |
| Lines! | ta | Vista hardware & devices | 2 | 07-04-2006 01:21 PM |
| treeview with lines | Benoist.Demeure | Avalon | 0 | 03-14-2006 07:29 AM |