#1 09 Aug 2012 07:48

eBaster
Member
Registered: 09 Aug 2012
Posts: 2

Compliments and feedback

I've using this site for many years. It is always a pleasure to use it. The info is accurate and easy to find.
Thanks for that.
One little thing just came up. I was using the example empty.cmd and came in to trouble with the core statement.

DIR %pathpdf% /B | FIND /V "SomeRandomString2468" >nul && (SET _empty=Not Empty) || (SET _empty=Empty)

Querying on the %_empty% with an IF statement returnd an error. The "Not Empty" value is not handled correctly. The "Not" part was interperted as part of the command.
I used "IF [%_empty%]==[Empty]" and cmd.exe replied with "Empty]==[Empty] is not expected at this point". Changing "Not Empty" into "NotEmpty" solved this issue.

Offline

#2 10 Aug 2012 19:17

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 899
Website

Re: Compliments and feedback

^ Thanks I fixed that now

Offline

#3 12 Aug 2012 07:27

eBaster
Member
Registered: 09 Aug 2012
Posts: 2

Re: Compliments and feedback

Your welcome.

Offline

#4 09 Jan 2015 05:47

blackrosegul
New Member
Registered: 09 Jan 2015
Posts: 1

Re: Compliments and feedback

Thanks............  wink


http://www.nova.edu/
http://www.learnalanguage.com/

Offline

#5 21 May 2015 12:32

aGoogleUser
New Member
Registered: 21 May 2015
Posts: 2

Re: Compliments and feedback

This doesn't work (anymore?)

If I use the script below which is available on site

http://ss64.com/ps/syntax-functions.html

I just get this displayed

Forbidden

You don't have permission to access /ps/.html on this server.


Am I doing something wrong?
Do I have to unlock something special?

Thanks


Copy From Page
A function to display PowerShell help on SS64.com, this will launch your default web browser:

 function Get-Help2
 {
   param{[string]$command}
   Start-process -filepath "http://ss64.com/ps/$command.html"
 }

PS C:\> Get-Help2 set-acl

Offline

#6 21 May 2015 19:41

Simon Sheppard
Super Administrator
Registered: 27 Aug 2005
Posts: 899
Website

Re: Compliments and feedback

Schoolboy error, I used the wrong brackets.

I fixed the page now but this is what you need:

 function Get-Help2
 {
   param([string]$command)
   Start-process -filepath "http://ss64.com/ps/$command.html"
 }

PS C:\> Get-Help2 set-acl

Offline

#7 22 May 2015 08:34

aGoogleUser
New Member
Registered: 21 May 2015
Posts: 2

Re: Compliments and feedback

Thanks!
I just exploring PowerShell and this useful site as you have surely noticed.  big_smile

Offline

Board footer

Powered by FluxBB