priPrinter: Repative path - priPrinter

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Repative path

#1 User is offline   CoMPi 

  • Advanced Member
  • PipPipPip
  • Group: Senior Members
  • Posts: 208
  • Joined: 05-April 13

Posted 29 May 2015 - 10:12 PM

Hi,

Recently I relocated priPrinter files folder and my script stopped working. I found out that the issue was caused by invalid (after relocation) path to the console application called from my script (the script and application are in the same folder). So my question is: Is there a way to use a relative path in ExecuteAndWait command?

Thanks
Piotr
0

#2 User is offline   Alex 

  • Administrator
  • Group: Administrators
  • Posts: 238
  • Joined: 28-February 10
  • LocationHungary

Posted 01 June 2015 - 08:35 AM

Hi Piotr,

Very last beta has few functions for handling relative paths. See this

For you it can be something like:
local path=GetSpecialFolder("script");
local file=PathCombine(path,"../myApp.exe");
ExecuteAndWait(file+" param1 param2");


A.
0

#3 User is offline   CoMPi 

  • Advanced Member
  • PipPipPip
  • Group: Senior Members
  • Posts: 208
  • Joined: 05-April 13

Posted 01 June 2015 - 11:34 AM

It works perfectly. Thanks :)

View PostAlex, on 01 June 2015 - 08:35 AM, said:

Hi Piotr,

Very last beta has few functions for handling relative paths. See this

For you it can be something like:
local path=GetSpecialFolder("script");
local file=PathCombine(path,"../myApp.exe");
ExecuteAndWait(file+" param1 param2");


A.

Piotr
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users