You are here

Running a Batch file

8 posts / 0 new
Last post
eddol
Offline
Last seen: 14 years 4 months ago
Joined: 2010-08-19 10:38
Running a Batch file

I haven made a very simple script in Toucan:

void = sync "jobname"

If i run that script in toucan it works!

Now i make a .bat file with te following:

toucan.exe /s "scriptname"

then i get an error that said:

cannot run lua file [string "scriptname"]:1: '='expected near ''

What is wrong?

Darkbee
Darkbee's picture
Offline
Last seen: 4 years 7 months ago
Joined: 2008-04-14 09:41
Not a forward slash?

Are you supposed to use a dash+s ("-s") as the command line switch, not a forward slash?

eddol
Offline
Last seen: 14 years 4 months ago
Joined: 2010-08-19 10:38
yes

yes

Darkbee
Darkbee's picture
Offline
Last seen: 4 years 7 months ago
Joined: 2008-04-14 09:41
Ummm

So was that the issue or was it just a typo in the original post?

eddol
Offline
Last seen: 14 years 4 months ago
Joined: 2010-08-19 10:38
you are supposed to use a

you are supposed to use a forward slash. If you enter just toucan.exe -s in a dos prompt you will see a list of possible entries.

tens
Offline
Last seen: 11 years 10 months ago
Joined: 2010-09-04 20:22
nope, you guys did not get it

nope, you guys did not get it at all.

actually, i've also encountered this problem, and all you have to do is read closely the manual.

At the commande line chapter, it says :

Please note that the script command line parameter takes the same input as the input area in the user interface.
This means that if you wish to run a specic existing script you will need to use:

--script="dofile(getscript([[YOURSCRIPTNAME]]))"

this way it will work.

WEK
Offline
Last seen: 14 years 2 months ago
Joined: 2006-03-13 07:10
I read the manual.... I read

I read the manual.... I read the help function and on this moment, I don't understand the command-line.

An example : "c:\PortableApps\PortableApps\Toucan\App\Toucan\Toucan.exe" Sync "c:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\" "s:\Backup\PCWEK\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\" Copy checks = {true true false false} options = {true true false false false} rules=""

In this example I want to start een sync from local to server .....

With the manuals, I don't understand it, can anybody help me ?

Regards,

Werner

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 3 months ago
Developer
Joined: 2005-12-10 15:22
Try

creating a new thread with exactly what you are trying to achieve and then I will try to help Smile

Log in or register to post comments