HP3000-L Archives

January 2009, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Keven Miller (rtt)" <[log in to unmask]>
Reply To:
Keven Miller (rtt)
Date:
Mon, 26 Jan 2009 09:58:33 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (40 lines)
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 *

ATOM RSS1 RSS2