Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Calling system *.bat or *.cmd file

2 posts in General Discussion Last posting was on 2003-11-04 19:50:03.0Z
Anders Peterson Posted on 2003-11-04 18:46:06.0Z
From: Anders Peterson <anders_peterson@optimatika.se>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: ianywhere.public.general
Subject: Calling system *.bat or *.cmd file
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: c040681a.s-oev.bostream.se
X-Original-NNTP-Posting-Host: c040681a.s-oev.bostream.se
Message-ID: <3fa7f3ee$1@forums-1-dub>
Date: 4 Nov 2003 10:46:06 -0800
X-Trace: forums-1-dub 1067971566 217.215.214.183 (4 Nov 2003 10:46:06 -0800)
X-Original-Trace: 4 Nov 2003 10:46:06 -0800, c040681a.s-oev.bostream.se
Lines: 12
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:2016
Article PK: 17405

Hi,

(ASA 7 on Win2k)

How do I, from a stored procedure, call/execute a *.bat or *.cmd script?
Is it possible?

/Anders


Nick Elson Posted on 2003-11-04 19:50:03.0Z
From: "Nick Elson" <no_spam_nicelson@sybase.com>
Newsgroups: ianywhere.public.general
References: <3fa7f3ee$1@forums-1-dub>
Subject: Re: Calling system *.bat or *.cmd file
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: nicelson-xp.sybase.com
X-Original-NNTP-Posting-Host: nicelson-xp.sybase.com
Message-ID: <3fa802eb$1@forums-1-dub>
Date: 4 Nov 2003 11:50:03 -0800
X-Trace: forums-1-dub 1067975403 172.31.140.58 (4 Nov 2003 11:50:03 -0800)
X-Original-Trace: 4 Nov 2003 11:50:03 -0800, nicelson-xp.sybase.com
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:2017
Article PK: 17320

call xp_cmdshell '_____'

is the only option short of writing your own DLL.

"Anders Peterson" <anders_peterson@optimatika.se> wrote in message
news:3fa7f3ee$1@forums-1-dub...
> Hi,
>
> (ASA 7 on Win2k)
>
> How do I, from a stored procedure, call/execute a *.bat or *.cmd script?
> Is it possible?
>
> /Anders
>
>
>
>