HP3000-L Archives

July 1999, Week 1

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:
"VANCE,JEFF (HP-Cupertino,ex1)" <[log in to unmask]>
Reply To:
VANCE,JEFF (HP-Cupertino,ex1)
Date:
Fri, 2 Jul 1999 16:25:16 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
Here is a script that should help:

PARM file
# Assumes "file" is MPE syntax.  Note: you can use the fsyntax()
# function to make sure the name is an MPE name -- try help fsyntax
# Qualify the filename (also upshifts)
setvar qual_file fqualify("!file")
# Convert qualified name to POSIX syntax
setvar px_name dirname(qual_file)+"/"+basename(qual_file)
# move it using shell's mv command (you need to create the new name)
setvar new_name ?????
xeq mv.hpbin.sys "!px_name !new_name"
# Note the RENAME command can move a file across account boundaries,
# but you may have specific reasons to use 'mv'.

HTH,
Jeff Vance, CSY
p.s.  I did NOT test the above script, but I will help make it work
      if it does not as written.

> I am trying to set up a command file to accept parameters
> that indicate a
> file name, group, and or account and then move the file using
> the posix
> command.  That part is easy.  What I am having trouble with is the
> assumption that the user will not always put the parameters
> in uppercase, and if I use
> xeq mv.hpbin.sys "ACCOUNT\GROUP\FILE ACCOUNT1\GROUP1\FILE"
> everything in quotes needs to be uppercase.  I can't find a
> way to make the parameters uppercase and get them in the quotes.

ATOM RSS1 RSS2