|
|
|
DD383200.HTM DD-Software.WinBatch One Line Functions Add this page to your favorites Save this document |
|
|
|
|
If you have questions about WinBatch, you are encouraged to use online WebBoard BBS at http://webboard.windowware.com
|
|
|
|
|
StrTrimL
|
|
If you have questions about WinBatch, you are encouraged to use online WebBoard BBS at http://webboard.windowware.com
|
|
|
|
|
File_Line_No
|
|
If you have questions about WinBatch, you are encouraged to use online WebBoard BBS at http://webboard.windowware.com
|
|
|
|
|
ByteToHexiByte = 221 ; input Byte = 0..255 ; returns uppercase HexChars = "0123456789ABCDEF" ByteToHexU = StrCat(Num2Char((iByte>>4)+48+7*((iByte>>4)>9)),Num2Char((iByte&15)+48+7*((iByte&15)>9))) ; input Byte = 0..255 ; returns lowercase HexChars = "0123456789abcdef" ByteToHexL = StrCat(Num2Char((iByte>>4)+48+39*((iByte>>4)>9)),Num2Char((iByte&15)+48+39*((iByte&15)>9))) Exit |
|
If you have questions about WinBatch, you are encouraged to use online WebBoard BBS at http://webboard.windowware.com
|
|
|
|
|
AddBackslash
; AddBackslash
; Adds a backslash at end of a string if there is no backslash.
S="test"
If (StrSub(S,StrLen(S),1)!="\") Then S=StrCat(S,"\")
Message("",S)
S="test\"
If (StrSub(S,StrLen(S),1)!="\") Then S=StrCat(S,"\")
Message("",S)
Exit
|
|
If you have questions about WinBatch, you are encouraged to use online WebBoard BBS at http://webboard.windowware.com
|
|
|
|
|
FileRootExt; FileRootExt(sURL) ==> "FILENAME.EXT" sURL = "\\SERVER\SHARE\FOLDER\FILENAME.EXT" sURL = "D:\FOLDER\FILENAME.EXT" sURL = "D:FILENAME.EXT" sFileRootExt1 = StrCat(FileRoot(sURL),".",FileExtension(sURL)) sFileRootExt2 = StrReplace(sURL,FilePath(sURL),"") sFileRootExt3 = ItemExtract(-1,ItemExtract(-1,sURL,":"),"\") ; Fastest method. Exit |
|
If you have questions about WinBatch, you are encouraged to use online WebBoard BBS at http://webboard.windowware.com
|
|
|
|
|
IsAlpha
; This one line function "IsAlpha" returns a boolean value,
; which indicates if the given sString contains only alpha characters or not.
; 'Alpha characters' is the char set of [a-zA-Z].
iIsAlpha = ((""!=sString)&&(""==StrClean(StrLower(sString),"esdiltnmarcpohfguwbxkyvjqz","",@TRUE,1)))
Exit
|
|
If you have questions about WinBatch, you are encouraged to use online WebBoard BBS at http://webboard.windowware.com
|
|
|
|
DD383200.HTM DD-Software.WinBatch One Line Functions Add this page to your favorites Save this document |