• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Recent content by dcantor

  1. dcantor

    Disk name

    I had some luck doing this:alias drivenum=`(wmic diskdrive %@eval[0%1] get serialnumber) > x.tmp & tail /n1 x.tmp` drivenum 0 ADEADBEEF (<--fake hexadecimal result)
  2. dcantor

    Alias to extract a number from the clipboard

    No, SUM= isn't always there. In my first usage, it was, but I found more useful places for the function, so I generalized it. I also remove the commas so that I don't have to use @EVAL in it.
  3. dcantor

    Alias to extract a number from the clipboard

    I have a tool which allows me to extract the sum of a single field onto the clipboard, but there are extra characters. When I activate the hot key that saves the sum, the clipboard then contains (e.g.) "Sum=-12,345.67". There's no + sign if the sum is nonnegative. But what I want to paste...
  4. dcantor

    How to? SETLOCAL Level

    You don't need to decrement because the old value of LOCALCOUNT is already in (and unchanged in) the previous environment which ENDLOCAL returns you to. Here's an excerpt: ~\Work> alias setlocal=`*setlocal & set localcount=%@inc[0%localcount%]` ~\Work> alias setlocal *setlocal & set...
  5. dcantor

    How to? SETLOCAL Level

    I believe that the zero preceding %localcount% in the @inc expression takes care of the case where localcount has not been set. I've tested my own code now, and it works for me.
  6. dcantor

    How to? SETLOCAL Level

    Possible untested kludge workaround: alias setlocal=`*setlocal & set localcount=%@inc[0%localcount%]` Then you can query the value of %localcount%.
  7. dcantor

    Off-topic ... FIOS

    I can now connect with both domain names and both IP addresses using FileZilla.
  8. dcantor

    Off-topic ... FIOS

    FileZilla tells me "Server sent passive reply with unroutable address. Using server address instead." and fails to connect using the IP address or alt.vefatica.net. The site vefatica.net works.
  9. dcantor

    What are the TCC settings that will allow maximum cmd.exe compatibility?

    This topic is marked as sticky. Can someone please unstick it?
  10. dcantor

    FileUtils @ISABATCH feature request

    Thanks for the quick addition, Charles. Well, you can't invoke a .BAT file if you make an entry for it in AppPaths, but this addition allows @ISABATCH to return the name of a .COM or .EXE file found in AppPaths when invoked with flags=130 (or 131). Thank you. (Without the 128 flag, but...
  11. dcantor

    FileUtils @ISABATCH feature request

    The flags value lets you alter the function’s operation: 1 search the current directory before the search path 128 return the first matching filename, not a numeric value Please consider adding 2 search the apps in the Windows App Paths registry key...
  12. dcantor

    DIFFER questions....

    It probably has something to do with having two " characters together. Instead of set quoted=%@full["%f"], try set quoted="%@unquote[%@full[%f]]"
  13. dcantor

    ZIP/U compares wrong timestamp

    Assuming the user has somehow told Windows what the correct timezone settings are, you can find out whether DST is in effect and whether DST is even observed and what the offsets from UTC are. ~\Work> w32tm /tz Time zone: Current:TIME_ZONE_ID_STANDARD Bias: 300min (UTC=LocalTime+Bias)...
  14. dcantor

    Fixed Fileutils @CMPTIME

    Thank you. That definitely helps.
  15. dcantor

    Fixed Fileutils @CMPTIME

    = should be == ! Along with 16,821 other programmers, I've made the same mistake myself. Thanks.
Top Bottom