473,585 Members | 2,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What meaning is Path & %1 in Registry(Null)

yxq


Nov 20 '05 #1
3 3993
* "yxq" <ga***@163.ne t> scripsit:
[Nothing]

Please be more specific.

--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Nov 20 '05 #2
Usually I have seen %1 to mean a command line argument of some kind. Take
this following registry command file for example:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_RO OT\Folder\shell \CmdPrompt]
@="CMD Prompt"

[HKEY_CLASSES_RO OT\Folder\shell \CmdPrompt\comm and]
@="c:\\winnt\\S ystem32\\cmd.ex e /k cd \"%l\""

This will add a right click menu to folders in Windows Explorer that allows
you to open a command prompt window at that location. In this case the %1
means that the cmd.exe file will be run and the currently clicked on folder
path will be passed in to the command string as an argument.
"yxq" <ga***@163.ne t> wrote in message
news:eQ******** ******@TK2MSFTN GP12.phx.gbl...

Nov 20 '05 #3
Oh, and in case you tried this on WinXP (thsi adds a real nice contect menu
to folders by the way) you have to modify the path to cmd.exe to read as
follows:

c:\\windows\\sy stem32\\cmd.exe
"Ray Cassick (Home)" <rc************ @enterprocity.c om> wrote in message
news:ey******** *****@TK2MSFTNG P09.phx.gbl...
Usually I have seen %1 to mean a command line argument of some kind. Take
this following registry command file for example:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_RO OT\Folder\shell \CmdPrompt]
@="CMD Prompt"

[HKEY_CLASSES_RO OT\Folder\shell \CmdPrompt\comm and]
@="c:\\winnt\\S ystem32\\cmd.ex e /k cd \"%l\""

This will add a right click menu to folders in Windows Explorer that allows you to open a command prompt window at that location. In this case the %1
means that the cmd.exe file will be run and the currently clicked on folder path will be passed in to the command string as an argument.
"yxq" <ga***@163.ne t> wrote in message
news:eQ******** ******@TK2MSFTN GP12.phx.gbl...


Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
5551
by: scott | last post by:
i've come across a real head-hurter. I'm looping through a recordset and response.writing it's rows out with no problem except 1 field. The field type is varchar and contains words like meeting, holiday, etc. Problem is, I'm trying to render a "n/a" when the field is null as in LISTING 1 below. My code isn't catching the null values. How can...
2
3248
by: Deli | last post by:
Hi, I need to check if combobox is empty, so I write: if combobox = null then msgbox "..." but it doesn't work. In debug mode, combobox is null. Please help! Deli
7
1466
by: c#2006user | last post by:
Hi everyone. i know there is a lot of code and ive reduced it as much as i could, its a bit much to ask but i am really stuck! i've been at this for a week! this is converted from vb to c# and something has gone wrong with the events as the original code used "WithEvents" and "Handles" keywords. basically when i debug and get to the ...
3
2846
by: gopal | last post by:
Hi i have the following code int length = _tcslen(pszSourceString); m_pstrStartingPos = new TCHAR; memset(m_pstrStartingPos, 0, (length * sizeof(TCHAR))); when i enter this code in a function first time then m_pstrStartingPos is NULL
3
4486
by: Bob Sanderson | last post by:
I have a PHP web page which uses a HTML form. I would like to enter dates into the date fields using a JavaScript calendar, similar to the way phpMyAdmin does. Can anyone recommend a JavaScript that will do this? Also, how can I add a button to a form to enter a NULL. Thanks in advance.
1
176
by: Chris McDonald | last post by:
user923005 <dcorbit@connx.comwrites: It's an unusual design to expect to *open* an file on the PATH - the PATH usually provides directories of executable programs (yes, possibly scripts), but there's usually little need to have read-access to them. Yes, nothing wrong, but it 'confuses' the typical role of PATH.
0
7836
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7950
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5389
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3835
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.