Centar za edukaciju-BiH


switch Lista naslova:
Notice: Undefined variable: naslov in /home2/icentarb/public_html/icentar/templates/1/modules/42/lista.html on line 16

#11 07.09.2021 11:52
Gjoreski Van mreze
Administrator
Registrovan od:02.02.2009
Postovi:1,854


Predmet:Kreirajne Direktorium (Folder)
PreuzmiIzvorni kôd (SQL):
  1. -- =============================================
  2. -- Author:              <Gjoreski Aleksandar>
  3. -- Create date: <09.07.2021 13:42:21>
  4. -- Description: <Stored Procedura za kreirajne na direktoriom (Folder) >
  5. -- =============================================
  6. ALTER PROCEDURE [dbo].[spCreate_FTP_Folder]
  7.          ( @Folder AS NVARCHAR(30))
  8. AS
  9. BEGIN
  10.         SET @Folder='MD C:\FTP_Doc\' + CONVERT(NVARCHAR,@Folder)
  11.        EXEC sp_configure 'xp_cmdshell', '1'
  12.        RECONFIGURE
  13.        EXEC xp_cmdshell @Folder
  14.        EXEC sp_configure 'xp_cmdshell', '0'
  15.        RECONFIGURE
  16.  
  17. END
↑  ↓

Stranice (2):1,2


Sva vremena su GMT +01:00. Trenutno vrijeme: 12: 25 pm.