Re: Setting CMD-window title

2010-11-29 Thread mike smith
On Tue, Nov 30, 2010 at 4:59 PM, Ian Thomas wrote: > CMD.EXE - haha – I didn’t think it was open source J Does Microsoft know > that? No, I didn't think it was OS, but I'm fairly sure that their are OS versions of it that offer super and subsets of its functionality. Look at the number of shells

RE: Setting CMD-window title

2010-11-29 Thread Ian Thomas
John, I’ve never explored that, because when I quickly read the release notes it somehow did not seem appropriate. But I will check it out. Thanks for the prompt. _ Ian Thomas Victoria Park, Western Australia _ From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@o

RE: Setting CMD-window title

2010-11-29 Thread John Li
Some "thinking out loud":There is a compiled Windows DLL of the library version (librtmp); maybe that would suit your purposes? John > From: il.tho...@iinet.net.au > To: ozdotnet@ozdotnet.com > Subject: RE: Setting CMD-window title > Date: Tue, 30 Nov 2010 13:5

RE: Setting CMD-window title

2010-11-29 Thread Ian Thomas
CMD.EXE - haha - I didn't think it was open source :-) Does Microsoft know that? No, it is something called rtmpdump.exe - sorry, I was "thinking out loud", wordily. I'll do what I wrote, rather than burbling on here. _ Ian Thomas Victoria Park, Western Australia _ From

Re: Setting CMD-window title

2010-11-29 Thread mike smith
On Tue, Nov 30, 2010 at 3:49 PM, Ian Thomas wrote: > meski – the Notepad was cited as an example, I think. If you follow the > StackOverflow discussion, one person just would not back down on the general > statement that it is necessary for the called application to accept / not > update its title

Re: [OT] Developer Laptop

2010-11-29 Thread David Connors
On 30 November 2010 15:00, Chris Walsh wrote: > I personally use a Dell Latitude E6510. Works like a charm, 8GB RAM Core > i7, SSD blah blah, can't fault it (now). It was a replacement from Dell > for the horrible E6500. > > For twice the price the Lenovo's aren't worth it. Paying a fortune f

Re: [OT] Developer Laptop

2010-11-29 Thread Craig van Nieuwkerk
Here is the Lenovo web site with prices for Australia http://shopap.lenovo.com/au/en/notebooks/thinkpad/w-series/w510 I am sure you can get it cheaper than $3200 but the specs of the W510 on there seem comparable to some $1000 laptop

RE: [OT] Developer Laptop

2010-11-29 Thread Chris Walsh
I personally use a Dell Latitude E6510. Works like a charm, 8GB RAM Core i7, SSD blah blah, can't fault it (now). It was a replacement from Dell for the horrible E6500. For twice the price the Lenovo's aren't worth it. Paying a fortune for on-site warranty etc where Dell it's cheaper. I'd g

RE: Setting CMD-window title

2010-11-29 Thread Ian Thomas
meski - the Notepad was cited as an example, I think. If you follow the StackOverflow discussion, one person just would not back down on the general statement that it is necessary for the called application to accept / not update its title text. The other person pointed this out, and gave the examp

Re: [OT] Developer Laptop

2010-11-29 Thread David Connors
On 30 November 2010 14:45, Craig van Nieuwkerk wrote: > I have seen people recommend Lenovo before. Looking at the W510 it seems to > be around twice the price of a similar spec'd Dell. What makes it worth the > additional cash? I left ThinkPads for Latitude. My take is that the ThinkPads are d

Re: [OT] Developer Laptop

2010-11-29 Thread Craig van Nieuwkerk
I have seen people recommend Lenovo before. Looking at the W510 it seems to be around twice the price of a similar spec'd Dell. What makes it worth the additional cash? Craig. On Tue, Nov 30, 2010 at 3:37 PM, Chris Walsh wrote: > I'd suggest looking at the Lenovo >

RE: [OT] Developer Laptop

2010-11-29 Thread Chris Walsh
I'd suggest looking at the Lenovo W510. They aren't cheap, but if you need more than 8GB, they're your best bet. Cheers Chris @ChrisWalshie

Re: Setting CMD-window title

2010-11-29 Thread mike smith
On Tue, Nov 30, 2010 at 1:26 PM, Ian Thomas wrote: > Michael, that may be the only remedy. But it isn’t appropriate, as I will > explain later. > > I tried the SendMessage() approach, with WM_SETTEXT but it’s not useful. > > Using a SendMessage(_hwnd, WM_SETTEXT, 0, "My new text") will work only i

Setting Process window text

2010-11-29 Thread Ian Thomas
I should have used a more accurate subject - it's not the CMD-window title, it's the external process title that I want to change. Win32 API GetWindowText is ReadOnly. SetWindowText has this restriction - If the target window is owned by the current process, SetWindowText causes a

RE: Setting CMD-window title

2010-11-29 Thread Ian Thomas
Michael, that may be the only remedy. But it isn't appropriate, as I will explain later. I tried the SendMessage() approach, with WM_SETTEXT but it's not useful. Using a SendMessage(_hwnd, WM_SETTEXT, 0, "My new text") will work only if the called process "allows" it - ie, has a method for sett

Re: Setting CMD-window title

2010-11-29 Thread Michael Minutillo
What about calling a batch file that sets the title (using the TITLE command) and then runs your normal command http://ss64.com/nt/title.html On Tue, Nov 30, 2010 at 8:51 AM, Mark Hurd wrote: > On 30 November 2010 11:20, Mark Hurd wrote: > > Back in VB6 the App object was available to librar

Re: VBScript Unable to find assembly

2010-11-29 Thread Preet Sangha
Since the code is running under the vb script executable (cscript.exe??) then I would suggest trying to create a cscript.exe.config with an appropriate probePath where the paths are symlinks to correct locations. A bit like this (my blog): http://preetsangha

RE: [OT] Developer Laptop

2010-11-29 Thread James Chapman-Smith
Yes, pretty much - VMs, future proofing - plus SQL server, LINQPad (which can use a lot of RAM), Outlook and several Visual Studio instances. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Wallace Turner Sent: Tuesday, 30 November 2010 10:50 To: ozDotNe

Re: Setting CMD-window title

2010-11-29 Thread Mark Hurd
On 30 November 2010 11:20, Mark Hurd wrote: > Back in VB6 the App object was available to libraries to use, and so > they could adjust App.Title. I never did get around to work out what > it did and whether it was possible to replicate in .NET (i.e. allow an > assembly to adjust the main applicati

Re: Setting CMD-window title

2010-11-29 Thread Mark Hurd
Back in VB6 the App object was available to libraries to use, and so they could adjust App.Title. I never did get around to work out what it did and whether it was possible to replicate in .NET (i.e. allow an assembly to adjust the main application's title). -- Regards, Mark Hurd, B.Sc.(Ma.)(Hons

Re: [OT] Developer Laptop

2010-11-29 Thread Craig van Nieuwkerk
VMs use a lot of ram but also it is not a single program. Currently I have 8 applications running that I am using, not including things like services in the tray. Craig. On Tue, Nov 30, 2010 at 11:19 AM, Wallace Turner wrote: > out of curiosity, what programs are you running that use up 8 GB ra

RE: Setting CMD-window title

2010-11-29 Thread Ian Thomas
Bugger - MainWindowTitle is read-only. My earlier thoughts were is would require pInvoke. Still Binging / examining the MSDN library. _ Ian Thomas Victoria Park, Western Australia _ Fr

Re: [OT] Developer Laptop

2010-11-29 Thread Wallace Turner
out of curiosity, what programs are you running that use up 8 GB ram ? VMs? Or future proofing? (to a degree) On 30/11/2010 8:13 AM, James Chapman-Smith wrote: Hi folks, I’ve been using a Dell XPS M1710 laptop now for the nearly the last 4 years. It’s been a good little beast and it still p

Re: Setting CMD-window title

2010-11-29 Thread silky
On Tue, Nov 30, 2010 at 11:08 AM, Ian Thomas wrote: > Aaah – thanks Glen. > > Now to try it on CMD.EXE and the Win32 console app I have to use. It won't work, the documentation says it is Get only. I think your best option will be to vary the parameters in some fashion such that you can differen

[OT] Developer Laptop

2010-11-29 Thread James Chapman-Smith
Hi folks, I've been using a Dell XPS M1710 laptop now for the nearly the last 4 years. It's been a good little beast and it still performs better than many of the newer machines that I get lumbered with on some client sites. It is now time for me to upgrade. Being a development machine I wa

RE: Setting CMD-window title

2010-11-29 Thread Ian Thomas
Aaah - thanks Glen. Now to try it on CMD.EXE and the Win32 console app I have to use. Google (or Bing) is very much the enemy if you have a biased/misinformed starting point. _ Ian Thomas Victoria Park, Western Australia

Re: [OT] VBScript return string runtime error

2010-11-29 Thread Mark Hurd
On 29 November 2010 21:59, Greg Keogh wrote: > > I'd been searching for hours and never found any such syntax or clues > anywhere. Where did you get that trick? I've known putting brackets around an expression forces ByVal semantics for a long time, but the key point here was the reminder that t

RE: Setting CMD-window title

2010-11-29 Thread Michael O'Dea-Jones
Hi Ian, I'm interested too. However what I want is to change the description that appears in Task Manager as I have a number of Processes with the same name e.g. pluginloader.exe. As a work around I have added the "Command Line Column" to Task Manager which allows me to differentiate between th

Re: Setting CMD-window title

2010-11-29 Thread Glen Harvy
google is your friend :-) http://msdn.microsoft.com/en-us/library/system.diagnostics.process.mainwindowtitle.aspx On 30/11/2010 10:11 AM, Ian Thomas wrote: From .NET, I am starting a Win32 application with pro

Re: Setting CMD-window title

2010-11-29 Thread mike smith
*After* you've started it? Or before you do process.start() On Tue, Nov 30, 2010 at 10:11 AM, Ian Thomas wrote: > From .NET, I am starting a Win32 application with process.start – > >    process.StartInfo.FileName = var1 > >    process.StartInfo.Arguments = var2 > >    process.Start()

Setting CMD-window title

2010-11-29 Thread Ian Thomas
>From .NET, I am starting a Win32 application with process.start - process.StartInfo.FileName = var1 process.StartInfo.Arguments = var2 process.Start() process.WaitForExit( The CMD window shows the path and executable name (var1), but I would like to change the tit

VBScript Unable to find assembly

2010-11-29 Thread Greg Keogh
My previous problem with VBScript syntax was a stroll in the park compared to this new one which is .NET and COM related. I have a test script like this (stripped down): set client = WScript.CreateObject("Hermes.ComClient.Client") client.Connect "localhost", 8070 set req = client.GetRequest("te

Re: OT - iPhone Programming

2010-11-29 Thread David Connors
On 29 November 2010 23:37, mike smith wrote: > On Mon, Nov 29, 2010 at 11:23 PM, Corneliu I. Tusnea > wrote: > > Android just feels like a cheap-unfinished clone of the iPhone :) > > Or an unrestricted version, that runs things that Jobs disapproves of > I have an iPhone 4, HTC Desire with Froy

Re: OT - iPhone Programming

2010-11-29 Thread mike smith
On Mon, Nov 29, 2010 at 11:23 PM, Corneliu I. Tusnea wrote: > Android just feels like a cheap-unfinished clone of the iPhone :) Or an unrestricted version, that runs things that Jobs disapproves of > [Now let the war begin] > > > On Mon, Nov 29, 2010 at 5:03 PM, mike smith wrote: >> >> On Mon,

Re: OT - iPhone Programming

2010-11-29 Thread Corneliu I. Tusnea
Android just feels like a cheap-unfinished clone of the iPhone :) [Now let the war begin] On Mon, Nov 29, 2010 at 5:03 PM, mike smith wrote: > On Mon, Nov 29, 2010 at 4:18 PM, Corneliu I. Tusnea > wrote: > >>> I left my iphone for an android now! > > I left my iPhone for my WP7 now :) > > The

Re: [OT] VBScript return string runtime error

2010-11-29 Thread David Rhys Jones
Just as a side note. The last time I developped a com interface in .net and used that object in excel I had a hell of a lot of problems with versioning etc. What I ended up doing, and it worked very well, was wrap the Com .net object in a WSC windows script component. I don't know if they are sti

RE: [OT] VBScript return string runtime error

2010-11-29 Thread Greg Keogh
I've replicated your problem with a simple VB6 class. I'm not sure of the actual cause but your fix is: id = client.SendRequest((request)) (cut) Mark, pardon my French, but holy shit! That works. Putting (()) around the object argument sends it and gives me a string reply, which previously gav

Re: [OT] VBScript return string runtime error

2010-11-29 Thread Jason Keats
I believe that wrapping a parameter in parentheses forces it to be passed ByVal - even if you've coded ByRef. And, in VBScript, everything is a Variant (not quite the same thing as an Object) - so you may have to use CVar occasionally. On Mon, Nov 29, 2010 at 8:32 PM, Mark Hurd wrote: > I've rep

Re: [OT] VBScript return string runtime error

2010-11-29 Thread Mark Hurd
I've replicated your problem with a simple VB6 class. I'm not sure of the actual cause but your fix is: id = client.SendRequest((request)) because the working client.SendRequest(request) is really client.SendRequest (request) or Call client.SendRequest((request)). The call corre