[plug] need to convert to windows based script

Benjamin J Keith bjkeith at it.net.au
Tue Aug 2 15:08:58 WST 2005


Have a look at AutoIT:

http://www.autoitscript.com/autoit3/

It is a VB-esque scripting language and includes tools for making a script 
into a windows .exe file.  It also allows window/mouse automation and has 
some simple GUI tools to allow for some user interaction.

Ben

On Wed, 3 Aug 2005, Jon  Miller wrote:

> Need to know if anyone on this list knows of any application that can convert DOS commands (e.g Batch file) into a Windows based app? The file needs to have user input capablities.  Looking for something simple.
>
> or
>
> If someone wants to have a go at converting these commands to a app that will run on a W2k/XP PC with user input prompts for date, file number, new file name and client code.  Drop me an e-mail with a quote.
>
>
> @echo off
>
> @cls
>
> rem scandoc.bat
> rem variables:
> rem %1 = todays date
> rem %2 = file number
> rem %3 = new file name
> rem %4 = clients code
>
> rem check if all variables have values, if not display message and end
> if %1 =="" goto usage1
> if %2 =="" goto usage2
> if %3 =="" goto usage3
> if %4 =="" goto usage4
>
> :usage1
> echo You must enter Todays date in (yyyymmdd) format
> echo start again
> goto end
>
> :usage2
> echo You must enter original document sub number (ex: 0003)
> echo start again
> goto end
>
> :usage3
> echo You must enter new sub document information (ex: 2005-NOA)
> echo start again
> goto end
>
> :usage4
> echo You must enter Clients Code (ex: FV01)
> echo start again
> goto end
>
>
>
> rem set today date
> set dt=%1
>
> rem rename Document
> echo renaming document
> move C:\ScanMailDoc\%dt%-%2.pdf c:\ScanMailDoc\%dt%-%3.pdf
>
> rem move to new location
> echo moving document to client location
> move c:\scanmaildoc\%dt%-%3.pdf S:\HSOFT\DOC\DocBase\Clients\%4\2005\
>
> echo .
>
> echo Finished
>
> rem display document location
> dir S:\HSOFT\DOC\DocBase\Clients\%4\2005\%dt%-%3.pdf
>
> rem add document to current listing for document trail
> dir S:\HSOFT\DOC\DocBase\Clients\%4\2005\%dt%-%3.pdf >>c:\scanmaildoc\listing\%dt%.txt
>
> quit program
> :end
>
>
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://www.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au
>



More information about the plug mailing list