Create Folder / Directory using SQL Server



Dear Friends we can use command of command prompt in sqlserver 

use 
xp_cmdshell for fire batching command 

Like 

EXEC xp_cmdshell 'Command String'


EXEC xp_cmdshell 'dir *.exe'
 


to get all directory information

EXEC xp_cmdshell 'mkdir kunal'

to Create New Directory is deafult path system32 you can set








Reference From : http://www.c-sharpcorner.com/Blogs/9569/create-directory-using-sqlserver.aspx 

Comments

Popular posts from this blog

Find procedure and function in SQL Server

Windows Service Install and Un Install in MS VisualStudio 2010

Find Store Procedures and Functions in MS SQL Server.