Compartir a través de


Sync and Share Verbs

Demonstrates how to register a verb that extends the "Sync" and "Share" verbs in the Windows Explorer Command Bar.

This topic contains the following sections.

  • Requirements
  • Downloading the Sample
  • Running the Sample
  • Removing the Sample

Requirements

Product Minimum Product Version
Windows Windows 7
Windows Software Development Kit (SDK) 7.0

 

Downloading the Sample

This sample is available in the following locations.

Location Path URL
Code Gallery Windows Shell Integration Samples on Code Gallery
Windows 7 SDK Download Windows 7 SDK

 

In the case of the Windows SDK, once you have downloaded and installed it, you will find the samples in the installed directory. For example, use of the default installation path for the Windows 7 SDK results in the samples being placed under C:\Program Files\Microsoft SDKs\Windows\v7.0\Samples\.

Running the Sample

To run the sample (sync):

  1. Navigate to the directory that contains the sync.reg file
  2. Type sync.reg at the command line, or double-click the icon for sync.reg register it.
  3. Open the Windows Explorer and select a file.
  4. Click the Sync option in the Command Bar and select a suboption such as Paint.

To run the sample (share):

  1. Navigate to the directory that contains the share.reg file.
  2. Type share.reg at the command line, or double-click the icon for share.reg register it.
  3. Open Windows Explorer and select a file. Click the Share option in the Command Bar.
  4. Click the Share with option in the Command Bar and select a suboption such as Paint.

Removing the Sample

To remove the sample (sync):

  1. Navigate to the directory that contains the Uninstallsync.reg file.
  2. Type uninstallsync.reg at the command line, or double-click the icon for uninstallsync.reg.

To remove the sample (share):

  1. Navigate to the directory that contains the Uninstallshare.reg file.
  2. Type uninstallshare.reg at the command line, or double-click the icon for uninstallshare.reg.