Index
2007-11-12 09:00 – Ed Leafe : [NF] How do I make a program name generally executable?
2007-11-12 09:09 – Peter Cushing : Re: [NF] How do I make a program name generally executable?
2007-11-12 09:09 – Chris Davis : RE: [NF] How do I make a program name generally executable?
2007-11-12 09:18 – Peter Cushing : Re: [NF] How do I make a program name generally executable?
2007-11-12 09:21 – Dave Crozier : RE: [NF] How do I make a program name generally executable?
2007-11-12 09:29 – Rob Anderson : RE: [NF] How do I make a program name generally executable?
2007-11-12 09:33 – =?iso-8859-1?Q?Frédéric_Steczycki?= : RE: [NF] How do I make a program name generally executable?
2007-11-12 09:38 – Ed Leafe : Re: [NF] How do I make a program name generally executable?
2007-11-12 09:46 – Profox : RE: [NF] How do I make a program name generally executable?
2007-11-12 09:47 – Rob Anderson : RE: [NF] How do I make a program name generally executable?
Back to top
[NF] How do I make a program name generally executable?

Author: Ed Leafe

Posted: 2007-11-12 09:00:24   Link

Let's say I have an executable located in c:\Program Files\Some

Directory\Some Other Directory\foo.exe. I would like to make it so

that the user can type 'foo' from a command prompt, and have that

executable run.

Would this be a Registry entry (or several)? If so, what would I

need to do? A link to a how-to page would be great.

-- Ed Leafe

-- http://leafe.com

-- http://dabodev.com

©2007 Ed Leafe
Back to top
Re: [NF] How do I make a program name generally executable?

Author: Peter Cushing

Posted: 2007-11-12 09:09:06   Link

Ed Leafe wrote:

> Let's say I have an executable located in c:\Program Files\Some

> Directory\Some Other Directory\foo.exe. I would like to make it so

> that the user can type 'foo' from a command prompt, and have that

> executable run.

>

> Would this be a Registry entry (or several)? If so, what would I

> need to do? A link to a how-to page would be great.

>

You could always add this folder to the path and it would run. Not sure

of another way of doing it.

Peter

©2007 Peter Cushing
Back to top
RE: [NF] How do I make a program name generally executable?

Author: Chris Davis

Posted: 2007-11-12 09:09:29   Link

Just pop it in the path ?

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of Ed Leafe

Sent: 12 November 2007 14:00

To: ProFox Mailing List

Subject: [NF] How do I make a program name generally executable?

Let's say I have an executable located in c:\Program Files\Some

Directory\Some Other Directory\foo.exe. I would like to make it so

that the user can type 'foo' from a command prompt, and have that

executable run.

Would this be a Registry entry (or several)? If so, what would I

need to do? A link to a how-to page would be great.

-- Ed Leafe

-- http://leafe.com

-- http://dabodev.com

[excessive quoting removed by server]

©2007 Chris Davis
Back to top
Re: [NF] How do I make a program name generally executable?

Author: Peter Cushing

Posted: 2007-11-12 09:18:40   Link

Peter Cushing wrote:

> Ed Leafe wrote:

>

>> Let's say I have an executable located in c:\Program Files\Some

>> Directory\Some Other Directory\foo.exe. I would like to make it so

>> that the user can type 'foo' from a command prompt, and have that

>> executable run.

>>

>> Would this be a Registry entry (or several)? If so, what would I

>> need to do? A link to a how-to page would be great.

>>

>>

> You could always add this folder to the path and it would run. Not sure

> of another way of doing it.

>

>

Just thought. You could add a foo.bat to the windows folder (which is

already in the path) and have this call the exe.

Peter

©2007 Peter Cushing
Back to top
RE: [NF] How do I make a program name generally executable?

Author: Dave Crozier

Posted: 2007-11-12 09:21:21   Link

Ed,

Take alook at "Adding applications into the path" section at:

http://commandwindows.com/runline.htm

Regards

Dave Crozier

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On Behalf

Of Ed Leafe

Sent: 12 November 2007 14:00

To: ProFox Mailing List

Subject: [NF] How do I make a program name generally executable?

Let's say I have an executable located in c:\Program Files\Some

Directory\Some Other Directory\foo.exe. I would like to make it so

that the user can type 'foo' from a command prompt, and have that

executable run.

Would this be a Registry entry (or several)? If so, what would I

need to do? A link to a how-to page would be great.

-- Ed Leafe

-- http://leafe.com

-- http://dabodev.com

[excessive quoting removed by server]

©2007 Dave Crozier
Back to top
RE: [NF] How do I make a program name generally executable?

Author: Rob Anderson

Posted: 2007-11-12 09:29:00   Link

Right mouse click my computer - properties - advanced tab.

Environment variables, and change PATH to include :-

\Program Files\Some Directory\Some Other Directory

HTH,

Robbo.

Rob Anderson | Software Engineer | Pegasus, an Infor company | t: +44

1536 495000 | d: +44 1536 495006 | f: +44 1536 495214 |

rob.anderson@pegasus.co.uk | www.pegasus.co.uk

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On

Behalf Of Ed Leafe

Sent: 12 November 2007 14:00

To: ProFox Mailing List

Subject: [NF] How do I make a program name generally executable?

Let's say I have an executable located in c:\Program Files\Some

Directory\Some Other Directory\foo.exe. I would like to make it so

that the user can type 'foo' from a command prompt, and have that

executable run.

Would this be a Registry entry (or several)? If so, what would I

need to do? A link to a how-to page would be great.

-- Ed Leafe

-- http://leafe.com

-- http://dabodev.com

[excessive quoting removed by server]

©2007 Rob Anderson
Back to top
RE: [NF] How do I make a program name generally executable?

Author: =?iso-8859-1?Q?Frédéric_Steczycki?=

Posted: 2007-11-12 09:33:24   Link

An ol'days one, days where our stuff was much more simple... <s>

Frédéric Steczycki

> -----Message d'origine-----

> De : profoxtech-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com]

> De la part de Ed Leafe

> Envoyé : 12 novembre 2007 15:00

> À : profoxtech@leafe.com

> Objet : [NF] How do I make a program name generally executable?

>

> Let's say I have an executable located in c:\Program Files\Some

> Directory\Some Other Directory\foo.exe. I would like to make it so

> that the user can type 'foo' from a command prompt, and have that

> executable run.

>

> Would this be a Registry entry (or several)? If so, what would I

> need to do? A link to a how-to page would be great.

>

> -- Ed Leafe

> -- http://leafe.com

> -- http://dabodev.com

>

>

>

>

[excessive quoting removed by server]

©2007 =?iso-8859-1?Q?Frédéric_Steczycki?=
Back to top
Re: [NF] How do I make a program name generally executable?

Author: Ed Leafe

Posted: 2007-11-12 09:38:45   Link

On Nov 12, 2007, at 9:29 AM, Rob Anderson wrote:

> Right mouse click my computer - properties - advanced tab.

>

> Environment variables, and change PATH to include :-

>

> \Program Files\Some Directory\Some Other Directory

OK, thanks to all. I thought that it was more difficult than just

modifying the path.

Next question: how can I do that programmatically? IOW, I want to

give the user the option of adding the "c:\Program Files\Some

Directory\Some Other Directory" to the path. If they say yes, how can

I do that in a batch file?

-- Ed Leafe

-- http://leafe.com

-- http://dabodev.com

©2007 Ed Leafe
Back to top
RE: [NF] How do I make a program name generally executable?

Author: Profox

Posted: 2007-11-12 09:46:48   Link

Can you add the directory to the windows search path ?

My computer \/ right click properties / advanced / environment settings /

path / edit

Allen

-----Original Message-----

From: profoxtech-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com] On

Behalf Of Ed Leafe

Sent: 12 November 2007 09:00

To: profoxtech@leafe.com

Subject: [NF] How do I make a program name generally executable?

Let's say I have an executable located in c:\Program Files\Some

Directory\Some Other Directory\foo.exe. I would like to make it so

that the user can type 'foo' from a command prompt, and have that

executable run.

Would this be a Registry entry (or several)? If so, what would I

need to do? A link to a how-to page would be great.

No virus found in this outgoing message.

Checked by AVG Free Edition.

Version: 7.5.503 / Virus Database: 269.15.30/1125 - Release Date: 11/11/2007

21:50

©2007 Profox
Back to top
RE: [NF] How do I make a program name generally executable?

Author: Rob Anderson

Posted: 2007-11-12 09:47:32   Link

Hi Ed,

Maybe you can modify the registry key :-

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\

Environment]

Which will achieve this for you.

(Further info at http://support.microsoft.com/kb/104011)

HTH,

Robbo

Rob Anderson | Software Engineer | Pegasus, an Infor company | t: +44

1536 495000 | d: +44 1536 495006 | f: +44 1536 495214 |

rob.anderson@pegasus.co.uk | www.pegasus.co.uk

-----Original Message-----

From: profox-bounces@leafe.com [mailto:profox-bounces@leafe.com] On

Behalf Of Ed Leafe

Sent: 12 November 2007 14:39

To: ProFox Email List

Subject: Re: [NF] How do I make a program name generally executable?

On Nov 12, 2007, at 9:29 AM, Rob Anderson wrote:

> Right mouse click my computer - properties - advanced tab.

>

> Environment variables, and change PATH to include :-

>

> \Program Files\Some Directory\Some Other Directory

OK, thanks to all. I thought that it was more difficult than

just

modifying the path.

Next question: how can I do that programmatically? IOW, I want

to

give the user the option of adding the "c:\Program Files\Some

Directory\Some Other Directory" to the path. If they say yes, how can

I do that in a batch file?

-- Ed Leafe

-- http://leafe.com

-- http://dabodev.com

[excessive quoting removed by server]

©2007 Rob Anderson