powershell - The term 'cpdf' is not recognized as the name of a cmdlet, function, script file, or operable program -


i have downloaded cpdf because have batch work on large number on pdfs.

the executable on desktop: c:\users\admin\desktop\cpdf.exe

i running powershell ise on windows 7 administrator. have set set-executionpolicy unrestricted.

my prompt @ desktop location: ps c:\users\ftsadmin\desktop> if try run cpdf: ps c:\users\ftsadmin\desktop> cpdf or ps c:\users\ftsadmin\desktop> cpdf.exe, following error:

the term 'cpdf.exe' not recognized name of cmdlet, function, script file, or operable program. check spelling of name, or if path included, verify path correct , try again. @ line:1 char:9 + cpdf.exe <<<<      + categoryinfo          : objectnotfound: (cpdf.exe:string) [], commandnotfoundexception     + fullyqualifiederrorid : commandnotfoundexception

i don't understand. when doing same in windows xp vm, works (but prefer windows 7+ because of powershell ise).

any ideas i'm missing?

unlike cmd powershell not automatically include current directory in search path (it behaves unix shells in respect). run program or script current directory need use relative or absolute path:

.\cpdf.exe c:\users\ftsadmin\desktop\cpdf.exe 

the execution policy has nothing this, governs execution of powershell scripts, not of external commands.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -