Subject: | |
From: | |
Reply To: | Keven Miller (rtt) |
Date: | Mon, 26 Jan 2009 09:58:33 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Michael Caplin wrote:
> I'm running a bat file from inside of a Quick session:
>
> MOVE "SHELL C:\GETXML1.bat MINIMIZED" TO ACTUAL-COMMAND.
> DISPLAY REFLECT-COMMAND.
>
> The bat file does an FTP get:
> get SPDUIVT.xml C:\GETXML.xml
>
> The xml file is found but instead of it being named GETXML and being put in
> the root directory, it's not renamed and is put in the directory that contains
> Reflection.
more...
I have a few BAT files that run on a server
(well, someone else does, I just wrote them).
Being on a server, I don't know what directory they are in when
they run. So I added a PUSHD statement to "push" the current directory
and place me to a desired known location.
@ECHO OFF
REM {filename}.bat
REM Author : Keven Miller
REM Author contact info : [log in to unmask]
REM Command created : 01/26/2007
REM Command purpose : Retrieve {some data} from FTP server
REM Modification history:
REM
PUSHD \\{server-name}\Reports\{sub-dir}\{sub-dir}
...
Keven Miller
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|