Author Topic: Should be simple, but....  (Read 2053 times)

0 Members and 3 Guests are viewing this topic.

bobsbrewery

  • Jr. Member
  • **
  • Posts: 5
  • Karma: -1
    • View Profile
Should be simple, but....
« on: September 03, 2015, 11:02:07 PM »
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

  • $upporter
  • Hero Member
  • *****
  • Posts: 688
  • Karma: 22
    • View Profile
Re: Should be simple, but....
« Reply #1 on: September 04, 2015, 02:49:16 AM »
https://support.microsoft.com/en-us/kb/152457

Use info from the link with launch :)
When Voice command gets tough, use hand gestures

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Re: Should be simple, but....
« Reply #2 on: September 04, 2015, 08:06:58 AM »
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:
Code: [Select]
<?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.

Code: [Select]
<?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>
« Last Edit: September 04, 2015, 09:55:12 AM by nime5ter »
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

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Should be simple, but....
« Reply #3 on: September 04, 2015, 09:08: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

  • Jr. Member
  • **
  • Posts: 5
  • Karma: -1
    • View Profile
Re: Should be simple, but....
« Reply #4 on: September 04, 2015, 12:10:53 PM »
Thanks everyone! I knew there had to be a fairly simple way(s)!!! I've got it working.