SOLVED start..run.. <-- how to run that exe automatically

Q

q_q_anonymous

I have Textpad, and of course other programs , let's look at the EXEs.
I'd like them to run automatically when I do start..run..blah<ENTER>

I don't want c:\blah to open (it doesn't happen at the moment but i'm
sure i've seen it happen)

I've noticed that an EXE in c:\windows opens automatically.

---SOLUTION---
The best method i've found so far is putting a shortcut in c:\windows
, (and remove the exe extension from the shortcut, so you can do
start..run..blah rather than start..run..blah.exe It will still run
blah.exe - whatever the name of the shortcut )

Anybody with other solutions, please contribute. But this solution
seems good.
 
P

Pennywise

|>I have Textpad, and of course other programs , let's look at the EXEs.
|> I'd like them to run automatically when I do start..run..blah<ENTER>
|>
|>I don't want c:\blah to open (it doesn't happen at the moment but i'm
|>sure i've seen it happen)
|>
|>I've noticed that an EXE in c:\windows opens automatically.
|>
|>---SOLUTION---
|>The best method i've found so far is putting a shortcut in c:\windows
|>, (and remove the exe extension from the shortcut, so you can do
|>start..run..blah rather than start..run..blah.exe It will still run
|>blah.exe - whatever the name of the shortcut )
|>
|>Anybody with other solutions, please contribute. But this solution
|>seems good.

You know you don't have to type in EXE right?

Start | Run <type in> regedit <enter> works just fine...

Now MSC file are different as you must add the extension

Start | Run <type in> services.msc <enter>
 
W

Wesley Vogel

Pathext & Path control whether you have to type the path and the extension.

The environmental variable Pathext shows a list of file extensions that are
considered to be executable and regulates which extensions do not need to be
typed in a Command Prompt or the Run command.

The Path environmental variable and a registry entry, App Paths,
control what paths do not have to be typed.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\
CurrentVersion\App Paths\somefile.exe
Value Name: Path
Data Type: REG_EXPAND_SZ
Value Data: Path to executable

The PATH variable is set from the following:
Control Panel | System | Advanced | Environment variables |
System Variables
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
Session Manager\Environment
User Variables for User Name
HKEY_CURRENT_USER\Environment


[[The PATH environment variable defines the Windows NT search path. The
search path is a list of directories that are searched when the command
shell attempts to locate an executable file.

The PATHEXT environment variable defines the list of file extensions
checked by Windows NT when searching for an executable file. Like the PATH
variable, semi-colons separate individual items in the PATHEXT variable.
The default value of PATHEXT is .COM;.EXE;.BAT;.CMD. ]]
http://www.microsoft.com/technet/archive/winntas/deploy/shellscr.mspx

Type SET in a command prompt and hit enter to see what your Pathext & Path
are.

Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Support Tools\;C:\Program Files\Common Files\Autodesk
Shared\;C:\OLDDOS

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
W

Wesley Vogel

Now MSC file are different as you must add the extension

There is one exception. The Event Viewer = eventvwr.msc

Start | Run | Type: eventvwr | Click OK |
Event Viewer opens

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
 
Q

q_q_anonymous

Wesley said:
Pathext & Path control whether you have to type the path and the extension.

The environmental variable Pathext shows a list of file extensions that are
considered to be executable and regulates which extensions do not need to be
typed in a Command Prompt or the Run command.

The Path environmental variable and a registry entry, App Paths,
control what paths do not have to be typed.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\
CurrentVersion\App Paths\somefile.exe
Value Name: Path
Data Type: REG_EXPAND_SZ
Value Data: Path to executable

The PATH variable is set from the following:
Control Panel | System | Advanced | Environment variables |
System Variables
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
Session Manager\Environment
User Variables for User Name
HKEY_CURRENT_USER\Environment


[[The PATH environment variable defines the Windows NT search path. The
search path is a list of directories that are searched when the command
shell attempts to locate an executable file.

The PATHEXT environment variable defines the list of file extensions
checked by Windows NT when searching for an executable file. Like the PATH
variable, semi-colons separate individual items in the PATHEXT variable.
The default value of PATHEXT is .COM;.EXE;.BAT;.CMD. ]]
http://www.microsoft.com/technet/archive/winntas/deploy/shellscr.mspx

Type SET in a command prompt and hit enter to see what your Pathext & Path
are.

Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Support Tools\;C:\Program Files\Common Files\Autodesk
Shared\;C:\OLDDOS

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

all of this helps, this is fantastic information, thank you
 
W

Wesley Vogel

Keep having fun.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In
Wesley said:
Pathext & Path control whether you have to type the path and the
extension.

The environmental variable Pathext shows a list of file extensions that
are considered to be executable and regulates which extensions do not
need to be typed in a Command Prompt or the Run command.

The Path environmental variable and a registry entry, App Paths,
control what paths do not have to be typed.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\
CurrentVersion\App Paths\somefile.exe
Value Name: Path
Data Type: REG_EXPAND_SZ
Value Data: Path to executable

The PATH variable is set from the following:
Control Panel | System | Advanced | Environment variables |
System Variables
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\
Session Manager\Environment
User Variables for User Name
HKEY_CURRENT_USER\Environment


[[The PATH environment variable defines the Windows NT search path. The
search path is a list of directories that are searched when the command
shell attempts to locate an executable file.

The PATHEXT environment variable defines the list of file extensions
checked by Windows NT when searching for an executable file. Like the
PATH variable, semi-colons separate individual items in the PATHEXT
variable. The default value of PATHEXT is .COM;.EXE;.BAT;.CMD. ]]
http://www.microsoft.com/technet/archive/winntas/deploy/shellscr.mspx

Type SET in a command prompt and hit enter to see what your Pathext &
Path are.

Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Support Tools\;C:\Program Files\Common Files\Autodesk
Shared\;C:\OLDDOS

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

all of this helps, this is fantastic information, thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top