Re: [U2] UniVerse DOS Command - Batch File Error {Unclassified}

2010-11-02 Thread HENDERSON MIKE, MR
Don,

The DOS command is pretty badly broken, particularly if you need to
try to use a quoted string with embedded spaces (e.g. '... C:\Program
Files\MyApp\AppName.exe ...').
After I bitched about it, a new GCI function UVRunCommand was
introduced (in 10.0 IIRC).

You need code like this
-
DECLARE GCI UVRunCommand
DOS.COMMAND.STRING = the DOS Command you want to run
MY.GCI.STATUS = UVRunCommand('c:\WINDOWS\system32\cmd.exe /c
':DOS.COMMAND.STRING)
IF MY.GCI.STATUS NE 0 THEN
   error process
END
--

I'm sure UVRunCommand is documented somewhere (apart from the Release
Notes when it was introduced), I'm just not sure where. Nor do I
understand why they just didn't fix the DOS command.

Hope this helps

Regards


Mike 

 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org On Behalf Of Don P. Nagai
 Sent: Wednesday, 3 November 2010 08:35
 To: 'U2 Users List'
 Subject: [U2] UniVerse DOS Command - Batch File Error
 
 I have a batch file on a server running UniVerse.  This file 
 can be executed from Windows Explorer with no problems.
 
  
 
 If I attempt to run the same batch file using the UniVerse 
 DOS command, the batch file will not process.  The DOS 
 command line is displayed, there is a slight delay (2 sec or 
 so) before the EXIT command is issued and the system 
 returns to TCL, but the batch file doesn't run.
 
  
 
 The UV User Ref is pretty vague on details for the DOS command.
 
  
 
 Any ideas on what I might be missing?
 
  
 
 TiA
 
  
 
  
 
  
 
  
 
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users
 
The information contained in this Internet Email message is intended
for the addressee only and may contain privileged information, but not
necessarily the official views or opinions of the New Zealand Defence Force.
If you are not the intended recipient you must not use, disclose, copy or 
distribute this message or the information in it.

If you have received this message in error, please Email or telephone
the sender immediately.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] UniVerse DOS Command - Batch File Error unclassified

2010-11-02 Thread MACK ANDREW, MR
Like Bob, I had a similar problem on Windows 2003 (UV 10.2.10) and found
it was permissions on the temp folder that was causing the problem.

Check ENV at TCL to see if the temp folder for UV is different from the
temp folder you use when logged into windows. By default Windows is
C:\temp and UV is C:\Documents and Settings\Default User\Local
Settings\Temp. You have got to have write access to the folder for it to
work.

Andy Mack


-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Don P. Nagai
Sent: Wednesday, 3 November 2010 12:22 p.m.
To: 'U2 Users List'
Subject: Re: [U2] UniVerse DOS Command - Batch File Error

Thank you.  I'll give this a try right after testing to see if the Temp
folder issue has an impact.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Brian
Whitehorn
Sent: Tuesday, November 02, 2010 4:17 PM
To: U2 Users List
Subject: Re: [U2] UniVerse DOS Command - Batch File Error

Rather than double clicking to run the bat, have you tried opening a
dos command prompt (Start  Run  cmd) and then cd'ing to the directory
the batch file is in and running the bat from there, as this should keep
the window open and hopefully display a message that may point to why
the uv shell isn't running as expected? HTH.

-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Bob Woodward
Sent: Wednesday, 03 November 2010 10:12 AM
To: U2 Users List
Subject: Re: [U2] UniVerse DOS Command - Batch File Error

Something I've run into before is location of the TEMP directory.  I had
a C:\tmp but was pointed to C:\TEMP in the environment variables.  This
caused a problem with executing DOS commands from within Universe.  Long
time ago, though.



___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
The information contained in this Internet Email message is intended
for the addressee only and may contain privileged information, but not
necessarily the official views or opinions of the New Zealand Defence Force.
If you are not the intended recipient you must not use, disclose, copy or 
distribute this message or the information in it.

If you have received this message in error, please Email or telephone
the sender immediately.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users