Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Opening Files

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-07-09 : 08:02:22
Majnoon writes "Is there a method in T-SQL that enables you to open and activate a file such as a Batch File??"

dsdeming

479 Posts

Posted - 2002-07-09 : 08:04:31
See xp_cmdshell in BOL. It can be used to execute any of the standard DOS file manipulation commands.

Go to Top of Page

Page47
Master Smack Fu Yak Hacker

2878 Posts

Posted - 2002-07-09 : 09:28:40
Hum....what does 'open and activiate' mean when you are talking about a Batch File (.bat)? dsdeming is assuming you mean 'execute' a batch file, and I am inclined to make the same assumption, but you should clarify. Executing a batch file neither 'opens' it or 'activates' it (although I must admit I don't even know what it means to activate a file....)

<O>

Edited by - Page47 on 07/09/2002 09:29:36
Go to Top of Page
   

- Advertisement -