[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

RE: [sqr-users] Calling a batch file



You need to run the batch within a command shell, you can get this by doing
the following:

  let $file = 'C:\Travel\edi\edi.bat'
  let $command=getenv('COMSPEC')||' /c ' || $file
  call system using $command #status


This will run the file within the command shell.





-----Original Message-----
From: Borde, Gopal S [mailto:gopal-borde@uiowa.edu] 
Sent: Wednesday, July 21, 2004 11:27 AM
To: sqr-users@sqrug.org
Subject: [sqr-users] Calling a batch file


Friends,

 

I have to write a sqr which will run a batch file (edi.bat).

 

I tried using following codes in sqr

 

  

  let $file = 'C:\Travel\edi\edi.bat'

    

  call system using $file #status

 

but it is not working. 

 

The edi bat is file delivered by PeopleSoft it reads names of all input
files and creates a list file.

 

Alternatively if any one know how to write code for this command will also
solve the purpose.

 

 

Thanks .

 

 

 

Gopal Borde

ITS Dept

 

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users

"MMS <internal.cigna.com>" made the following annotations.
------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE: If you have received this e-mail in error, please
immediately notify the sender by e-mail at the address shown.  This e-mail
transmission may contain confidential information.  This information is
intended only for the use of the individual(s) or entity to whom it is
intended even if addressed incorrectly.  Please delete it from your files if
you are not the intended recipient.  Thank you for your compliance. Copyright
(c) 2004 CIGNA
==============================================================================


_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users