FQDN of a Windows Server in Batch / CMD scripting….
Quick one for you (and there’s probably easier ways of doing this)…only took ten minutes to work it out tho.
I needed to get the Fully Qualified Domain Name of a computer on the network into an environment variable in a batch script.
Here’s the code snippet:
@ECHO OFF
FOR /f "tokens=2,* delims= " %%a in ('IPCONFIG ^/ALL ^| FINDSTR "Primary Dns"') do set tempsuffix=%%b
FOR /f "tokens=1,2 delims=:" %%a in ('echo %tempsuffix%') do set dnssuffix=%%b
SET FQDN=%COMPUTERNAME%.%DNSSUFFIX:~1%
ECHO Server FQDN: %FQDN%
Silent Install of Oracle 11g R2
When I first started this site, the first article I wrote about was installing Oracle Client drivers on to Windows 2003. Nearly four years on, I got my hands on the latest version of Oracle with the latest version of Windows….
In: Software Installs · Tagged with: automated, Oracle, Windows
Camstudio on Windows 7 x64 error 14001
I wanted to use CamStudio to record how to do things on Windows computers. I downloaded v2.6 beta from the website and installed it.
(My OS of choice here is Windows 7 x64).
When I first installed it I got an error message 14001, Unable to execute file, CreateProcess failed.
What’s happening is that this particular piece of software was written using Visual Studio, and sometimes when software gets packaged up, not all of the components get included. I’ve noticed on a few bits of software lately they’ve needed the Visual C++ Runtimes. Problem with this was there are several versions (tied to each release of Visual Studio, so 2005, 2008, 2010 etc..).
SQL Server 2012 RTM has been released
SQL Server 2012 has now been released to manufacturing and is available to try here:
http://www.microsoft.com/sqlserver/en/us/get-sql-server/try-it.aspx
Microsoft have also kindly release a Microsoft Press Book on the new features here in PDF format (epub and mobi formats to follow next week).
I’ll have a quick look and see if there’s anything I can show you soon
In: Uncategorized · Tagged with: SQL Server 2012
So why would you try and run a Vmware ESXi host inside a VM
I love virtualisation. It means I can experiment to my hearts content with all sorts of OSes and not have to by lots of seperate kit.
My latest pet project is to try and control a Vmware host using some CSharp (or maybe powershell and PowerCLI) to enable cloning of guests without a human being having to interact (pet project at work).
So to setup my lab at home, I wanted and ESXi server….I knew you could run it under a Virtual Machine but wasn’t so sure about VMware’s old Server 2.0.2?
In: Uncategorized · Tagged with: Virtualisation, Vmware
Unity iOS Game Development framework free until Apr 8th
My friends at work have created some great apps with this framework for their phones and pads. I’ve wanted to get in there and give it a go, but the cost kept me away. Until now
In: ipad, iPhone, iPod, objective-c, Programming · Tagged with: IOS
Win 8, Days 3 and 4
I’ve noticed that the battery life isn’t too good, although I accept this isn’t a finished product just yet. Only seem to get about 2ish hours where as MacOSX gets 4.5.
The freezing is still happening (there’s a bit of a discussion going on in the day 2 thread but no real idea as to what causes it due to the lack of any error information. It just hangs).
I kind of like the Metro interface, its nice to see MS innovating for once, but Windows 8 seems at this stage, neither a tablet or a desktop OS. The icons of “normal” Windows programs are uncharacteristically icon like and the metro apps alot of the time don’t make best use of the space ditching most of the traditional UI gives them.
In: Uncategorized · Tagged with: MacBook pro, Windows 8
Win 8, Day 2 – Repeated Windows 8 Freezing.
Just a quick update today, I’ve had to drop back to Mac OSX Lion for the time being as I keep getting a freezing situation with Windows 8…. There’s no errors on screen, everything just stops in its tracks.
Looking online others have seen the issue on other Macbook Pro 2009′s so at least it’s not just me. Possible causes range from Nvidia drivers to running Chrome. I’ll let you know more as I learn it.
In: Uncategorized · Tagged with: MacBook pro, Windows 8
