DaRkMaDnEsS Posted February 17, 2010 Share Posted February 17, 2010 (edited) well hello what i'm searching for expanding the $CmdLine with more option just line in the command prompt the %1 get the input and %~f1 full path name here is the a list shows what i'm talking about hope any one can help me i need the path one as i need to run my program like this DM.exe file name it get called from a cmd and the DM.exe is in the system32 i want it to get the full file name with path Edited February 17, 2010 by DaRkMaDnEsS Link to comment Share on other sites More sharing options...
Xenobiologist Posted February 17, 2010 Share Posted February 17, 2010 (edited) Did you look at the macro section in the helpfile? Edited February 17, 2010 by Xenobiologist Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
DaRkMaDnEsS Posted February 17, 2010 Author Share Posted February 17, 2010 Did you look at the macro section in the helpfile?well i have looked into the help file but i couldn't find any thing to help and searched the forum but couldn't find any thing that can help me i'm working on a console version of autoit so from the cmd when i call the program with a parameters (file name)the program gets the parameters correct but it needs the path to the file i sent so i can work on it Link to comment Share on other sites More sharing options...
ProgAndy Posted February 17, 2010 Share Posted February 17, 2010 (edited) @ScriptFullPath is @ScriptDir and @ScriptName combined the first commandline parameter is $CMDLINE[1]. $CMDLINE[0] number of parameters. You can find all this in the helpfile. What else do you need? maybe @WorkingDir is the current working directory? With these variables and macros you can build the path you need. Edited February 17, 2010 by ProgAndy *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes Link to comment Share on other sites More sharing options...
XKahn Posted February 17, 2010 Share Posted February 17, 2010 To add, if this program's path is recorded in the registry you could use; $var = RegRead ("keyname", "valuename") Hope that helps. Link to comment Share on other sites More sharing options...
DaRkMaDnEsS Posted February 17, 2010 Author Share Posted February 17, 2010 @ScriptFullPath is @ScriptDir and @ScriptName combined the first commandline parameter is $CMDLINE[1]. $CMDLINE[0] number of parameters. You can find all this in the helpfile. What else do you need? maybe @WorkingDir is the current working directory? With these variables and macros you can build the path you need. thx the macro i didn't test was @WorkingDir it seems that it gets the dir from the cmd thx that what i was searching for Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now