Jump to content

Search the Community

Showing results for tags 'dircreate'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • Forum FAQ
  • AutoIt

Calendars

  • Community Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 3 results

  1. Hello, In a main script I have added logging and that is working. Now I created another small script where I need also logging. So I used the same code: What is wrong? Why is the logfile not created? $default_delay = 2000 $logFilePath = ("C:\AutoIT_TestLogs") DirCreate($logFilePath) $Logfile = FileOpen($logFilePath & "\GMS_install" & @MON & "/" & @MDAY & "/" & @YEAR & " " & @HOUR & ":" & @MIN & ":" & @SEC & ".log",1) FileWriteLine($logFile,@CR & @MON & "/" & @MDAY & "/" & @YEAR & " " & @HOUR & ":" & @MIN & ":" & @SEC & "_Install_licenses") Consolewrite("Install_licenses" & @CR) Run("C:\Users\factory\Desktop\LicenseInstaller\LicenseInstaller.exe","C:\Users\factory\Desktop\LicenseInstaller") Sleep(1000) WinWait("Gatan License Installer") WinActivate("Gatan License Installer") WinWaitActive("Gatan License Installer") ControlClick("[ACTIVE]","","[NAME:CMD_Install]") Sleep($default_delay) If WinExists("LicenseInstaller") Then WinActivate("LicenseInstaller") WinWaitActive("LicenseInstaller") ControlClick("[ACTIVE]","","[CLASS:Button; INSTANCE:1]") sleep($default_delay) EndIf FileWriteLine($logFile,@CR & @MON & "/" & @MDAY & "/" & @YEAR & " " & @HOUR & ":" & @MIN & ":" & @SEC & "_Licenses_Installed") Consolewrite("Licenses are installed" & @CR)
  2. I have a script which has been working sucessfully creating user accounts including creating the home drive on the server using "DirCREATE". We have uprgaded our servers to Virtualised Windows 2008 R2 and now the script fails to create the home drive whilst everything else work (using the wonderful AD tools from Walter). Can anyone offer any assistance? The function to create the folders and sort out the permissions is as follows:- Func Folders($sUser, $sServer) ;Create Home folder If FileExists("rmtshare.exe") then DirCreate ("\\" & $sServer & "\HOME\" & $sUser) If FileExists("\\" & $sServer & "\HOME\" & $sUser) Then Global $SHUser = $sUser & "$" Local $ShareCMD ="rmtshare.exe \\" & $sServer & "\" & $SHUser & "=e:\home\" & $sUser & " /UNLIMITED /GRANT everyone:f" Run(@ComSpec & " /c " & $ShareCMD, "", @SW_HIDE) MemoWrite ("User " & $sUser & " - Home Folder Created") Local $xx = '"n:DOMAIN\' & $sUser & ';p:full"' Local $PermCMD = "SetACL.exe -on \\" & $sServer & "\home\" & $sUser & " -ot file -actn ace -ace " & $xx Run(@ComSpec & " /c " & $PermCMD, "", @SW_HIDE) MemoWrite ("User " & $sUser & " - Home Folder Permissions Set") Else MsgBox(4096, "\\" & $sServer & "\HOME\" & $sUser , " Does NOT exist") EndIf Else MsgBox(0, "ERROR", " RMTSHARE.EXE Not Found") Endif EndFunc Thanks
  3. My program starts by asking the user to select or create a directory to copy files to. FileSelectFolder won't let me type in a directory name and have it created. DirCreate doesn't have the GUI interface to allow the user to select a directory. Is there a method to display the File Tree and let the user either select an existing directory OR enter a directory name to add? Thanks! JibsMan
×
×
  • Create New...