Jump to content
Sign in to follow this  
AntiVirusGuy

cut filename out of path

Recommended Posts

AntiVirusGuy

runasset($user,$domain, $password)

$launchfile= GUICtrlCreateInput("", 8, 56, 553, 21, -1, $WS_EX_CLIENTEDGE)

GUICtrlSetState(-1,$GUI_ACCEPTFILES)

Run($launchfile, $launchfile - filename)??????????

using the runasset command I have to specify the working directory to work on our domain I have tried everyway around it any ideas?

Share this post


Link to post
Share on other sites
LxP

Local $FilePath = 'C:\Program Files\Program Folder\Program.exe'
Local $FileFolder = StringLeft($FilePath, StringInStr($FilePath, '\', 0, -1) - 1)

Share this post


Link to post
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
Sign in to follow this  

×