Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to reload with powershell

Hi,

I would like to reload a qvw with a powershell script. Does any one know how to do this?

No i have: start C:\Program Files\QlikView\qv.exe /r C:\QlikView\AccessPoint\Inkoop.qvw

When i try to run C:\Program Files\QlikView\qv.exe is started but when i add the parameters  i get this error.


PS C:\Users\QlikViewService> C:\Users\QlikViewService\Desktop\Reload.ps1

Start-Process : A positional parameter cannot be found that accepts argument '/r'.

At C:\Users\QlikViewService\Desktop\Reload.ps1:1 char:1

+ start C:\Program Files\QlikView\qv.exe /r C:\QlikView\AccessPoint\Inkoop.qvw

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidArgument: (:) [Start-Process], ParameterBindingException

    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I found the solution myself. The correct command should be:

Start-Process "C:\Program Files\QlikView\qv.exe" "/r C:\QlikView\AccessPoint\Inkoop.qvw"

View solution in original post

3 Replies
ziadm
Specialist
Specialist

Try to close command with double quote

"C:\Program Files\QlikView\qv.exe" /r "C:\QlikView\AccessPoint\Inkoop.qvw"

Anonymous
Not applicable
Author

Hi Ziad,

Thanks for your response Unfortunatly that's not the solution. When i try it this is the error i receive.

:\Users\QlikViewService> C:\Users\QlikViewService\Desktop\Reload.ps1

Start-Process : A positional parameter cannot be found that accepts argument 'C:\QlikView\AccessPoint\Inkoop.qvw'.

At C:\Users\QlikViewService\Desktop\Reload.ps1:1 char:1

+ start "C:\Program Files\QlikView\qv.exe" /r "C:\QlikView\AccessPoint\Inkoop.qvw"

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  + CategoryInfo : InvalidArgument: (:) [Start-Process], ParameterBindingException

  + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand

 

Anonymous
Not applicable
Author

I found the solution myself. The correct command should be:

Start-Process "C:\Program Files\QlikView\qv.exe" "/r C:\QlikView\AccessPoint\Inkoop.qvw"