XP - Context Menu - Move Selected Files to a Specific Folder - file

G'day all and thanks for your help. Every now and then I have to copy downloaded files (after changing them) to a specific folder. In this example lets say d:\myfolder. I want to be able to do this quick with no hassles.
It was suggested that I look at the registry and the windows context menu. Truth be told I have no idea what to do.
Simply put; How do I MOVE files I selected to d:\myfolder from the context menu?
If possible greatly appreciated.
Thank you.
PS: The closest I could find was:
http://thismatter.com/tutorials/software/windows-xp/copy-move-files-more-efficiently.htm
This is almost there but cannot specify a specific folder.

Oof, a bit late in finding this question and responding, but here goes...
I want to do the same thing you're requesting, with the same aim: to do so in as few steps as possible.
The simplest solution for you would be to just create a shortcut for the target folder to which you wish to direct your files, and then move that shortcut into your "Send To" folder.
One add'l tip on this approach: selecting the target folder shortcut in the "Send To" menu will copy your file to the selected location; however, selecting the folder when also holding down the SHIFT key will move the file to that folder, instead.

Related

After I use exe4j packaging, user.dir is no longer the original result

After I use exe4j packaging, user.dir is no longer the original result. Please ask how to solve this problem, that is, how to get the path where the current working path.
enter image description here
Om the "Executable info" step of the wizard, deselect the "Change working directory to" check box in order to keep the current directory as the working directory.

Best method to get sibling folders

Consider a scenario like this
Root
|-----a
|-----b (current folder)
|-----c
|-----etc...
The current folder is b
We need to find all folders on the same level as b.
In other words, What's the best method to get 'a' and 'c' ?
System independent:
Store your current folder in some scratch variable.
cd upwards, so that, in your example, you are in the root folder
List all the folders there. This should give you a, b, c, d...
Put that list in some suitable data structure.
remove the folder you stored in the first step from said data structure (since you only require the siblings, not the starting folder itself).
I would follow steps similar to #jstarek, but I would drop the second one.
Get the full path to folder b, strip out folder b from the path, list the directories in that path, and exclude folder b from the resulting set.
If you want information more specific to a programming language, please cite which one you are using. You mentioned WinForms so I would guess it's going to be .Net? If so, the .Net framework already has classes designed to complete this task.
EDIT:
If you're using .Net take a look at the DirectoryInfo class. It has a GetDirectories method that allows you to list the directories underneath a given directory very easily. It also has overloads for searching etc.
When I have used this in the past, exceptions can be thrown if the user running the program does not have permissions on the folder in question.
Here is a link to a sample of the DirectoryInfo GetDirectory method: http://msdn.microsoft.com/en-us/library/s7xk2b58.aspx#Y798

Is there a way to organize a icon collection to allow for easy searching?

Is there any way of organizing a icon collection so that it easier to find needed icons?
For example:
the program needs a save icon
there are 5 icons collections on your HD that have a save icon and there are 5 more collections that don't have a save icon (but you don't know that)
do you browse through each icon collection?
run a search (assumes files are named consistently)?
Would it be ideal to have some sort of organized directory (printable?)?
UPDATE
My process so far:
Use XXCopy to merge all icon folders into one folder.
Syntax = xxcopy "C:\Documents and Settings\jm\My Documents\Icons" "C:\Documents and Settings\jm\My Documents\All_Icons" /s /sr
Use Contact Sheets to add all files from the super folder and then export out contact sheets for all the images. This should sort them alphabetically.
Print and put in a binder -> now to find the actual file all you need to do is browse the binder, find the filename, and then search via Windows for the actual folder location.
In Visual Studio, there is a ZIP file with icons organized in folders. The organization is mostly by filetype and image size, is pretty messy, and contains many duplicates, so you should probably not follow their example.
However, they provide a HTML file in each folder that shows the icons in that folder in a nice readable list (better than Explorer's standard preview). You could do something similar, but maybe provide a table instead, for example with one column per collection, and one row per "concept" (e.g. save icon).

Sharepoint: automatically create subfolders

I have a question. I hope someone can help me out on this one.
I'm setting up a sharepoint-site for a client of ours. There's a document library ("Customers"), in which every Customer has one folder (=customername) with 4 sub-folders.
The subfolders are always the same ("Technical Information", "Documents", "Security information" & "Hardware").
What I would like to happen is whenever a new folder is created in the library (that is whenever a new customer is entered), the 4 subfolders are automatically created in that new folder.
I wanted to do this in a db-trigger & I found out that for every folder in the library, a record is created in the db-table dbo.AllDocs.
The thing is:
- there are about 63 columns in that table & the purpose off some of them is not clear to me.
- actually this isn't such a great id since writing in the WSS Content db via a script is
anyone got any idea's?
Thanks in advance for feedback!
Its is not recommended (I would say Should not) to touch the SharePoint DB. Always do your customization through the SharePoint UI or the ample number of other options you have with the SharePoint. For your case I would recommend to create a New Event Handler that will be attached to the Doc Lib. When you create a Folder (Top Level Customer) you need to create the respective sub folders. You also make sure that the Event Handler doesn't get trapped in the Recursion while creating the sub folders.
Refer the below links to Event Handler 1 2
I would suggest you to add this functionality in a feature. For example could you add an extra link in the New drop down menu item in the document library toolbar called "New customer".
In the code for this command, create the 4 folders programmatically.
This would mean that you don't have to worry about determine whether you are creating a customer folder or a normal folder in your event handler.

How to start the associated program when selecting more than one files?

I have set .jpg file associated to my own program. I want to add the context menu to .jpg files, so I set the entry of HKCR.jpg\shell\open\command to "myProg.exe %1". After associating, there will be an item on the top of the context menu saying "Open image with myprog". This works right when I select a single .jpg file, but when I selected more than one file and click the top item of the context menu, nothing happended. How can I solve the problem?
Thank you very much
Each selected file will be sent to a new instance of your application. Your application should check if a previous version exists, or not. If a previous instance exists, it should sent its parameters to it (e.g. using Windows Messages) and then terminate.
Another approach is to use DDE (Dynamic Data Exchange), an old method used by Shell to send all files to one instance of your program.
You might need double quotes around the "%1".
Read this article for much more detailed information about how all this works.
http://msdn.microsoft.com/en-us/library/bb776883.aspx
Also, this blog entry talks about what you need to do specifically for multi-select command execution: http://blogs.msdn.com/pix/archive/2006/06/30/652889.aspx

Resources