Jump to content

Script for Pcanywhere


Recommended Posts

Hi

I made just a little script for pcanywhere. But I've got a problem.

$poste = InputBox("Pc", "number", "")

Run("C:\Program Files\Symantec\pcAnywhere\awrem32.exe C:\winnt\profiles\all users\Application Data\Symantec\pcAnywhere\Network,Cable,DSL.chf" /c$poste")

In the inputbox, you put the network name of the computer.

For example if you want to take control of the PC3000, you will have:

C:\Program Files\Symantec\pcAnywhere\awrem32.exe C:\winnt\profiles\all users\Application Data\Symantec\pcAnywhere\Network,Cable,DSL.chf" /cPC3000"

How can I put the string in this command ?

Thanks for your help

Link to comment
Share on other sites

Whenever you need to insert a variable to a string, use syntax like this:

$variable = InputBox("Title", "Prompt")
MsgBox(0, "Test", "This is my variable: " & $variable); <-- See how I joined $variable to the regular text?

Thanks that's great

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...