How do I get a list of files in the DataDrvUser Dir programatically (no dialogs)

I have version 8.1.1292 of Diadem. I wish to get a list of files in a directory without using a dialog.

Hello Sweeten
Attached are two snipits of code, hope this helps
The following sub reads all the folders in a root folder. Note the use the FSO or file system object. The FSO has a number of properties and methods for working with files and folders, would definetly check it out.
Sub ReadProjects()
'This sub reads all the Folders in the root
Set fso = CreateObject("Scripting.FileSystemObject")
Set Folder = fso.Getfolder(RootPath_)
Set Folder = Folder.SubFolders
i=1
For Each SubFolder In Folder
LstStates.Items.add SubFolder.name,i
i=i+1
Next
End Sub
This next code snipit reads all the files of a certain extention (i.e. LPD,DAT)
Sub ReadProjectFiles()
Dim fso,PathName,LvdNames,GraNames,path
Dim x,y,z
x=1:y=1:z
=1:w=1
Set fso = CreateObject("Scripting.FileSystemObject")
Set Folder = fso.Getfolder(ProjectPath_)
Set Files = Folder.Files
For Each file In files
Select Case file.type
Case "LPD File"
LstGraph.items.add file.name , x
x=x+1
Case "DAT File"
LstData.Items.add file.name , y
y = y+1
Case "LVD File"
LstView.Items.add file.name , z
z = z+1
End Select
Next
Let me know if this is helpful
Tom Ferraro
DIAdem Product Manager
512-683-6841

Similar Messages

  • How do i get a list of file names in to a new folder?

    Hi,
    Does anyone know if there is a way of having a list of  image file names, searching for the images then putting them into a new folder?  I'm guessing it can probably be done through mac scripting but I know nothing about scripting and genreally not great with technogy so ideally need step by step instructions!!
    If anyone can help I would really appreciate it!!
    Ruth

    Without details about your workflow and folder set up, I can only give you a generic script, but this should at least get us started.  test it and see what needs to be tweaked.
    -- set paths to source and destination folders
    set imageSourcePath to POSIX path of (choose folder with prompt "Choose a source folder.")
    set destinationFolder to POSIX file POSIX path of (choose folder with prompt "Choose a destination folder.")
    -- get file names from text file: assumes one name per line.
    set fileNameTextFile to (choose file with prompt "Choose a file list text file." of type "public.plain-text")
    set fileNames to paragraphs of (read fileNameTextFile)
    repeat with thisFileName in fileNames
      -- replace each file name with an alias to that image file
              set contents of thisFileName to POSIX file (imageSourcePath & thisFileName)
    end repeat
    tell application "Finder"
      -- using 'duplicate' because I assume you want to make copies rather than move files
      duplicate fileNames to destinationFolder
    end tell

  • How can I get a list of files in my collections?

    Hi
    I have been given a disc of 800 photos from a photographer, some colour and some black and white. I used lightroom's 'collections' facility to separate the photos into various groups ie: some pictures that had to be printed different sizes, some black and white etc etc.
    I now need to somehow 'export' a list of the files in the various collections for her to print.
    Does lightroom have a facilty where it can just export a list of files in text/doc format?
    Thank you for your help.

    We have used 2 Pantone colors In Indesign CS2. The One Pantone color is butt with other color slightly.
    Now we want to convert ps to pdf. The Particular place color not come properly while looking at pdf.
    Our customer want us to create ps to pdf not export pdf.
    Kindly do the needful.

  • How do I get messages list to appear above the selected email, like in Snow leopard.

    When I opened the mail in Lion after upgrading the messages all appear on the left instead of above whewre I want them. How do I have them above ??
    Thanks for any help

    You will want to go into Mail preferences and click on viewing. In there you check the box that says "Use classic layout".

  • Get a list of files from a folder

    Hi I would like to know how could I get a list of files containing into a folder on my computer using javafx... can anyone help?
    Thank you very much!
    Daniel

    I'll try that... i just want to list all videos containing into a folder intro grid =)
    i thought that had a special way using javafx
    Thanks
    Edited by: skul3r on Dec 19, 2008 6:47 AM

  • How to get a list of file paths for all files used in a project

    I have a project in Premiere Pro CC which has a large number of bins.  A sequence in one of these bins uses files from other bins.  I am trying to find the locations of all each of the files used  in the project.
    1)  Obviously I can select each clip in the timeline and show in finder, but there a lot of clips
    2) The video usage associated with each file in the project would help.  However
               1.  I haven't found a way to display only clips that have video useage if all of the bins have not been expanded.
              2.  Video usage  shows usage for all sequences, so one would have to manually check the pull down for each file to see if it is used in the sequence in question.
    3) I tried exporting the project to final cut pro xml.  The path url gives me the information that I need.  For some reason, however, when I do the export only one clip's information is there, not the information for all of the other clips in the project.
    4) I tired an export for speedgrade and all of the file names are there.  However the paths are not. 
    Basically I want to find all of the files in the project and relocate them to a specific folder for that project.  There's got to be a way to do this but I'm not seeing it ....

    Thanks for the suggestion concerning the file path.  And certainly it would have been nice to have done this before beginning.  However this is a project that has been around for quite a while, and the files have been moved into different bins.  And now the project sequence is being revised.
    So the problem is, worded slightly differently, how can I search all of the bins for the files that are used just by this sequence, ignoring the files which are used by other sequences?  Or, how can I get a list of the file paths of the files that are used in the sequence?

  • Hi ,How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    Hi ,how can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm
    or poerwshell . i have struggled for a week
    tchocr

    Hi,
    There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
    assistance:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    Hi,
    There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
    assistance:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How do I get a list of all missing files in a catalog in LR2?

    Is there an easy way to get a list of all missing files for the thumbnails in Lr2? I know the symbol that appears in the upper right corner of any particular photo that is missing its file, but how can I get a list of all such photos for an entire catalog (or at least big chunks of a catalog).
    Thanks.

    You can right click a folder and choose Synchronise - it has a Show Missing Files buttom.
    John

  • How to get a list of files under C:\Program Files?

    dir C:\"Program Files" in DOS will get me a list of files in the directory. But how could I do in Java to get the some results? To put it in two double quotes, does not work.
    Any suggestions?

    Here is a small Java program that will read the contents of any directory for you:
    readDir.java
    ==========
    import java.io.*;
    public class readDir {
       public static void main(String[] args) {
          try {
             String[] dirArray=new File(args[0]).list();
             for (int i=0;i<dirArray.length;i++) System.out.println(dirArray[ i ]);
          } catch (Throwable exception) {
             exception.printStackTrace();
    }Just compile the program and run it as follows:
    java readDir "C:\Program Files"
    ;o)
    V.V.

  • In OS 10.7.5, how do I get a listing of folders similar to the "directory tree" that I used to have when I was suffering through MS-DOS?

    In OS 10.7.5, how do I get a listing of folders similar to the "directory tree" that I used to have when I was suffering through MS-DOS?

    I'm not quite sure what it is you are looking for, but there are a three different ways to view the files and folder in a directory in Finder - Icon view, List view, or Column view - or you can use Terminal and use the various options for the ls UNIX command for listing a directory. For those options, see:
    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/ls.1.html
    Hope this helps.
    Regards.

  • I had renamed my user login name and assumed that there will be no change in the settings and files. When I login with the new profile name everything is gone. How can I get back all my files and settings?

    I had renamed my user login name and assumed that there will be no change in the settings and files. When I login with the new profile name everything is gone. How can I get back all my files and settings? Please help. Thanks.

    You should have asked this before you tried: Changing username or short name- User Account and Short Name- OS X- How to change user account name or home directory name.

  • How can I get a list of apps which are supported on ipod touch model ma623zo?

    How can I get a list of apps which are supported on ipod touch model ma623zo?
    It's about 6 years old I think.
    I have put the latest IOS on there (currently 3.1.3 (7E18)).
    I download apps from the app store but they often fail to launch. I assume they're incompatible.
    Is there a way to check which apps will work and which won't before I buy them?
    Thanks!

    I have no idea how my reply could be "misleading". I stated the exact situation: there are millions of apps in the iTunes Store, and providing a comprehensive, accurate list of which apps support which version(s) of iOS would be highly impractical. You can perhaps help with your search by going to AppShopper:
    http://appshopper.com/search/?search=iOS+3
    That will give you at least some starting points, but AppShopper is neither comprehensive nor completely accurate. I've found a number of apps listed there over the time the site has existed that either are no longer offered or which have been updated beyond the iOS version indicated. But it might help.
    Regards.

  • How do i get a list of all the apps i have purchased this year

    how do i get a list of all the apps  have purchased this year and how much each app was

    Check your iTunes purchase history (click your email address in the upper right corner in the iTunes App Store-> log in -> click Purchase History).  This gives you a comprehensive list of apps you've purchased.
     Cheers, Tom

  • How can I get a list of database names from environment

    Hi,
    How can I get a list of database names from environment.
    I had found a method in JE API Docs named Environment.getDatabaseNames(), and i couldn't found the same method in Berkeley DB.
    I use java interface, is it supported?
    Thanks.

    Hello,
    I don't know if it would work for you, but have you checked the db_archive utility at:
    http://download.oracle.com/docs/cd/E17076_01/html/api_reference/C/db_archive.html
    Check the -s option.
    Thanks,
    Sandra

Maybe you are looking for

  • Use web template to open a report from a menu

    Hi all, I have created one web template where I have a role menu that shows all reports that are available to the user. When the user clicks on one of these reports, the report displays in a new window. So far everything is working fine. But, I have

  • Create a Blank Text file if it does not exist in a Given Directory

    Hi, I would like to check if text file in a given folder exists or not if not then create a blank text file in a given directory. I was checking File system task, it has options to create directory and move files, copy files but not creating files. H

  • Seeburger: No matching inbound binding

    Hi guys, I'm having the following error : I'm using Seeburger AS2 adapter and I'm trying to receive a message from an external partner. I've created the corresponding channels, sender and receiver agreements  but I'm getting the following error: No m

  • Web RGB to CMYK Meter

    I have used the digital color meter in apples os to find rgb colors in a image. I was trying to find one that would give me the closest cmyk equvelent to the web color on my clients site.  The problem is that i used a hex value in Photoshop to create

  • Iphone 5 moirure in the charger port

    iphone 5 stop working after 3 months of having it apple wont replace it i dont no what to do its coved by warrenty but apple still wont fix it? any ideas