Steve Conklin (Developer@UltraDNT)
Developer at UltraDNT.com
Sat Oct 16 09:56:42 CDT 2004
If you are working on the weekend, your basic need here is the IF command, using the EXIST parameter ... IF also can use NOT and ELSE. And, DOS Batches need GOTO for most branching. Type IF /? At the cmd line for detail. A typical check if the application is on the hard drive would go something like this: IF NOT EXIST C:\FOLDER\SOME.MDB XCOPY \\SERVER\SHARE\SOME.MDB C:\FOLDER Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Friday, October 15, 2004 10:44 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Updating front-end via batch file? Awesome. I'l keep an eye out. -C- ---- Original Message ---- From: spikee at oatlandspark.org.uk To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Updating front-end via batch file? Date: Fri, 15 Oct 2004 21:18:12 +0100 >Hi Christopher! > >I have a batch file at work doing just the job you are after. > >If you can wait 'til Monday I'll send it to you then. > >Regards! >Chris Foote > > ><All outgoing e-mail messages are swept for malware using Norton >Anti-virus >9.05.15 with virus definitions dated 12th October 2004> > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher >Hawkins >Sent: 15 October 2004 20:39 >To: accessd at databaseadvisors.com >Subject: [AccessD] Updating front-end via batch file? > > >Hello, all. > >I have a client who is constantly tinkering with his home-grown Access >solution and is constantly rolling out updates (against my advice, of >course). > >I was about to set him up with a simple batch file that just uses COPY >[origin] [destination] to copy the latest version of the .mdb from a >folder on the server to a user's machine. But before I do, I want to >know if it is possible to get a little fancier. > >I would like the batch file to a) compare the filename on the user's >machine to the filename on the server, and then b) do the copy if the >names are different, or c) NOT do the copy if the names are the same >(my client likes to put the version number in the filename). > >Is this too much to ask of the humble batch file? > > >-Christopher- > >P.S. >And for those of you who wonder why I don't use a vbscript file, this >client swaps eMachines and other budget boxes in and out of his >business based on what's on sale at Costco that week (again, against my >advice). I can't be sure that new boxes he brings in will have WSH or >any of the complementary components installed on the bastardized >version of WinXP that ships with a lot of thses crap boxes. But I know >that batch files work on everything from Win95 up. >;) >Respectfully, > >Christopher Hawkins >Software Developer >(559) 687-7591 >http://www.christopherhawkins.com > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > Respectfully, Christopher Hawkins Software Developer (559) 687-7591 http://www.christopherhawkins.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com