Sign in to follow this  
Followers 0
randallc

DOScoms.au3 [later "noDOS.au3" to mimic these]

5 posts in this topic

#1 ·  Posted (edited)

Needs Beta AutoIt3; put in include" directory//1.27 Added Concatenate, synchDOS, ArrayView2D

Beta version here

DOScoms.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, Randall

DOScoms.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 by randallc

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

My Bookmarks;

Randallc

Randall....

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 Limitation

My Bookmarks;

Randall

;=====================================================================

Randall.....ExcelCOM UDF...DOScoms.au3...Array2D.au3...recursive request.....BookmarksRandallc...SQLite in AutoIT...SQL UDF

File Search...Autoit3Ex.au3

Randall.....ExcelCOM UDF...recursive request.....BookmarksRandallc...SQL UDF...File Search...Autoit3Ex.au3 ...Regexp Guide...Array2D UDF

DOS ***** again

Udf _foldersize, A lateral solution Sorting files _FileSearch, Using STD Sorting files

ExcelCOM...recursives...Bookmarks...File Search...Regexps...SQL...Explorer...Array2D.au3.... _GUIListView...TailRW.au3...StringRegExpVBS.au3.. AccessCom.. Word2

Edited by randallc

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 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

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  
Followers 0