randallc Posted November 3, 2005 Share Posted November 3, 2005 (edited) Needs Beta AutoIt3; put in include" directory//1.27 Added Concatenate, synchDOS, ArrayView2DBeta version hereDOScoms.au3 ; version 1_05 ;3rdNov 05 proposed project "any offers to do or modify a func accepted!"Let me know if it's all been done .....somewhere.....Has this been done //// ? is it worth doing?Philosophy is to :1. Avoid (or only make as options), using large strings or arrays, due to bloating of memory and slowing of speed; 2. Mainly use FileWriteLine, then read files at end.3. Avoid quotes and switches (optionally) and make more readable than DOS for occasional users.Best, RandallDOScoms.au3 ; version 1_05 ;3rdNov 05 proposed project randallc@ozemail.com.au===================PARTLY DONE, AND EXAMPLES +=============================================== EXAMPLES_DirDOS($s_Path,$s_Mask,$s_AnswerFile,$s_Switches,$i_Array,$i_Recurse) _DIR($Folder , $Opts ) ....c/o slimShady _DirSortByNameDOS($s_AnswerFile,$s_Path,$s_Mask,$i_Recurse,$i_Reverse,$i_Array,$i_NameOnly) _DirSortByDateDOS( $s_AnswerFile,$s_Path,$s_Mask,$i_Recurse,$i_Reverse,$i_Array,$i_NameOnly) _RenameDOS($s_file,$s_new_file) _DeleteFoundLineDOS($s_file,$s_Exclude) _FindLinesDOS( $s_file, $s_AnswerFile,$s_Searches,$i_Case,$i_Array,$i_Literal) _SortFileDOS($s_file, $s_AnswerFile,$s_Switches) _XCopyDOS(ByRef $s_AnswerFile,$s_SourcePath,$s_DestPath,[$s_Mask="*.*",[$i_Recurse=0,[$i_Synchcopy=0,[$i_IfNewer=1,[$i_ListOnly=0],[$s_Switches=""]]]]]) ;Default /d/i/s/c/k/y/f/h _SynchDOS(ByRef $s_AnswerFile,$s_SourcePath,$s_DestPath,[$s_Mask="*.*",[$i_Recurse=0]])_MoveDOS($s_SourcePath,$s_DestPath,$s_Mask="*.*",$DirOnly)_RenameFolderDOS($s_SourcePath,$s_DestPath) ===================PROPOSED==================================================================PROPOSED derivatives===============================================_ReplaceLineDOS($s_file, $s_new_file,$LineNum, $NewLine) [ie without using memory for file....[[from "_FindLinesDOS"]_FindLineNumsDOS( $s_file, $s_AnswerFile,$s_Searches,$i_Case,$i_Array,$i_Literal) [from "_FindLinesDOS"]==========================================================================================================================There is a lot of interest in DOS commands at times [speed, multiple switch options, familiarity, open large files which cant be opened by fileOpen etc], so I thought I'd try to put them in UDFs, so we don't have to use switches or quotes in "Run@comspec " or "RunWait@comspec " or "_RunDos" etc.; [ie it will be all hidden inside the UDFs] Let me know if it's all been done ..... [Title should exclude "quotes", not "commas"][2nd project will be to convert these UDFs to COM commands which can match DOS speed without using @comspec at all (won't have so many switches available, at least initially)] .... any help with ideas , and better script or parameters will be open to anyone to build, with great welcome! (I have some ideas, but not great with programs...)Best, Randall Edited November 15, 2005 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
w0uter Posted November 3, 2005 Share Posted November 3, 2005 to bad i like std more but it looks nice. certainly helpful for noobies. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
randallc Posted November 3, 2005 Author Share Posted November 3, 2005 (edited) My Bookmarks; RandallcRandall....ExcelCOM UDF.....SMSsend...WebLogin.....FindStr in DOS....LinkFrames2_1.au3...GUICtrlCreateListViewItemExample2.au3 Date format ex....DOS Xcopy GUI...Time to Str RegEx...DisplayArray..._DeleteFileLine...DOScoms.au3...Array2D.au3...recursive request.....BookmarksRandallc.....SQL_ListViewGUIexplanation......SearchEngineBrian...http://ftp.gwdg.de/pub/languages/rexx/brexx/html/string.html...http://www.ilook.fsnet.co.uk/index/rexstr.htm...http://nokix.pasjagsm.pl/help/learn_rexx/funcs2.htm....Rexx stringfunctions for AutoIT3...._FileReplaceStringETC..._FileWriteToLine...FINDSTRAU3...Autoit Wrappers....MSACCESSobj...Script/Text - search....Autoit Wrappers, Great additions to your script..Regexp Guide...Array2Ds UDF...VBScript to AutoIt Converter....Listview/gui Number Of Records LimitationMy Bookmarks; Randall;=====================================================================Randall.....ExcelCOM UDF...DOScoms.au3...Array2D.au3...recursive request.....BookmarksRandallc...SQLite in AutoIT...SQL UDFFile Search...Autoit3Ex.au3 Randall.....ExcelCOM UDF...recursive request.....BookmarksRandallc...SQL UDF...File Search...Autoit3Ex.au3 ...Regexp Guide...Array2D UDFDOS ***** againUdf _foldersize, A lateral solution Sorting files _FileSearch, Using STD Sorting filesExcelCOM...recursives...Bookmarks...File Search...Regexps...SQL...Explorer...Array2D.au3.... _GUIListView...TailRW.au3...StringRegExpVBS.au3.. AccessCom.. Word2 Edited September 12, 2006 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
w0uter Posted November 3, 2005 Share Posted November 3, 2005 (edited) std uses up a string wich uses memory. i got 1 GB of RAM so i wouldnt know how slower systems handle a large string. i think it is neglectable. Edited November 3, 2005 by w0uter My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
randallc Posted November 4, 2005 Author Share Posted November 4, 2005 OK, added XcopyDOS, MoveDOS, SynchDOS v1.07 Best, randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW 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