starting a program in a particular folder

O

Oxnard

Windows XP SP2
you can start cmd by win explorer right click on a directory and select
Command prompt. I found the reg entries

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command]
@="Command &Prompt"
[HKEY_CLASSES_ROOT\Directory\shell\Command\command]
@="cmd.exe \\\"%1\\\""


I would like to do the same thing for another program sqlplusw I have tried
a number of different configurations basicly all are

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\SQLPlus]
@="SQL+"
[HKEY_CLASSES_ROOT\Directory\shell\SQLPlus\command]
@="sqlplusw.exe /nolog"


sqlplusw is in the path and I have tried putting in the full path both do
the same thing:

I right click select and I get the Open With dialog

"Choose the program you want to use to open this file:"

file: 'the directory I selected'

What do I need to do to make this work??

Thanks
Pete
 
R

Ramesh, MS-MVP

Hi Pete,

When entering the full path, did you enclose the path within double-quotes?
It is needed in case of paths containing spaces (LFN).

Windows does not search for the file in each of the directories mentioned in
the PATH. If no path is mentioned, the file *needs* to be in the Windows or
Windows\System32 folder.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Windows XP SP2
you can start cmd by win explorer right click on a directory and select
Command prompt. I found the reg entries

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command]
@="Command &Prompt"
[HKEY_CLASSES_ROOT\Directory\shell\Command\command]
@="cmd.exe \\\"%1\\\""


I would like to do the same thing for another program sqlplusw I have tried
a number of different configurations basicly all are

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\SQLPlus]
@="SQL+"
[HKEY_CLASSES_ROOT\Directory\shell\SQLPlus\command]
@="sqlplusw.exe /nolog"


sqlplusw is in the path and I have tried putting in the full path both do
the same thing:

I right click select and I get the Open With dialog

"Choose the program you want to use to open this file:"

file: 'the directory I selected'

What do I need to do to make this work??

Thanks
Pete
 
O

Oxnard

Ramesh said:
Hi Pete,

When entering the full path, did you enclose the path within
double-quotes?
It is needed in case of paths containing spaces (LFN).

Windows does not search for the file in each of the directories mentioned
in
the PATH. If no path is mentioned, the file *needs* to be in the Windows
or
Windows\System32 folder.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Windows XP SP2
you can start cmd by win explorer right click on a directory and select
Command prompt. I found the reg entries

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command]
@="Command &Prompt"
[HKEY_CLASSES_ROOT\Directory\shell\Command\command]
@="cmd.exe \\\"%1\\\""


I would like to do the same thing for another program sqlplusw I have
tried
a number of different configurations basicly all are

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\SQLPlus]
@="SQL+"
[HKEY_CLASSES_ROOT\Directory\shell\SQLPlus\command]
@="sqlplusw.exe /nolog"


sqlplusw is in the path and I have tried putting in the full path both do
the same thing:

I right click select and I get the Open With dialog

"Choose the program you want to use to open this file:"

file: 'the directory I selected'

What do I need to do to make this work??

Thanks
Pete

Thanks I also had to c:\\oracle\\ put double slashs
 
R

Ramesh, MS-MVP

You're correct. However, it's easier to edit the registry, and then export
the info to a REG file (assuming that you want to deploy the REG changes)

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com



Ramesh said:
Hi Pete,

When entering the full path, did you enclose the path within
double-quotes?
It is needed in case of paths containing spaces (LFN).

Windows does not search for the file in each of the directories mentioned
in
the PATH. If no path is mentioned, the file *needs* to be in the Windows
or
Windows\System32 folder.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Windows XP SP2
you can start cmd by win explorer right click on a directory and select
Command prompt. I found the reg entries

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command]
@="Command &Prompt"
[HKEY_CLASSES_ROOT\Directory\shell\Command\command]
@="cmd.exe \\\"%1\\\""


I would like to do the same thing for another program sqlplusw I have
tried
a number of different configurations basicly all are

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\SQLPlus]
@="SQL+"
[HKEY_CLASSES_ROOT\Directory\shell\SQLPlus\command]
@="sqlplusw.exe /nolog"


sqlplusw is in the path and I have tried putting in the full path both do
the same thing:

I right click select and I get the Open With dialog

"Choose the program you want to use to open this file:"

file: 'the directory I selected'

What do I need to do to make this work??

Thanks
Pete

Thanks I also had to c:\\oracle\\ put double slashs
 

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