Newbie Tcl Question



Hello,

In Tcl, how can I extract the file name from a string that contains
the fullpath to the file, like so: C:\results\log\file.txt

How can I retrieve the 'file.txt' substring from the above string?

Thanks,
Nadeem

.



Relevant Pages

  • Re: Getting command line of another process
    ... It seems to be very complicated code just to retrieve the command line of a process. ... static public bool RetrieveUserModeProcessString(IntPtr HandleProcess, IntPtr PageBaseAddress, UInt32 UnicodeStringOffset, out string Result) ... UInt32 UnicodeStringSize = 8; ... pStringContent = Marshal.AllocCoTaskMemStringLength); ...
    (microsoft.public.win32.programmer.kernel)
  • Extract zip file from email attachment
    ... I'm trying to extract zip file (containing an xml file) from an email ... retrieve the zip file attachment, and unzip into a string for xml ...
    (comp.lang.python)
  • Very simple Java problem, please help
    ... delete latent messages and nicknames that linger on the server more ... I set up a few JSP scripts that will retrieve and remove these files by ... @param String fileName ... Vector contentVector = getFileContents; ...
    (comp.lang.java.programmer)
  • Very simple Java problem, please help
    ... delete latent messages and nicknames that linger on the server more ... I set up a few JSP scripts that will retrieve and remove these files by ... @param String fileName ... Vector contentVector = getFileContents; ...
    (comp.lang.java.help)
  • Re: Getting command line of another process
    ... It seems to be very complicated code just to retrieve the command line of a ... HandleProcess, IntPtr PageBaseAddress, UInt32 UnicodeStringOffset, out string ... pUnicodeStringAddress, pUnicodeString, UnicodeStringSize, out ... pStringContent = Marshal.AllocCoTaskMemStringLength); ...
    (microsoft.public.win32.programmer.kernel)