hexagon logo

Create folder script

It used to be here.
Parents
  • Nevermind, I figured it out.

    Sub Main()
    
    Dim objFSO, objShell
    Dim PCDApp, PCDPartProgram, PCDCommands, PCDCommand, retval
    Dim objFile, objFolder As Object
    
    Set PCDApp=CreateObject("PCDLRN.Application")
    Set PCDPartProgram=PCDApp.ActivePartProgram
    Set PCDCommands=PCDPartProgram.Commands
    
    Set Pathname=PCDPartProgram.GetVariableValue("PATH2")
    
    strPath=Pathname.StringValue
    
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    
    If objFSO.FolderExists(strPath) Then
      'Nothing
    Else
      Set objFile=objFSO.CreateFolder(strPath)
    End If
    
    End Sub
    
Reply
  • Nevermind, I figured it out.

    Sub Main()
    
    Dim objFSO, objShell
    Dim PCDApp, PCDPartProgram, PCDCommands, PCDCommand, retval
    Dim objFile, objFolder As Object
    
    Set PCDApp=CreateObject("PCDLRN.Application")
    Set PCDPartProgram=PCDApp.ActivePartProgram
    Set PCDCommands=PCDPartProgram.Commands
    
    Set Pathname=PCDPartProgram.GetVariableValue("PATH2")
    
    strPath=Pathname.StringValue
    
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    
    If objFSO.FolderExists(strPath) Then
      'Nothing
    Else
      Set objFile=objFSO.CreateFolder(strPath)
    End If
    
    End Sub
    
Children
No Data