Linux scripting: Unable to create directory on linux platform
I cannot find any information in the documentation or Microsoft vbscript documentation to create a directory without using ActiveX. A workaround would be to do a system call, but I also cannot find a way to achieve this. As a last resort, I thought of creating a Browser and directory using the XSIUIToolkit.FileBrowser. But, I cannot find a method to create this type of directory. The way with ActiveX is like this:
' Build the new directory where to place those images 'Set oFS = CreateObject("Scripting.FileSystemObject") 'Set oFolder = oFS.CreateFolder(sBakedPicturesPath)
There does not exist a Scripting.FileSystemObject on non-Windows platforms. Therefore, you cannot create, destroy, or manipulate files directly with VBscript.
dim Directory, status Directory = "/usr/tmp/mystuff" status = System( "mkdir " & Directory ) if ( status <> 0 ) then ' non-zero return value ' possible error depending on the command LogMessage "Doh! Possible error executing: " & "mkdir " & Directory, siError end if