[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
RE: [sqr-users] Using Call System under Windows XP
- Subject: RE: [sqr-users] Using Call System under Windows XP
- From: "Jim Womeldorf" <jwomeldo@fastenal.com>
- Date: Thu, 27 Apr 2006 10:50:39 -0500
- Delivery-date: Thu, 27 Apr 2006 11:53:18 -0400
- List-id: "This list is for discussion about the SQR database reportinglanguage from Hyperion Solutions." <sqr-users.sqrug.org>
- Thread-index: AcZp4CNoVGQz1dXCEdqOPgAEdkj0ZwAMQ16g
- Thread-topic: [sqr-users] Using Call System under Windows XP
This MIGHT help. It provides the path to CMD.EXE
LET $com = GETENV('comspec')
let $COMMAND_STR = $com || '/c @start /min /wait cmd /c copy
<from_file> <to_file>'
CALL SYSTEM USING $COMMAND_STR #copy_status WAIT
Jim
-----Original Message-----
From: sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org
[mailto:sqr-users-bounces+jwomeldo=fastenal.com@sqrug.org] On Behalf Of
Simpson, Don I (UK)
Sent: Thursday, April 27, 2006 4:53 AM
To: sqr-users@sqrug.org
Subject: [sqr-users] Using Call System under Windows XP
Can anybody Help,
We are in the process of upgrading all of our users from NT or W2K to
XP. We use CALL SYSTEM a lot, mostly to activate copy commands on the
system. We have discovered that the calls are failing under XP, although
working under NT and W2K. The command string works under XP if called as
a .bat file.
Below is a typical example command. I've anonymised the actual filenames
LET $command = 'cmd /c @start /min /wait cmd /c copy <from_file>
<to_file>'
call system using $command_string #copy_status wait
The status returns as 0 under NT, as 1 under XP
Regards,
Don Simpson
BAE Systems
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users