Jump to content

declare variable


Recommended Posts

i would like to declare the $destination variable, but not sure what to use to get to the server.

thank you for any ideas.

$destination = @??? & "\\server\apps\vbscripts\Images\networkfax.jpg"

SplashImageOn("Network Fax", $destination,255,39)
Sleep(5000)
SplashOff()

this works, but would still like to declare the $destination:

SplashImageOn("Network Fax", "\\server\apps\vbscripts\Images\networkfax.jpg",255,39)
Sleep(5000)
SplashOff()
Link to comment
Share on other sites

What I've done in the past is to start the script from the server and that way I can pull the drive letter from @ScriptDir

$drive_Letter = StringLeft(@ScriptDir, 3)

Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance.

Link to comment
Share on other sites

  • Moderators

What I've done in the past is to start the script from the server and that way I can pull the drive letter from @ScriptDir

$drive_Letter = StringLeft(@ScriptDir, 3)

Might have a look at _PathSplit

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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...