User-Defined Local Process Trouble

BatchPatch Forums Home Forums BatchPatch Support Forum User-Defined Local Process Trouble

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8939
    timvb
    Participant

    I’m trying to set up a process to connect to the host via TeamViewer. I have the command as:

    “C:Program Files (x86)TeamViewerTeamviewer.exe” -i $computer

    I’ve tried a few different variations, but I always end up with “Error: The parameter is incorrect”.

    Thanks!

    #10395
    doug
    Moderator

    BP is not parsing the space in your path properly. You essentially have two options:

    1. Run this instead:

    cmd.exe /c "C:Program Files (x86)TeamViewerTeamviewer.exe" -i $computer

    OR

    2. If you have Teamviewer in a path with no spaces, such as the following, it would also work:

    "C:SomeDirWithNoSpacesTeamViewerTeamviewer.exe" -i $computer

    #10396
    timvb
    Participant

    Awesome thank you doug, I could have swore did try that first option. You’re the best.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.