680 reputation
1410
bio website example.org
location United Kingdom
age
visits member for 3 years, 5 months
seen Jul 16 at 21:08

An IT guy.


2d
answered Ubuntu virtualbox host connection issues
Mar
15
comment Renaming multiple files inside a folder using Windows batch commands
I see; delims is a two item list ['_', '0'] instead of a two character string '_0' (I should have remembered that). And it works for img_300.jpg because tokens=1* makes %C = img, %D = the remainder. And the remainder is 300 instead of 300.jpg because %~nB has expanded just the filename without path or extension. Neat!
Mar
14
answered Disappearing space on HDD with Windows 7
Mar
13
comment Renaming multiple files inside a folder using Windows batch commands
You haven't done the hard bit of renaming the files and numbers from img_00N to photoN. You could use "$($_.Name -ireplace "img_(0+)", "photo").jpg" or "photo$($name.Split('_')[1].TrimStart('0')).jpg"
Mar
13
comment Renaming multiple files inside a folder using Windows batch commands
In the last loop, the delimiter _0 looks like it should result in img_001.jpg becoming photo01.jpg but it actually becomes photo1.jpg; how does it get rid of the middle 0? It works, but why does it work?
Mar
13
answered Renaming multiple files inside a folder using Windows batch commands
Mar
13
suggested suggested edit on Renaming multiple files inside a folder using Windows batch commands
Mar
12
comment The ed text editor and line feed
I notice a comment here: c2.com/cgi/wiki?EdIsTheStandardTextEditor saying the CP/M version of ed could edit \r and \n separately and they've never found another version that behaves the same, and a reply saying the Unix version never could because it's inherently a line editor, not a character editor -- implying to me that it would only have a "line end" character, i.e. \n in Unix land.
Mar
12
comment The ed text editor and line feed
I don't know for sure, but I wouldn't be surprised if \r was a meaningless concept to ed. e.g. stackoverflow.com/a/1761086/478656 point 1.
Mar
12
revised Skype cutting out and skipping my voice
Pruning words
Mar
12
suggested suggested edit on Skype cutting out and skipping my voice
Mar
12
answered The ed text editor and line feed
Mar
12
revised Internet access stops after 25 minutes during the day, works fine all night.
How many woulds would a woodchuck edit out if a wood chuck would be able to edit posts?
Mar
12
suggested suggested edit on Internet access stops after 25 minutes during the day, works fine all night.
Mar
11
comment Why does selecting a large number of files in explorer seem to adversely affect the ability to force delete them?
@fostandy just curious, what are you doing that you regularly need to delete thousands of files?
Mar
11
comment How to find out the outgoing server and port from outlook?
If you have Exchange server, why are you using POP3/SMTP and moving to Thunderbird? Exchange is expensive and if your company is not using MAPI / Outlook Anywhere, you're missing all its best sharing features - shared contacts and calendars, etc.
Mar
11
awarded  Yearling
Mar
11
revised Why does selecting a large number of files in explorer seem to adversely affect the ability to force delete them?
added code
Mar
11
comment Router communicating with webserver on lan
OK; what webserver is the Pi running? (Apache?) Look in the logs for it and it should tell you what web address the router is trying to get to. Or use iptraf (or tcpdump) to capture the whole network traffic - HTTP is not encrypted - and that will show you what the router is trying to load.
Mar
11
answered Why does selecting a large number of files in explorer seem to adversely affect the ability to force delete them?