![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Nothing - VBScript / Powershell In Powershell, what's the equivalent to NOTHING from VBScript? Thanks! Felipe |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Nothing - VBScript / Powershell "Carlos Felipe França da Fonseca" <carlosfelipefranca@xxxxxx> wrote in message news:eJ$kz7c9JHA.1336@xxxxxx Quote: > In Powershell, what's the equivalent to NOTHING from VBScript? > > Thanks! the same effect on variable association by using Remove-Variable. For example: $MyVar = 1234 Remove-Variable MyVar |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Nothing - VBScript / Powershell Come to think of it, John's suggestion is a close equivalent as well. The distinction between his method and mine is that if you set a variable to $null, the variable still exists (which is the case with setting a variable to Nothing in VBScript). "Alex K. Angelopoulos" <alex(dot) k(dot again)angelopoulos(at)gmail.com> wrote in message news:umonboS#JHA.5040@xxxxxx Quote: > "Carlos Felipe França da Fonseca" <carlosfelipefranca@xxxxxx> wrote in > message news:eJ$kz7c9JHA.1336@xxxxxx Quote: >> In Powershell, what's the equivalent to NOTHING from VBScript? >> >> Thanks! > There is no exact equivalent due to lazy garbage collection, but you can > get the same effect on variable association by using Remove-Variable. For > example: > > $MyVar = 1234 > Remove-Variable MyVar > > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| VBScript or Powershell ? | VB Script | |||
| Equivalent of powershell to vbscript command | PowerShell | |||
| Return Powershell Error to VBscript | PowerShell | |||
| VBScript vs. PowerShell error handling | PowerShell | |||
| Powershell does not terminate when started VBSCRIPT | PowerShell | |||