[plug] need to convert to windows based script

Jon Miller jlmiller at mmtnetworks.com.au
Wed Aug 3 07:15:36 WST 2005


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





More information about the plug mailing list