News:

HOT TIP! Commands and groups can be copied and pasted directly from your command editor to the forum, and vice versa. This makes sharing command XML on the forum much easier!

Main Menu

Should be simple, but....

Started by bobsbrewery, September 03, 2015, 11:02:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bobsbrewery

Can anyone tell me how to open a specific folder on my computer? Sure, you can use getfiles to return the contents of a folder, but I simply want to open one, like my documents, videos, or music.

Haddood

When Voice command gets tough, use hand gestures

nime5ter

#2
If you just want to open a folder without doing anything, use Launch with the file path. No need to use the command line.

http://voxcommando.com/mediawiki/index.php?title=Actions#Launch

The following example opens a subfolder of your VoxCommando folder using a relative path. If opening a folder that's not a VC folder use the full path:
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.7-->
<command id="356" name="open payloads folder" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Launch</cmdType>
    <params>
      <param>payloads</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>open payloads folder</phrase>
</command>


However, the Launch.CMD action also allows you to use shell folder shortcuts, for those who find that useful:

http://ss64.com/nt/shell.html

e.g.

<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.0.7-->
<command id="371" name="Launch My Documents" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
  <action>
    <cmdType>Launch.CMD</cmdType>
    <params>
      <param>Explorer shell:CommonDocuments</param>
    </params>
    <cmdRepeat>1</cmdRepeat>
  </action>
  <phrase>Launch My Documents</phrase>
</command>
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

Quote from: Haddood on September 04, 2015, 02:49:16 AM
https://support.microsoft.com/en-us/kb/152457

Use info from the link with launch :)

@Haddood, could you please post an example of how to use this information?

bobsbrewery

Thanks everyone! I knew there had to be a fairly simple way(s)!!! I've got it working.