You are not logged in.
Pages: 1
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
^ Thanks I fixed that now
Offline
Your welcome.
Offline
Thanks............
http://www.nova.edu/
http://www.learnalanguage.com/
Offline
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
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
Thanks!
I just exploring PowerShell and this useful site as you have surely noticed.
Offline
Pages: 1