Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Adding functionality to XP
Name: jan_rogowski Date: March 19, 2009 at 03:57:53 Pacific OS: Windows XP Subcategory: General
Comment:
Hi all
I need help understanding just how you go about adding command functionality to winXP. Ultimately what I want to do is script a function that performs a simple text replacement on strings contained in an ascii file. Easy. But I want this to be available to the user via a right click menu option. Can anyone suggest a good way to A, implement the actual function and B imbed it into XPs architecture?
Name: Impulse Date: March 19, 2009 at 08:45:37 Pacific
Reply:
Well, I don't know if this will actually work the way you need it to, but I'm sure that you can tweak some things to make it work. And by the way, I'm guessing that you mean the context menu when you right click on the desktop... You will need to modify the registry to do this, and to actually redistribute the registry, you have to export the registry key. Anyways, here's the link...
If you give up, might as well give up everything in life.
0
Response Number 2
Name: jan_rogowski Date: March 19, 2009 at 10:02:28 Pacific
Reply:
Hey Impulse
Thanks! That really helped. I've worked out how to add the command to the context menu and got hold of a command line text replacer which allows me to alter the text of a specific file via something like:
ssr 0 "old_text" "new_text" c:\fileToChange.txt
now my only problem is working out how to pass the details of the file I right click on to the command. So instead of "c:\fileToChange.txt" i get the address and filename of the file i click on each time.
0
Response Number 3
Name: Razor2.3 Date: March 19, 2009 at 18:47:55 Pacific
Summary: If you believe what you just said then good luck as a programmer. Computers are composed of logical gates which are basically transistors and resistors. So when a program is compiled everything must e...
Summary: The SetWindowText() function can't add text, so there is no flag for that function. Unfortunately, I cannot think of any other function that can. However, you could just send the output to a text fil...
Summary: Batch file adding text to file also adds a return? (Damn 35 character subject limits ;)) Hi there. Working on a very simple batch file; all it does is add a single sentence to a text file, then conver...