Author Topic: Cannot launch batch files or executables from VC  (Read 2780 times)

0 Members and 1 Guest are viewing this topic.

SexGecko

  • Jr. Member
  • **
  • Posts: 15
  • Karma: 0
    • View Profile
Cannot launch batch files or executables from VC
« on: November 18, 2011, 03:39:51 PM »
Windows 7 64bit,
I've tried launch.openfile, launch.openbat and a few others. I can see the command being successfully interpreted and 'executed' but it never actually runs/opens the file.

I'm using the trial version, is there a limitation on running external executables that I am unaware of? I need to make sure this simple functionality is there before I buy it.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Cannot launch batch files or executables from VC
« Reply #1 on: November 18, 2011, 04:05:27 PM »
There is no such limitation.  It should work if your parameter is a proper full path to an executable or batch file.

edit: try this

action:  Launch
param:  notepad.exe
« Last Edit: November 18, 2011, 04:10:01 PM by jitterjames »

SexGecko

  • Jr. Member
  • **
  • Posts: 15
  • Karma: 0
    • View Profile
Re: Cannot launch batch files or executables from VC
« Reply #2 on: November 18, 2011, 04:08:34 PM »
The path is correct, so I'm not really sure, I'm able to "open text files" and do other such things, juts not .bats, do you think it could be some kind of inherent windows safeguard? Maybe I have to "run as administrator for voxcommando? I'm at work now, I'll update with some more details when I get home, thanks for your reply.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Cannot launch batch files or executables from VC
« Reply #3 on: November 18, 2011, 04:17:24 PM »
it might depend on where your bat file is.  I just tested running a batch file with both Launch and Launch.bat and in both cases it worked fine.  If the bat file is in a system protected folder then running as admin might help.

SexGecko

  • Jr. Member
  • **
  • Posts: 15
  • Karma: 0
    • View Profile
Re: Cannot launch batch files or executables from VC
« Reply #4 on: November 18, 2011, 08:59:06 PM »
Figured it out, It wasn't able to access my .bat for some reason so i just moved it to my documents, thanks for your help.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Cannot launch batch files or executables from VC
« Reply #5 on: November 18, 2011, 10:36:30 PM »
Ok good.  :D

I'm glad you brought this up though, I'm taking another look at my launch commands and adding some error feedback in the history window so it will be easier in the future to diagnose what is going on when it doesn't work.  It will tell you if it can't find the file, or if there is an access violation.  There are so many nook and crannies in this program... :P