Please login or register.

Login with username, password and session length
Pages: 1 [2]

Author Topic: Command line arguments in AHP Windows commands  (Read 19069 times)

orcusomega

  • Sr. Member
  • ****
  • Helpful Post Rating: 6
  • Posts: 97
Re: Command line arguments in AHP Windows commands
« Reply #15 on: January 24, 2011, 04:07:33 PM »

IT WORKS!!!!!

THANK YOU!!!!

In 3.305 I just got it working, and it was PAINLESS - and a HUGE HUGE addition!

This will allow me to TOTALLY abuse this system now MUAHAHAHAHAHAHAHAA

Thanks!!!

Bob
Logged

orcusomega

  • Sr. Member
  • ****
  • Helpful Post Rating: 6
  • Posts: 97
Re: Command line arguments in AHP Windows commands
« Reply #16 on: May 07, 2011, 11:39:44 PM »

Can I ask ONE more favor on this one?  I need to pass variables with a SPACE in them, and the interface is not allowing me to use the " (quotes) key - it is simply (apparently) ignored.  I am sure that this is because the config is saved as native XML, but I am trying to figure out how to use a batch script (yes, windows batch script) to build SQL INSERT statements - and this is a problem...

Any chance this could be permitted?
Logged

Tuicemen

  • Administrator
  • Hero Member
  • ****
  • Helpful Post Rating: 283
  • Posts: 10509
  • I don't work for X10, I use it successfuly!
Re: Command line arguments in AHP Windows commands
« Reply #17 on: May 08, 2011, 03:23:25 PM »

Before X10 got the windows command function working properly I used Quotes in a batch file for PCC so I could use spaces between words for the program to speek.

So you should be able to create a Batch file that was simular to this
Code: [Select]
echo off
path to your programs location
ProgramExecutable "this is the first argument" SecondArgument
In AHP the windows command is your batch file don't enter any arguments
 >!
Logged
Please Read Topic:
General Forum Etiquette
Before you post!

orcusomega

  • Sr. Member
  • ****
  • Helpful Post Rating: 6
  • Posts: 97
Re: Command line arguments in AHP Windows commands
« Reply #18 on: May 09, 2011, 04:02:07 PM »

Thanks Tuiceman, but I am trying to eliminate that exact scenario, actually.

I have one logging command script and I am trying to make it take any number of arguments, and do whatever you want - NICE AN EASY (is the plan)

But I cannot put in " " so spaces are a problem, and I am trying to make it so that it is truly portable.

I know it is possible to use individual scripts, but that's just too much work :)

Thanks!

Bob
Logged
Pages: 1 [2]
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.