Search the Community
Showing results for tags 'dircreate'.
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 & " " &
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 FileExist
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