Robert L. Stewart
rl_stewart at highstream.net
Tue Feb 20 12:03:38 CST 2007
Take a look at WinBatch to do this kind of stuff. I believe you can pass the year and month into the batch file created with it. Robert At 12:00 PM 2/20/2007, you wrote: >Date: Tue, 20 Feb 2007 12:26:42 +1100 >From: "Darren DICK" <darrend at nimble.com.au> >Subject: [AccessD] OT: Batch File variable >To: "'Access Developers discussion and problem solving'" > <accessd at databaseadvisors.com> >Message-ID: <200702200126.l1K1Qki13686 at databaseadvisors.com> >Content-Type: text/plain; charset="us-ascii" > >Hi All > > > >I realise this is OT so please respond off list to darrend at nimble.com.au > > > >I have many lines in a batch file - just moves downloaded local files to a >network drive - simple > > > >The folders on the network drives are divided in to Current Year and Current >Month > > > >EG \\SomeServer\SomeCoolFolder\SomeCoolFileFolder\200702 ><file:///\\SomeServer\SomeCoolFolder\SomeCoolFileFolder\200702> - >For Feb this >year - Rocket Science 'eh? > > > >On my local machine the files are stored in the second lowest level > >EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder ><file:///\\SomeServer\SomeCoolFolder\SomeCoolFileFilder> - IE = without the >Year Month > > > >At the beginning of each month I edit the Month (in this case 200702) in the >batch file - many lines and is a real PITA if I stuff it up > > > >Is there a way to declare a variable in a batch file? > > > >EG varMonthYear = 200702 and then just 'tack' that to the end > >EG \\SomeServer\SomeCoolFolder\SomeCoolFileFilder\ ><file:///\\SomeServer\SomeCoolFolder\SomeCoolFileFilder\> & varmonthYear > > > >That way I only have to edit the variable > > > >I realise this is OT so feel free to respond off list please to >darrend at nimble.com.au > > > >Many thanks > > > >See ya > > > >Darren