Jump to content

dman

Member
  • Posts

    708
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by dman

  1. I use autopatcher a lot. I don't always get to do the install, just the cleanup. autopatcher is much easier than installing manually or using windows update site when unpatched windows is already on machine.

  2. Something is happening because we are splitting on newline, and some lines only contain newline. havent tracked it down exactly.

    I tried replacing the newline with a extended ASCII char and did the split on that... seems to work but seems like there should be better way.

     Public Sub Alphabetize(ByVal Value As TextBox)
           frmNotepad.txtNotepad.HideSelection = True
           Dim str1 As String = Value.Text.ToString()
           Dim str2 As System.Text.StringBuilder = New System.Text.StringBuilder
           str2.Append(str1)
           str2.Replace(vbCrLf, Chr(234))
           Dim sArray As String() = str2.ToString.Split(Chr(234))
           Array.Sort(sArray)
           str1 = Join(sArray, vbCrLf)
           frmNotepad.txtNotepad.Text = str1 'Convert Array Back to String and Refill Textbox
           frmNotepad.txtNotepad.HideSelection = False
           CaretRefresh(frmNotepad.txtNotepad) ' Scroll txtNotepad to Caret Position
           SetCharacterPosition() ' Update Line / Character in Status Bar
           SetNoSelection() ' Remove Selection
       End Sub

  3. And, that relates to Microsoft and computers, HOW?

    Did I get in the wrong forum?

    :no:

    Thats why he put it in "General Discussion"

    --> "Talk about anything you like in general! (As long as it doesn't fit anywhere else)."

    I like the show, but never made a habit out of watching. Mia is a hottie!

  4. http://labmice.techtarget.com/articles/batchcmds.htm

    %~I  expands %I which removes any surrounding quotes (")

    %~fI  expands %I to a fully qualified path name

    %~dI  expands %I to a drive letter only

    %~pI  expands %I to a path only

    %~nI  expands %I to a file name only

    %~xI  expands %I to a file extension only

    %~sI  expands path to contain short names only

    %~aI  expands %I to the file attributes of file

    %~tI  expands %I to the date/time of file

    %~zI  expands %I to the size of file

    %~$PATH:I  searches the directories listed in the PATH environment variable and expands %I to the fully qualified name of the first one found. If the environment variable name is not defined or the file is not found by the search, then this modifier expands to the empty string.

    The modifiers can be combined to get compound results:

    Variable

    (with modifiers)  Description

    %~dpI  expands %I to a drive letter and path only

    %~nxI  expands %I to a file name and extension only

    %~fsI  expands %I to a full path name with short names only

    %~dp$PATH:I  searches the directories listed in the PATH environment variable for %I and expands to the drive letter and path of the first one found

    %~ftzaI  expands %I to a dir-like output line

×
×
  • Create New...