2,020 reputation
418
bio website
location Lombard, IL USA
age 58
visits member for 2 years, 2 months
seen Aug 26 at 23:57

Jul
29
comment Processing files with names that contain a “^” (Carat), inWindows
@and31415 - Thanks, your solution worked for me. If you put it in an answer, I'll accept it. It's funny, I have used this feature before, and I thought I had tried it for this and it didn't work. It's working now.
Jul
29
comment Processing files with names that contain a “^” (Carat), inWindows
@nixda - Thanks for the Powershell solution, I'll give it a try. I am not at all proficient in Powershell (yet), so I was looking for a Windows Batch solution.
Jul
19
comment Processing files with names that contain a “^” (Carat), inWindows
Thanks, I'll give this a try as it seems easier than my solution.
Jul
19
answered Processing files with names that contain a “^” (Carat), inWindows
Jul
19
asked Processing files with names that contain a “^” (Carat), inWindows
Jul
19
comment Start Windows with previously open programs
This looks great, and I'll be trying this out soon. Will this (Get-Process) capture only the process "D:\path\program.exe", or will it (can it) also capture the process full-command-line or command-line-arguments?
Jul
19
comment Why won't my diff.exe run from cmd line?
Does it work from a cmd.exe window if you type start [/wait] "" diff.exe a.txt b.txt? See the answers to this question: (stackoverflow.com/q/3114618/606539) and some of the comments there for some related info.
Jul
19
comment Why won't my diff.exe run from cmd line?
What is the value of the "(default)" entry for your [HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\diff.exe] key?
Jul
19
comment Why won't my diff.exe run from cmd line?
Have you tried @AFH suggestion of %*, instead of *$, like @"C:\Program Files (x86)\git\bin\diff.exe" %* ?
Jul
18
revised How to fix router Wi-Fi random down-time?
Corrected spelling of "buy" and clarified abbreviation.
Jul
18
suggested suggested edit on How to fix router Wi-Fi random down-time?
Jul
5
awarded  Yearling
Jun
2
comment Is it better to check if file exists before deleting it
Thanks, this is exactly what I need.
Jun
2
accepted Is it better to check if file exists before deleting it
Jun
2
comment Is it better to check if file exists before deleting it
In the case I am talking about, it's not that I "expect" that the file "should" exist, but only that I expect it will exist most of the time. What I mean, is that the file will hold something temporary, and after running the script a few times, the temporary file will usually be present the next time the script is run. But, I do see your point about the case where it might be considered an error if the file is NOT pre-existing.
Jun
2
comment Is it better to check if file exists before deleting it
@MichaelKjörling - Thanks for catching my missing &&. I am sure it was there when I was writing it, but I must have somehow lost it before posting.
Jun
2
comment Is it better to check if file exists before deleting it
@barlop - 1) my rm is not aliased to rm -i, so an "Enter" is not necessary to dismiss the rm prompt. 2) I only have 1 rm in each case, so I don't know what you mean about using rm twice. 3) [ -f "temp.txt" ] && rm "temp.txt" is to only run rm if file exists, I do NOT mean [ rm -f "temp.txt" ] &&.... 4) Double-quotes... I am just in the habit of always using Double-quotes ("...") to quote filenames because filenames may contain one or more embedded apostrophe ('). In this example, I could have used either.
May
31
asked Is it better to check if file exists before deleting it
May
27
awarded  Scholar
May
27
accepted how to use standard output from multiple commands as file arguments