harryKumar Posted March 31, 2015 Share Posted March 31, 2015 Please help me.... My batch command>>>>> @echo off setlocal enabledelayedexpansion COLOR 0A mode con:cols=81 lines=20 cls echo harryKumar >> log.txt echo ^|%date% -- %time%^| >> log.txt mkdir upx cls echo __________________________________________________________________________________________________________________________________________________________________ echo upx echo --- echo Option echo ------ echo 01 UPX (input exe,dll 'UPX' folder output 'UPX' folder) echo 02 Quit echo __________________________________________________________________________________________________________________________________________________________________ SET /P menunr=Please make your decision: IF %menunr%==01 (goto UPXP) IF %menunr%==02 (goto quit) :WHAT echo You went crazy and entered something that wasnt part of the menu options PAUSE Start.bat SET /P menunr= Start.bat :UPXP cls other\upx.exe -9 -f -k UPX\*.exe >> log.txt cls other\upx.exe -9 -f -k UPX\*.dll >> log.txt cls Start.bat 66726565776172656F6E74686973373737 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 31, 2015 Moderators Share Posted March 31, 2015 harryKumar,Welcome to the AutoIt forums. What have you tried so far? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Zedna Posted March 31, 2015 Share Posted March 31, 2015 (edited) You may look here at my old example demonstration how to run DOS commands and catch its output and show it in GUI '?do=embed' frameborder='0' data-embedContent>> Don't forget to look into AutoIt's helpfile ;-) Edited March 31, 2015 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
SadBunny Posted March 31, 2015 Share Posted March 31, 2015 (edited) Converting 1-on-1 batch to autoit (directly porting it, so to speak) isn't the correct way to approach this challenge. You'll end up with a bad port, like a game ported from the console to the PC where the instructions still only mention the console buttons. A better way to go about it would be to start from scratch by writing down a bullet list of what you want your application to do and which interactions with user or system it needs to do, and then try to solve the separate bullets piece by piece by writing autoit code for it. Feel free to ask for more specific help on any subtask, or help with designing your script. That's what people here enjoy helping with much more than just "I have this and I need that" Do it like this, and a- you don't end up with a badly written and chaotic port, and b- you'll learn and enjoy more in the process. What's more, you're much more likely to get useful help on this forum if you go through a "software design phase" publicly Good luck! Ideas for subtasks that are easy to approach as separate challenges and then combine into the main project: write to a logfile execute a system command and capture output execute code in subroutines as a function present a simple choice menu to the user ... etc... Edited March 31, 2015 by SadBunny Roses are FF0000, violets are 0000FF... All my base are belong to you. 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