Batch Convert *.docx files to *.doc : an easy approach

Since the time when Office 2007 came into light, the compatibility issues of .docx files put Office 2007 into some kind of shade. People habituated to use Office 2000 or 2003 couldn’t easily migrate to the whole new Office 2007. This is still a problem in Nepal. Today also, most of the organizations have Office 2003 installed, since they find Office 2007 much much tough to operate.

Well, I sort of came into a trap of such scenario. My dad has all of his notes typed in Office 2007 and he did save them in .docx format, but his office personnels use Office 2003. So, what could be done?? The best answer was Upgrade to Office 2007. Wow!! Great Idea, am DONE ! ! !

The other option was, try and convert all those .docx files to .doc. So, if there are around 120/130 documents, you would need to open all of them and then save them one by one to .doc format. So, if one file, lets suppose takes 1 mins then for 120 files, we would be wasting our precious 2 hours. So, I had a look at some tricky approach available in MS-WORD.

First of all, we need to fix a directory so that every files we need to convert to .doc, we keep them here. This will be understood a bit later. This means that, create a directory somewhere, let’s say, in the D Drive of the computer and name it, “TempDocx”.Word_Options

Office_ButtonAnd then open up Microsoft Word and then click on the MS-OFFICE BUTTON.

After then, click on Word Options:


And then click on “Popular” tab and on the right, click on Show Developer Tab in the Ribbon.



So this brings up the Developer tab in our Ribbon.





So, we are done with our preparations.

Now, if you click on the Developer tab, a clickable link called Macros is visible. Click on it


Type in the Macros Name there. For instance, I have given this Macros a name “DocxConvert”.

Then click the Create Button.

This will show up Microsoft Visual Basic Code Editor Window, where we need to type in some code. In our case, we can copy paste the code. :D


Just paste the code below in the code window in between Sub DocxConvert and End Sub.

sPath = "D:\TempDocx\"
sFile = Dir(sPath & "*.docx")
While sFile <> ""
With Documents.Open(sPath & sFile)
.SaveAs FileName:=sPath & Replace(sFile, "docx", "doc"), FileFormat:=0
End With
sFile = Dir

And when you’re done, the code editor window should look like:


And, here we are almost done.

Goto File->Close and Return to Microsoft Word.


  1. Place all the .docx files that are to be converted to .doc into our dummy folder TempDocx.
  2. After placing all those files, Open Microsoft Word and navigate to the Developer Tab
  3. Click on Macros and then Select DocxConvert and click RUNRun_macros
  4. So, here you’ll be able to see some opening and closing of files. This signifies that the operation is a success.
  5. The new .doc files will be saved in the same dummy directory “TempDocx”. So there will be two files with the same name but different extensions.

So, here we go. We’re done with it. Though this seems a sort of lengthy since I had to start from the root and cover the beginners too.

Turn Windows7 Laptop into a WiFi Router

Thinking of buying a new wireless router from the market, just for the cause that you need to share your incoming internet connection between few devices? Or, may be, you are at the Airport and you have access to the internet over there via any devices, but you would like to do some stuffs in your WiFi supported phone, but the Network Provider ‘sucks’ the balance out of your account as the mosquito sucks the blood out of us... :-)

In such scenario, Windows7 laptops provide a solution. Windows7 has a new hidden extra capability to use the existing Wireless Adapter as Virtual Router and act as WiFi Hotspot.

This process could be done with the earlier versions of Windows via ad-hoc. ad-hoc is quite easy to use and useful too, in a sense that two computers need to establish a peer-to-peer connection in order to share files or the internet for a limited period of time.

Getting back to the main topic, its very easy to use the inbuilt capability incorporated by Microsoft into Windows7. All we need is a wireless adapter installed into our machine. And most essentially, that wireless adapter must be capable to form a Virtual Miniport Adapter. So, here we get started:

First of all, please make sure that your Wireless Adapter has the latest device driver. If you are confused about it, then Right Click on My Computer –> Click Manage and in the LEFT PANEL, click on Device Manager where you will find your Wireless Adapter, already installed. But right click on it –> Properties. A Dialog will appear and click on the Driver Tab, where you will see “Update Driver” Button. Click there and rest will be done by the computer.

But, we are not done with our major task. All, we need to do is now play with couple of commands. And we’re DONE.


  1. Goto Start Menu and find Command Prompt.
  2. Right Click –> Run As Administrator
  3. Type – netsh wlan hostednetwork set ssid = <NET_SSID> key = <NETWORK_PASSWORD> enable=yes
  4. again – netsh wlan start hostednetwork

So, doing this, you will be able to see a new Wireless Adapter in your Network Adapters List, named as Wireless Connection2 by default, which will be the access point for a WiFi Hotspot.

Now, if you want to share your incoming internet connection then, all you need to do is, Right Click the connection->Click Properties->select the Sharing Tab and Check the box called “Allow other users to use this internet connection” or smth like that….

Meanwhile, an application Virtual Router at CodePlex is also available for this purpose.

Works well for me. Please post back for problems.

My First Radio Interview

Enrollment into the Microsoft Student Partners(MSP) Program as an MSP has always been productive and beneficial. All those trainings, workshops, clinic labs and many other community programs are things to be noted. It’s a great pleasure and luck to be an MSP which later turned out into a Passion. I will never forget this state of transition.

June 16, at around 10:30 pm when I was chatting with some of the MSPs and some of my friends, Prashant Dhewaju, a jubilant MSP from Kantipur Engineering College, Dhapakhel asked me to give an interview briefing on what actually MSP program is. I instantly said yes and then asked whom was I accompanied by; and the answer was quite simple and expected: an MSP :-). Well, later I came to know, the other MSP was Sabina Agrawal, a dynamic and brilliant representative of Kathmandu Engineering College to the Microsoft Community. So, I was excited about the coming day and went to Unlimited Technologies, where the interview had to be recorded. So, I went there and just had some chit chats with experts over there. One thing was sure that, I was waiting for Sabina, my interview partner. Both of us were blank on what to say, coz both of us were Roll No. 1 in case of such an experience, hehe…. So, finally Sabina arrived and we just talked around and went for the lunch and Sabina couldn’t eat all the ten veg. MoMos, shhhhh…….. its a top secret ! !

So, post lunch session introduced us into the recording room. Personally, I was blank on what to say, and what to talk. But the program host, Gandip Khaling and Gita ‘didi’ made us feel so comfortable such that for a while we forgot that we were there to face an interview and then the confidence raised up to some level. Until now, both of us were comfortable enough to move on with the show.

But a big problem was, the recording room. Ohh, God!! such a hot room. I remeber myself collecting all the sweats into my handkerchief. Actually, I wasn’t habituated to such situations and environment. However, the environment was, the show then started and began to become an interactive one.

Firsltly, Gandip introduced both of us and the first question was asked to ……………………………bla bla……

Tune into Times FM 90.6 mhz, coming Sunday, 21st June at 8:05 am for the complete program, hehe. If I say all the details of the show now, what would people do when the program will be broadcasted on Sunday?? So please tune into Times FM.

But more importantly, I have to make a note that, people are still unaware of the MSP Program. And since this is the season of taking new MSPs into the community, I hope our views and experience on MSP program would provide needed information to those who are interested about this program. But I assure you that, I’ll definitely blog after my interview will be broadcasted. Till then, keep a regular eye on the Calendar and the Clock.

ek Sansaar ek awaaz : Voicing the Voiceless

“ek Sansaar, ek Awaaz” which can be listened at Times FM 90.6 MHz every Sunday at 8:05 am is not only a Radio Program indeed. With the joint efforts of Forum for Information Technology and OneWorld South Asia and never the less Times FM 90.6, this program is aimed to a establish a community where the voices of even the grassroots could be heard.

Not very often but I had listened to this program quite a few times and I found it interesting. Then, I immediately got into the internet and BINGED!! about it. Well, I hope everyone gets what am I talking about. And then I came to know, the concept was not only to make the programs, but to involve each and every element of the community into this effort. And this is very real, in a sense that these things make a real difference to the society, as countries like Nepal where still visual broadcasting seems to be a problem would benefit people of rural area easily.

But whatever, people say, or the internet says, I feel that this program is intended to create an interactive community. Radio broadcasting is very much popular in our country. Thus, it aims to educate people through Radio Programs. And the presenter for this program, ahhhh!! I do not exactly remeber (her) name now……..but she’s doing a fantastic job. I heard her name once in the radio, but could not memorize it.

In the recent times, it has focused on Digital Literacy, empowering people with the knowledge of using the technology for their daily works. In fact, this will help to create a technological society, a well educated society and I felt that this should me made public among all the users. Talking in the forum doesn’t only lead to a conclusion, rather such radio programs make a difference to a society and create a BUZZ on it.

To develop a community, to develop a society, an urge in people’s mind has to be implanted and this exactly seems to be the thing that ek Sansaar ek Awaaz is doing. People who do not have experience of what this program actually is, must tune to Times FM 90.6 mhz, every Sunday morning at 8:05 am.

“It’s we who want to develop, It’s we who can develop, Lets create a real community”

Solving Matlab’s incompatibility with Windows on AMD Processor

Matlab’s website confers that they had switched over to hardware specific manufacturers; Intel’s Math Kernel Library(MKL), AMD’s Core Math Library, and and vecLib on the Mac (Matlab 7.0).

My PC has an AMD Processor and I run it on Windows7 for now. Before this, my old PC had an Intel Processor. So, after I bought my new PC, I got Matlab 7 from the market and when I tried to install it to my new PC, I came up with a problem. After installing around 1.5 gigs of software content, the only I could see was just a 2/3 second splash of Matlab. I thought, the problem was with the software, and still tried it on my old PC, but it worked well over there. So, I came to draw a conclusion,

“Matlab is not supported on PCs with AMD Processors”

And I would only be half correct if I say this, because,

“Matlab’s not supported on PCs with AMD Processors and Windows OS”

which means, Matlab works fine on PCs with AMD processors and non-Windows OS. But this wasn’t a great news to a guy like me, for I had no acquaintance with other OS.

Although Matlab’s website has tried to show its compatibility with the AMD Processors, it failed to work how it was supposed to. I believe most of the AMD PCs are running on AMD Athlon Processors in the Windows Configuration, which actually Matlab fails to recognize, for some reason that I do not understand and then Matlab defaults to the Intel MKL in case of an unrecognized CPU, an unfortunate conflict for AMD users like me.

Then after, Matlab assumes the machine being run as an Intel Machine, and still use of Matlab is not possible. Now the problem seems to be a serious one, but it isn’t actually. Though Matlab had transition from ATLAS to hardware specific libraries, it continued to package ATLAS Libraries with the releases for some time. Now here starts a good news to all the victims because there exist libraries in our computer to run Matlab. All we need to do is, all couple of lines at the bottom of the Matlab’s BLAS Specification file. For those who are new to term BLAS, it is Basic Linear Algebra SubPrograms. Getting back to the BLAS- specification file, what it actually does is that, it tells Matlab which DLL file to use based on the processor model or type.

So, solution to this problem is just steps away. All we need to do is:

Open the following file in Notepad(the easiest one)


and then add the following two lines to the end of the file

AuthenticAMD Family 15 Model 12 atlas_Athlon.dll # Athlon 64 (Newcastle)
AuthenticAMD Family 15 Model * atlas_Athlon.dll # AMD64

That’s all, some troubles but had the solution. Now I can get my assignments done in my home too. I hope all those talks  before those two line codes added some knowledge to your information.

For queries, please do post back.

Posted by Kushal Gautam | with no comments
Filed under: , , , , ,

SAVING a SilverLight Media for Offline purpose

Hi all:

In the 10th MSP meeting, Allen Tuladhar, the Country Manager, Microsoft MDP Nepal talked about Saving the SilverLight Media for offline purpose. Then after, I searched wherever I could, and wherever I found, but didn’t find a satisfactory answer.

But, still there’s a primary solution to this problem, although this will not work well.

And one thing new to the SilverLight 3.0 is that Offline Purpose Saving is possible but not with v 2.0

So, let’s get started:

All I wanted was, I needed to extract the SilverLight media present at the homepage, which is To some beginners, if this question is asked then the reply might be prompt, Right click into the media and just click “Save As”. But if the media is SilverLight, right clicking it will show SilverLight. So how do we solve this issue?

All I did was, typed in the student-partners homepage and then when the page was fully loaded, I clicked within the page, but not touching the SilverLight Media and click “View Source”. Then the screen similar to the following one will appear,


But we are not interested in the whole HTML code, written for this page. Rather we shall find the portion of the code where the URL to the SilverLight Media resides. So, if we scroll a some lines below, we can find a block of code as:



<object width="940" height="297" ID="SLMain" data="data:application/x-silverlight," type="application/x-silverlight-2">

<param name="source" value="/ClientBin/MSPFrontpage.xap" />


Note tha URL “ClientBin/MSPFrontpage.xap”, just add the original domain to the URL, that is:

for this content,

Just download it and now simply create a simple HTML with the following code:



<div id="silverlightControlHost" style='margin-left:40px'>

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="250px">

<param name="source" value="MSPFrontpage.xap"/>

<param name="onerror" value="onSilverlightError" />

<param name="background" value="Transparent" />

<param name="windowless" value="True" />

<param name="minRuntimeVersion" value="2.0.31005.0" />

<param name="autoUpgrade" value="true" />

<a href="" style='text-decoration: none;'>

<img src="" alt="Get Microsoft Silverlight" style='border-style: none'/>






This should work well with all the SilverLight media. For the moment I am not sure about the MSP Photochain. Will be posting in the same blog, if I get any new details.

Configuring WLW for Community Blogs

WLW, my favorite blogging assistant is good with its parents, Live Spaces. I have not tried WordPress and other Blogs, rather I got a blog on Ohhh! was excited to blog and wrote a blog using WLW, but wasn’t easy for me to configure the blog settings.

Well, to those who are unaware of the WLW, its among the TLAs, that is the acronym of Windows Live Writer, a magnificent tool to blog with. I started blogging with Live Spaces, requested a blog on technetnepal and finally got my own blog. With Live Spaces, setting up a blog is just few clicks away, but setting up my technetnepal’s blog was some bit of work to me. I wanted to post my first blog using WLW, but couldn’t and I insisted on it. Later, around 3 weeks from the day I got the blog, don’t know what actually stroke into my mind or somebody filled in some tonics, I caught the real procedure and finally I was able to import my web blog settings to my WLW. If this post goes all well to the web, then my WLW configuration is a success.

When I successfully configured my blog, I found that I had to do nothing. Because WLW was intelligent enough to import the current theme settings as well as other settings too. The steps to configure a blog using WLW include:

  This window is just intended to show the valid credentials required to set up a Blog account using WLW.





“Pictures speak on their own”. I hope I had nothing to explain . If there’s something I’d be happy to answer. It’s a simple task to configure a blog with WLW. Writing blogs is even more interesting and comfortable. So, why not try it.


Sharing leads the Community: Lesson from TechED

It’s not new that “sharing and caring spread more love”, I’m afraid if I wrote that as it used to be. Well, that’s the ethical aspect but similar logic applies in the knowledge base community. Sharing of knowledge helps the community to groom. I felt the importance of this aspect when I saw the Indian guys active in the community.

TechEd 2009, commenced on May 13 till 15. It was a great experience to be a part of Microsoft TechEd representing the MSP Community, New Summit College(my college) as well as Nepal. Actually, I attended the Web Developer Track, so the contents related to it might not be relevant on this site but I felt to share my views stressing on the importance of creating a knowledge base community.

In my opinion, apart from infrastructures and population advantage aspect, one of the major differences between the Indian IT Community and Nepalese IT Community is knowledge sharing capability. Allen Bailochan Tuladhar, Country Manager, Microsoft MDP Nepal is the only privileged Microsoft MVP from Nepal. He’s honored with this tag because he’s serving the national and international community with his knowledge in Desktop Experience. I was surprised and impressed to see that people of my ages were in the post of MVP and when I made talks with some of them, I came to know, they all were among the top community contributors. Those few minutes talks expanded my dream to become a MVP in few years. We and the Indians inherit similar culture, regardless the infrastructures are less available to us. Still, we have the enthusiasm to develop our community on our own. India has developed to a great extent. In the mean time, our challenge is not to catch them with the technology but with the efforts and knowledge. Knowledge sharing is all what we need in the current context. Specifically, focusing on the students community, if I am not wrong very few or below 5% contribute to the community, which shows a negative sign.

The knowledge sharing professionals are the senior MVPs and well as the IT Professionals. I came across many MVPs in India. They are all due to their skills as well as their sociability. We Nepalese lack this character. The qualified IT Professionals are busy with their jobs and students are not fed the proper dosage of course to qualify for the market competition.

And the other problem is, there is lack of such local portals. Microsoft, last year launched two portals: and for developers and IT Professionals respectively. Keeping in mind the present status of the Developer Community in Nepal, msdnnepal portal was launched but till date it hasn’t been proved that effective as it was expected to be. Successively, a new portal technetnepal, for IT Professionals was launched which gained some popularity and is somehow improving. The major issue is, people are not able to find relevant information on such portals. If Microsoft’s initiated portal is struggling, we can expect the condition of others in Nepal.

For now, all I can say is, Online sharing and Online activity develops the sociable character in a computer professional. Let’s learn a NICE HABIT from our neighbour.

“If our cultures seems to converge, why not the technologies”