For example i have an vb.exe file by name abcd.exe , what i want my vb code to do is to rename the abcd.exe to abcd.dll .

Yu can not change an exe to a dll (dynamic link library). The one is an application, the other a library file. dll's can be written from WITHIN vb, but can not be converted one way or the other.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.