|
-
Oct 16th, 2011, 03:43 AM
#1
create file from desktop or folder
how can you add an option in windows so when you right click in the desktop or in a folder and then go to new and create a new file from there... what code can i use for that? or what can i search to find code for that i've been looking didnt find anything yet... help please
-
Oct 16th, 2011, 07:29 AM
#2
Re: create file from desktop or folder
If I read you correctly:
For a folder: MkDir
For a file: Open, Print#, Put#, Close, etc.
-
Oct 16th, 2011, 11:03 AM
#3
Re: create file from desktop or folder
no not that.... let's say you close vb completely and then go to your desktop and right click on your desktop then go to new - text file (let's sa) but instead of text fie it would be your app file...
or like right click desktop, New, Winzip or ... right click new - folder ... do i add code to registry for that if so what is it? thank you
-
Oct 17th, 2011, 05:37 PM
#4
Re: create file from desktop or folder
anyone has an idea? or its not possible with vb??
-
Oct 17th, 2011, 09:37 PM
#5
Re: create file from desktop or folder
This isn't any kind of VB issue at all. It's a Shell issue.
The bare basics are covered in How To Add an Object to the New Object List and more detail can be found in Extending a New Submenu.
This is almost always an installer action, not something you do in your programs.
It should be avoided, since it is a worse form of pollution than even desktop shortcuts (also deprecated long ago). The last thing users want is for the New submenu to be filled with crummy things added by random programs they foolishly installed.
If you must do this be sure that uninstalling your program cleans these entries out rather than leaving them orphaned.
-
Oct 17th, 2011, 09:45 PM
#6
Lively Member
Re: create file from desktop or folder
Hi, i think you need to change some value in registry to do that. I found a tutorial from google but unfortunately it's not works for me (i'm using server 2008). check this how-to-add-remove-items-from-new-menu-in-windows/
Dont forget to rate post that you think useful and close the thread or mark it as [RESOLVED]
-
Oct 19th, 2011, 07:13 PM
#7
Re: create file from desktop or folder
this code seems to be for windows 95? i tried it on my pc windows 7 and nothing appears when i right click go to new can you try it on your pc and see if it works for you anyone? i did go in registry editor (regedit) add a new string to hkey_classes_root and then .pacw and the string is ShellNew and then a string valey key name NullFile and i tried one named FileName and then put an empty .pacw in c:/windows/shellnew/PacWest.pacw and then put it in my FileName String key in registry... hmm any ideas what else i can try for it to appear when i right click goto new... i'll keep trying
-
Oct 26th, 2011, 12:12 AM
#8
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|