Need to use external Dos commands to execute a PDF Converter

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
no1g8tor96
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 46
Joined: Fri Aug 02, 2013 12:14 am

Need to use external Dos commands to execute a PDF Converter

Post by no1g8tor96 » Fri Aug 02, 2013 12:29 am

I am using a Program that converts PDF Docs to Text. It is a GUI program and they also have a Command Line Version. I am looking to automate the conversion process from Livecode and need to be able to make Dos command calls to do this.

The program is here and shows an example of the help file and commands that need to be executed.
a-pdf(dot)com/text/cmd(dot)htm

Please Help

Thanks so much

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Need to use external Dos commands to execute a PDF Conve

Post by Simon » Fri Aug 02, 2013 12:40 am

Hi no1g8tor96,
Welcome to the forums :)
Take a look at "shell" in the dictionary, I think it's what you want.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

no1g8tor96
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 46
Joined: Fri Aug 02, 2013 12:14 am

Re: Need to use external Dos commands to execute a PDF Conve

Post by no1g8tor96 » Fri Aug 02, 2013 1:04 am

Simon,

Thanks for the fast reply. I have been trying that command and I think you right that it the right command but I am confused how to use it.

For example Lets say I want do a simple directory command for the windows directory. (C:\windows)

How would I do it? Would I need multiple shell commands? Can they be strung together?

Thanks

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Need to use external Dos commands to execute a PDF Conve

Post by Simon » Fri Aug 02, 2013 3:21 am

Hi no1g8tor96,
Lets do one with some reply:

Code: Select all

on mouseUp
   put shell("ipconfig") into temp
   answer temp
end mouseUp
You should look up "hideConsoleWindows" as well.

Oh, thats a Win command, does that help?
Wait I see DOS, ok.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply