Jump to content

set multiple path at environment variables in windows and run it using autoit


Recommended Posts

i have one application that need to run under below condition:

1. the application start in at path : C:\NETSL\system\Config

2. the target path is C:\NETSL\system\netsl.exe


if i run the application using only C:\NETSL\system\netsl.exe , the application run differently. 

so, i thinking to set the path at environment variable but nothing happened. 
what i do is i set the variable at control panel - > System -> advanced system settings -> environment variables 
    
 

  variable  name = TEST_PATH
    variable value = C:\NETSL\system\Config;C:\NETSL\system\netsl.exe

and run using autoit:

   

Local $sEnvVar = EnvGet("TEST_PATH")
MsgBox("","", $sEnvVar )
ShellExecuteWait($sEnvVar)

am i doing it wrongly?

i also need to run another application as below:

1. C:\NETSL\system\initnetsl.exe "C:\NETSL\system\Config\Users.xxx"

but i dont know how to called the exe. any idea?

Edited by lattey
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...