Stuart McLachlan
stuart at lexacorp.com.pg
Mon Jul 26 23:41:06 CDT 2004
> > So I thought I would just launch the app from the users desktop with a BATCH file. > The batch file copies the new version each and every time (whether it's new or not) then sparks up the app, > all from within the batch file Simple - on XP and WIN2000 at least > > Here is the batch file............... > REM START BATCH FILE########################################### > echo Updating your system to the latest Version of TruMan... > copy S:\Truman\Update\TRUMAN.MDB c:\Progra~1\Truman\Truman.mdb > c:\Progra~1\Truman\Truman.mdb > REM END BATCH FILE ########################################### > on XP and WIN2000 No Problem But when I run the BATCH file on a 98 machine I get... > 1 file(s) copied (Great it copied the file) > Bad command or file name (Bugger it doesn't spark up the app) > > The S drive location of the new app is valid. The destination folder in Program files and the existence > of the 'old' version is valid. (Remember this works on XP and WIN2000) > > The on the Win 98 machine if I copy the line " > c:\Progra~1\Truman\Truman.mdb" from the batch file and > clickon Start|Run and paste c:\Progra~1\Truman\Truman.mdb it sparks up the app > as desired. So it works from Start|Run but not a batchfile?????!!!!!!! > > I'm stumped - any suggestions? > IIRC, in Win9X, you need to specify the application in batch files (and in scheduled tasks?) so you will need something like: "C:\Program Files\MSOffice\Office\MSAccess.exe" "C:\Program Files\Truman\Truman.mdb" -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support.