Changeset 40 for trunk


Ignore:
Timestamp:
Oct 6, 2014, 3:40:53 PM (10 years ago)
Author:
marrucho
Message:

mount.bat monte w:
xftp.bat monte f:
le planificateur de taches lance xft-autre.bat qui lance xftp.bat qui lance xftp.vbs

Location:
trunk/xftp
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/xftp/mountFtp.bat

    r36 r40  
     1Rem 24 juillet 2014 : suppression du montage lecteur f:
     2
    13@echo off
    24
     
    1618
    1719Rem connecter un lecteur réseau sur la borne xfel
    18 net use w: \\borne-xfel\data\JSON /user:xfel1 0164468560
    19                    
     20Rem net use w: \\borne-xfel\data\JSON /user:xfel1 0164468560
     21net use w: \\172.16.1.1\data\JSON /user:xfel1 0164468560
     22
    2023Rem connecter un lecteur réseau sur le serveur ftp
    21 if %ipVrai% == 172 ("C:\Program Files\FERRO Software\FtpUse\ftpUse.exe" f: 172.16.1.19/temp/JSON)
     24Rem if %ipVrai% == 172 ("C:\Program Files\FERRO Software\FtpUse\ftpUse.exe" f: 172.16.1.19/temp/JSON)
    2225
    2326
  • trunk/xftp/xftp.bat

    r36 r40  
     1Rem 24 juillet 2014 rajout montage/démontage lecteur f:
     2
    13@echo off
     4
     5
     6set /p ipVrai= < c:\temp\ip172.txt
     7set ipVrai=%ipVrai:~44,3%
     8echo %ipVrai% > c:\temp\ipVrai.txt
     9
     10if %ipVrai% == 172 (
     11
     12Rem connecter un lecteur réseau sur le serveur ftp
     13"C:\Program Files\FERRO Software\FtpUse\ftpUse.exe" f: 172.16.1.19/temp/JSON)
     14
    215c:
    316cd c:\temp
    4 cscript /nologo C:\Users\$xfel1\Desktop\outils\21022014\xftp.vbs >>xftp.txt
     17cscript /nologo C:\Users\$xfel1\Desktop\outils\xftp\xftp.vbs >>xftp.txt
     18Rem cscript /nologo "C:\Documents and Settings\marrucho.LAL\Bureau\xfel-SI\outils\xftp\xftp.vbs" 11
     19
     20Rem déconnecter le lecteur réseau
     21if %ipVrai% == 172 ("C:\Program Files\FERRO Software\FtpUse\ftpUse.exe" f: /delete)
     22
     23)
     24
    525exit
  • trunk/xftp/xftp.vbs

    r36 r40  
    1 ' 03 mars 2014
     1' 24 juillet 2014
     2' rajout dans les 2 fonctions ConnectLecteurReseauFtp... du test f: existe
    23
    34Option Explicit
     
    2627
    2728'       Wscript.echo "ConnectLecteurReseauFtpWithLast"
     29
     30        '240714 : rajout
     31        Dim dirServeurFSO, serveurDir
     32        Set dirServeurFSO = CreateObject("Scripting.FileSystemObject")
     33        serveurDir = "f:"
     34        If dirServeurFSO.DriveExists(serveurDir) Then
     35                Wscript.echo "drive f:"
     36        Else
     37                Wscript.echo "f: do not exist"                 
     38                Wscript.quit'ne rien faire
     39        End If 
     40        Err.clear
     41        '
    2842
    2943        'lecture lecteur réseau ftp
     
    87101'       Wscript.echo "ConnectLecteurReseauFtpWithId"
    88102
     103        '240714 : rajout
     104        Dim dirServeurFSO, serveurDir
     105        Set dirServeurFSO = CreateObject("Scripting.FileSystemObject")
     106        serveurDir = "f:"
     107        If dirServeurFSO.DriveExists(serveurDir) Then
     108                Wscript.echo "drive f:"
     109        Else
     110                Wscript.echo "f: do not exist"                 
     111                Wscript.quit'ne rien faire
     112        End If 
     113        Err.clear
     114        '
     115       
    89116        ''''' CREER LE REPERTOIRE EN LOCAL SI N'EXISTE PAS '''''
    90117        Set dirFSO = CreateObject("Scripting.FileSystemObject")
     
    195222   If Left(objItem.IPAddress(0),3) = "134" Then
    196223      Wscript.Echo objItem.IPAddress(0), " : ...NO CONNECTION TO FTP SERVER..."     
    197       'ne fait rien
     224      'ne fait rien           
    198225      Wscript.Echo
    199226      Wscript.quit
Note: See TracChangeset for help on using the changeset viewer.