result = ""
for i = 1 to len(txt)
c = UCase(mid(txt,i,1))
select case c
result = result + c
const s = ",, 200, 300,400 ,500 , 600,,b,"
r = split(s,",")
for i=lbound(r) to ubound(r)
You can also find this script at http://tranXform.onestop.net
‘*** Replace_console.vbs (console version)
‘*** (C)opyright George Birbilis (firstname.lastname@example.org)
‘*** Use/modify freely as long as you give credit to the original author
‘*** Version: 20060928
if wscript.arguments.count<>3 then
wscript.echo "Syntax: replace.vbs filename fromToken toToken"
ON ERROR RESUME NEXT
wscript.echo "Opening "+filename
if err.number>0 then
wscript.echo "Saving "+filename
if err.number>0 then
wscript.echo ‘show an empty line
Sometime last year I had a friend with a TURBO-X laptop (from Greek company Plaisio), dated several years ago, that couldn’t get WinXP reinstalled on it (was freezing at a random time during installation, sometimes even at initial stages when formatting the disk etc.).
I had tried Vista CD (from MSDN Premium package that I received from MS as a gift, being a Microsoft MVP) on it for it’s memory check tool (an alternative is to use UBUNTU or EDUBUNTU [Debian Linux] Live CD that has MemTest86+ memory testing tool) and it worked fine. That thing made me try to install Vista Ultimate on it and again it installed and worked fine (even with Aero effects working, although the laptop didn’t have much memory as it was more expensive at the time it had been purchased).
Since the license for the Vista Ultimate was on me, I made the guy buy a Vista upgrade package for WinXP and then I had to fool Vista Ultimate that it was XP to allow the XP to Vista upgrade DVD to install on it. To do this I turned off the UAC (User Access Control) feature of Vista (you know, the one that prompts you for confirmation all the time – that is cause the shell GUI isn’t running as admin for security reasons – a bit similar practice is followed on Linux btw). To turn UAC off I used the respective Tool from the Tools tab of "System Configuration" application (use Start/Run and type "msconfig" to launch it, or type "System Configuration" at Start/Search on Vista.
Also, I right-clicked the installation executable (I think it was Setup.exe) from the XP to Vista Upgrade DVD and from Properties dialog I went to the "Compatibility" tab and set it to run as if it was "Windows XP". Then launched the installer from inside Vista and all went fine (note that I didn’t use the "Run as administrator" option from the properties window, but preferred to turn-off UAC instead since the Setup.exe would unpack other installers and run them at lower credentials instead making it fail later on during the installation process).
I didn’t need to turn on UAC again, after the "downgrading" it was turned on by itself (obviously by the installer). It’s nice that Vista is still build on XP (or could say NT) foundation and a totally different beast, else I wouldn’t have been able to pull this trick off.