Jump to content

Get command line parameters Utility v1.0.2.3 - Retrieve Switches of command line Tools - Update of 2012-06-30


wakillon
 Share

Recommended Posts

Each time I want try a Command Line Tool I don't remember his switchs ! :(

So I have made this little utility :

Get command line parameters Utility v1.0.2.3


20140214120908.png

The difficulty is they don't answer the same way or not at all ! :sweating:
Script start by trying common switches by 2 ways and leaves you try manually after.
You also have the possibility to use an embeded Dos Prompt instead of the edit box.
In all cases you can create a text file for save infos.
Type "ESC" for quit at any time.
A first run compiled is needed for install a contextual menu for exefile.

As usual externals files are downloaded at first execution.
See Tray menu for options.

Previous downloads : 628

Update 2012-06-30

Source : GetCommandLineParameters v1.0.2.3.au3

executableGetCommandLineParameters.exe.html

(Once this html file downloaded, double click on it for start the download)

 

Sure it will help you ! ;)

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

change

RegWrite ( 'HKEY_CLASSES_ROOT\exefile\shell\Get Command Line Parameters\Command', "", "REG_SZ", '"' & @ScriptFullPath & '" "%1"' )

with

RegWrite ( 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\exefile\shell\Get Command Line Parameters\Command', "", "REG_SZ", '"' & @ScriptFullPath & '" "%1"')

This will solve any incompatibillity issues you might encounter cross OS

Edited by Hellstrong
Link to comment
Share on other sites

Wow, this is great. I especially like this Aero style.

Thanks!

Edit: Is it possible to use this style on GUIs (on XP)?

Thanks ! Posted Image

Yes it's possible on msgbox, progressbar, splash, and gui too.

see my others skins examples in my signature.

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

change

RegWrite ( 'HKEY_CLASSES_ROOT\exefile\shell\Get Command Line Parameters\Command', "", "REG_SZ", '"' & @ScriptFullPath & '" "%1"' )

with

RegWrite ( 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\exefile\shell\Get Command Line Parameters\Command', "", "REG_SZ", '"' & @ScriptFullPath & '" "%1"')

This will solve any incompatibillity issues you might encounter cross OS

Your change create an incompatibillity issue for me ! Posted Image

When i do what you say my contextual menu disapears ! ( I'm on xp sp3 )

Or instead of change may be i should add your registry key ?

So which OS have you ?

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

  • 8 months later...

You could perhaps use SRE instead?

Func _GetNameWithoutExtByFullPath($sFile) ; Initially By MrCreatoR
    Return StringRegExpReplace($sFile, "^.*\\|\..*$", "")
EndFunc   ;==>_GetNameWithoutExtByFullPath

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

@guiness Posted Image

I made this function because it's reliable in all cases,

not like this one...

ConsoleWrite ( "result : " & _GetNameWithoutExtByFullPath ( @TempDir & '\ABBYY-Licensing-FineReader-Corporate-10.0.rollback' ) & @Crlf )

Func _GetNameWithoutExtByFullPath ( $sFile )
    Return StringRegExpReplace ( $sFile, "^.*\\|\..*$", "" )
EndFunc ;==> _GetNameWithoutExtByFullPath ( )

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

OK, can I be wrong just this once :unsure:

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

  • 5 months later...
  • 2 weeks later...

Well it's now 71 :D

Looks good! It will be in my tool box for future needs.

I did play with it and from what I saw it will do exactly what I want.

I'd prefer if it gave you the option of adding the explorer intergration and/or had an obvious way of removing it.

I'm thinking if I need to use it from a USB on a customers computer they will have this menu item that doesn't work.

Apart from that well done!

John Morrison

Link to comment
Share on other sites

Well it's now 71 :oops:

Looks good! It will be in my tool box for future needs.

I did play with it and from what I saw it will do exactly what I want.

I'd prefer if it gave you the option of adding the explorer intergration and/or had an obvious way of removing it.

I'm thinking if I need to use it from a USB on a customers computer they will have this menu item that doesn't work.

Apart from that well done!

John Morrison

Thanks for your feedback ! :D

And you are right, context menu can't be removed.

It will be a new feature of the next update ! :rip:

If you have other suggestions I'm all ears ! ( i'm not sure this expression exists in english... :) )

wakillon.

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

I grabbed it today and found it a trouble to get working

after i grabbed the winapi etc i then had to compile so it took a while to get up and running.

After that i was trying it on all sorts of stuff with little or no success, i was somehow under the impression it was for any file, like a silent switch finder..

So then i realised it was just cmd files so i had to hunt for them and tried it on .cmd

Then i realised it was for exe so had to think really hard what to use then i found a robocopy which worked

Whilst it worked on the few files i had, i used to write in cmd but i wouldn't know which files to check etc, so i didnt really find it that usefull, but thats not to say others wont.

Maybe an option to stop the popup, after the first few times i was finding it a little irritating every file i opened

Maybe a little clearer in what it does cos i sure didn't get it. (could just be me being dumb though)

I know you do good work with code and im sure there was a lot went into this but just not my cup of tea.

Link to comment
Share on other sites

wakillon,

If you're using WinAPEx.au3 then why not use the functions from there e.g.

_WinAPI_AssocQueryString('.html', $ASSOCSTR_EXECUTABLE) ; Get default browser
Plus, I still don't understand why you have to download to the C:Windows folder still.

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

@Chimaera

As i said in first post, script try to retrieve command Line Parameters of command line tools...

Which popup are you talking ?

Edit : See Tray menu for options.

@guinness

Because i didn't know it ! :D

Thanks for info !

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

  • 7 months later...

Updated.

Fewer MsgBox replaced by balloon tips and

As Storm suggested, i have added a uninstall menu for remove context menu ( or you can use /uninstall command line )

and corrected a little bug in the switches search.

Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

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

×
×
  • Create New...