Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to change the name of the exe file?

3 views
Skip to first unread message

Joey

unread,
Sep 17, 2003, 9:24:15 AM9/17/03
to
In a vb project, when I make an exe file, how to
designate the exe file name?

Thanks
Joey

Chris Kusmierz

unread,
Sep 17, 2003, 9:41:08 AM9/17/03
to

"Joey" <Jo...@nascar.com> wrote in message
news:05db01c37d1e$fd8b1fb0$a001...@phx.gbl...

Click Project-->Properties
Change the project name.

HTH
Chris


Ken Halter

unread,
Sep 17, 2003, 10:27:42 AM9/17/03
to
The first thing VB does when you make a project is present you with a Save File type
dialog that allows you to enter any name you want for the compiled project. It doesn't
matter to VB if your project is called Project1 but your exe is called
MyCoolestProjectEver.exe

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep it in the groups..


"Joey" <Jo...@nascar.com> wrote in message news:05db01c37d1e$fd8b1fb0$a001...@phx.gbl...

Joey

unread,
Sep 17, 2003, 4:48:38 PM9/17/03
to
thanks Ken.

But the problem is I changed the project to another
name. But when I make exe file from menu "File", it always
show up the old project name. I am just wondering
how to update that information.

>.
>

Stephen J Whiteley

unread,
Sep 17, 2003, 5:01:03 PM9/17/03
to
The EXE name is independent of the project name.
Just change the EXE name when you 'make' it, and it will stay that way
(unless you are saying it doesn't?).
This information is stored in the project .vbp file (ExeName32=xxxx)
If you change the project name, it doesn't change the name of the EXE.

Stephen J Whiteley

"Joey" <Jo...@nascar.com> wrote in message

news:06f401c37d5d$12509f90$a101...@phx.gbl...

André Joubert

unread,
Sep 18, 2003, 12:40:16 PM9/18/03
to
Stephen,
The project IS the exe name. When you change the project
before the first compile it will change the exe name automatically. But if
if you compile the project with a name and then try to change it after. You
need to save the project, exit VB and then restart VB for the change to take
effect. I know it is a stange behavior, but that the way it is. To me it
looks like a bug in VB.
André

"Stephen J Whiteley" <yakATsteelcoder.com> wrote in message
news:euzTQ7Vf...@TK2MSFTNGP11.phx.gbl...

Stephen J Whiteley

unread,
Sep 18, 2003, 1:25:37 PM9/18/03
to
Sorry, but I can't see any bug...works as expected. The exe name is NOT the
project name: they are two different things. As soon as you save your
project (after building an exe), whatever you built as your exe is the name
it will always use for the exe. You can change the project name and it
doesn't affect the exe name.

But, before you FIRST create an exe, it will take your project name as the
EXE name (what else *should* it call it, by default?). When you build the
exe, you project is considered 'changed'. If you want to retain the name you
have chosen to compile the EXE as, you need to save the project, obviously.
This will create the 'EXEName32' entry in the .vbp file.

There is no need to close VB/reopenVB for this to take affect.

Having said all that <g>, I'm using VB6 with SP5....is it different for an
earlier VB release?

Stephen J Whiteley

"André Joubert" <jaj...@sympatico.ca> wrote in message
news:Zdlab.7457$hF3.1...@news20.bellglobal.com...

André Joubert

unread,
Sep 18, 2003, 3:22:14 PM9/18/03
to
You are repeating what I said
André

"Stephen J Whiteley" <yakATsteelcoder.com> wrote in message

news:%23dlykng...@TK2MSFTNGP09.phx.gbl...

Joey

unread,
Sep 18, 2003, 4:25:14 PM9/18/03
to
Tks,Stephen and Andre.

But how to change the exe file name?
I still not done it successfully. by the way
I use vb5.0.

I thin stephen is right. After I change the
project name, the exe file name keep the same,and I
have no way to change it.

Possibilly, I have to re create a vbp file.

Joey

>.
>

Rick

unread,
Sep 18, 2003, 4:31:08 PM9/18/03
to
file, make, then type in the new name


"Joey" <Jo...@nascarc.om> wrote in message news:775301c37e22$f7a57730$a601...@phx.gbl...

Joey

unread,
Sep 18, 2003, 4:51:18 PM9/18/03
to
I see.

The VB does not update that information untill you
click that make *.exe menu. Hehe

Thanks

Joey

Stephen J Whiteley

unread,
Sep 18, 2003, 5:19:43 PM9/18/03
to
So, where's the bug?

However, you said:
> > > The project IS the exe name.

But *I* contend:


> > The exe name is NOT the project name: they are two different things

Like I said, everything works as expected. Are you expecting something
different?

SJW

"André Joubert" <jaj...@sympatico.ca> wrote in message

news:QBnab.8066$hF3.1...@news20.bellglobal.com...

Stephen J Whiteley

unread,
Sep 18, 2003, 5:22:30 PM9/18/03
to
Sometimes it's a lot simpler than it seems :)

Glad you're sorted.

SJW

"Joey" <Jo...@nascar.com> wrote in message

news:048901c37e26$9be10be0$a401...@phx.gbl...

0 new messages