File path question....

Yet another really simple question from me, as I've been away from DIAdem for too long.
I have a program which, in part of it, needs the user to select the path that they want a set of a few hundred files to be saved in. I've tried using FileNameGet, but this requires me to select a file in the directory i want to save into to record the path. I just want the user to have to select the folder once.
I've tried this:
'===============
dim newfilepath
If  (FileNameGet("ANY",,,,,,"Select the directory to save the new files into:") = "IDOk") Then
  newfilepath=FileDlgDir
else
End If
'===============
Can I select a directory instead of a file?
Solved!
Go to Solution.

Hello Tom!
Yes, with the PathNameGet() command.
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  

Similar Messages

  • CS6 local file path question

    I have an external USB drive with all my local website files for clients, this drive is starting to behave badly. I already backed up the files on another drive and I need to know if I unplug and disregard the original usb drive and attemnpt to access the copied files from another drive will the paths automatically change?
    For instance, if I have a folder with a path
    Original drive / folder with local files/ localdreamweaverfolder
    and try to access the same folders with the path change from original drive to
    drive 2 / folder with local files/ localdreamweaverfolder
    will there be a problem?
    R

    You should edit the site definition to point to the new location on the new drive. You should be golden once you do that.

  • File Path Control question

    Simple question: How do I invoke the Open command in the File Path control? My reason is of my user hasn't supplied a file, then I want to force the user to select one.
    Solved!
    Go to Solution.

    Most file related vi should prompt if there is no file path. If for some reason you are not getting that you could check to see if the file path is empty and add a prompt see below:
    Tim
    Johnson Controls
    Holland Michigan

  • Massive mp3 file(path) move question

    Alright so I recently purchased a 2 terabyte network server for my home network. The purpose of this is to move all my music, movies, photos, etc. to the network drive in order to clear out all that space on my laptop's drive. At this point and time, I've only copied all my music to network drive. Figure the next step would be is to delete all my music off my local drive. But then got a little worried about iTunes. Now when I delete my music off my local drive, iTunes will be looking for the mp3s via the originated file path. Obviously the file is not going to be there. So when this happens in iTunes, the circularly enclosed exclamation point pops up and iTunes wants you to manually and find the file for it to play. So essentially my question is... Since I'm doing this on a large scale, Is there an easier way to get this done?
    Best solution I was able to come up with was to delete all the songs in iTunes and re-drag all the music back in there. BUT... the problem I have with that a good majority of the music's album artwork were manually put in by me (kind of uh...yeah about seeing the album artwork on the screen when I'm listening to my iPod). So I don't want lose all that it. Help! Kind of long, I know. Appreciate any help or suggestions.

    Thanks for responding Brian -
    The message I get is Error Code -2147467259
    Conn Execute.vi->InsertIntoFrom.vi<ERR>Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC Microsoft Access Driver] Could not find file 'C:\Project\APDSS\DataBase\ExternalInterface.mdb'. in Conn Execute.vi->InsertIntoFrom.vi
    When my query looks like
    INSERT INTO InternalInterface SELECT Field1, Field2 FROM ExternalInterface.ExternalTable WHERE Id = '065649-101-750';

  • A basic questions on file paths

    hi everyone, just trying to get back into the revamping our workplace website, stripping out the old flash based site and implementing a nice smooth css controlled site.
    i've gone through the creating your first website tutorial by David Prowse and found it to be very informative but still leaves me with a number of questions. Is there an actual thread present to ask questions based on the materials presented in the 6part tutorials?
    a simple question on file paths:
    is. <link href="./styles/main.css" the same as
        <link href="styles/main.css" ?
    which one is better (foolproof) for uploading to a webspace and which format should be used for all filepath declarations (css, js, scripts etc)?
    Btw, what is the difference between
    styles/main.css
    /styles/main.css
    ./styles/main.css
    ../styles/main.css ?
    thanks for any help

    westwm wrote:
    is. <link href="./styles/main.css" the same as
        <link href="styles/main.css" ?
    which one is better (foolproof) for uploading to a webspace and which format should be used for all filepath declarations (css, js, scripts etc)?
    Btw, what is the difference between
    styles/main.css
    /styles/main.css
    ./styles/main.css
    ../styles/main.css ?
    thanks for any help
    Let me be the first to start here:
    1)
    is. <link href="./styles/main.css" the same as
        <link href="styles/main.css" ?
    No it is not the same.  The first goes to the root folder and looks for styles folder and then main.css file;  The second simply looks for the styles folder in the same folder as the html page in which this is defined.  so this is at the same level as the document.
    Which one is better?  It depends on your site definition and the best thing is to let DW decide how to link the file.  Dw is pretty good at getting things right such as this one.
    Is there an actual thread present to ask questions based on the materials presented in the 6part tutorials?
    I thought David's articles had a space below it to make comments and/or ask questions but I have not been spending time on DW forums recently because I have noticed that most answers here have duplicates or triplicates for most questions stating more or less the same thing so there isn't anything new here.
    I think I have covered almost everything asked in your question.
    Hope this help.

  • Question re: moving iTunes library to new computer where files have different file path?

    Hi everyone-
    I just got a new laptop and need to transfer my iTunes library to the new computer.
    On my old computer, the hard drive was partitioned into a "C" drive and an "F" drive. The new laptop is just "C."
    Since my iTunes library was on the "F" partition on the old laptop, the file path for all the files is going to change when I transfer to the new laptop.
    I can find dozens and dozens of articles online about how to move iTunes to a new computer, but none of them seem to address the file path issue.
    Does anyone know where I can find detailed instructions on how to make this work?
    Thanks in advance.

    Quit iTunes.
    Move the entire /Music/iTunes/ folder to the F: drive.
    Hold Shift & launch iTunes.
    Select Choose library... and select the iTunes folder you moved to the F: drive.
    Everything should still work fine.
    Now go to iTunes prefs > Advanced.
    Set the iTunes media folder location to the iTunes folder you just moved to the F: drive.
    iTunes menu File > Library > Consolidate library.
    This will copy all your media into the iTunes folder (F:\iTunes\iTunes media\ folder)
    Let it finsh.
    Quit iTunes.
    Then you can copy the F:\iTunes\ folder to the new computer.
    If you copy it to /Music/ folder, just start iTunes and it'll work.
    If you copy it elswhere (such as another drive) hold Shift, launch iTunes, select Choose library... and select the iTunes folder.

  • SIMPLE QUESTION, BROWNIE POINTS FOR ANSWERERS: changing the file path used for an audio recording

    After changing the name of an audio recording in the .band Media folder, the .band file continues to use the previous file name to try to find the audio file. I want to update the file path so that it uses the same file but with the new name. I thought I might be able to change the file path by editing projectData, but it appears to be encoded.
    This is a common, crucial feature present in virtually all DAWs. Surely there must be a feasible way to do this in GarageBand?

    you can't change the names of GB's assets behind its back
    if you want to change the name of the region that GB displays: double click the region within GB to open the track editor, then double click the name of the region (in the track editor) to change its name

  • 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?

  • Error message: "Can't open file "[File path, file name].key"

    If I attempt to open any Keynote files, I now get this error message.
    "Can't open file "[File path: file name].key"
    To clarify, the text in the square brackets above would be the file path and then the file name.
    The file then will appear on the screen, but is unresponsive to any clicks or menu commands.
    The files will open successfully on other Macs, so they aren't corrupt.
    Also - I've just checked, and opening Keynote and trying to create a new presentation leads to the same problem: All screen menus / buttons are dead - all I can do is drag the window around the screen.
    I've tried to reinstall Keynote, but this hasn't resolved the problem.
    Is there some corrupt preference file (or similar) that I need to get rid of? Is there an easy way to do a complete uninstall of Keynote so I can try another install? Or is this a symptom of something else?
    All ideas gratefully appreciated!
    Message was edited by: Brendan Donlon

    All the issues I describe in my questions around this time re: Keynote were actually symptoms of a soon-to-die laptop. The Hard Disc was corrupting, and Keynote was the first application to be affected.

  • How to read file from server if I have a logical file path?

    Hi guys,
    I'm having a pretty "on the run" question,
    My program is currently reading a file from server using "open dataset" with file path like this (just example)
    /usr/interface/abc/bcd/testfile.dat
    Now I got a requirement to make it more consistent to read files, instead of reading that physical file name, I should read the files from a specific folder using logical path.
    So I go to T code "FILE" and created a logical path called ZABC_FILE_PATH, unix compatible, with physical path is (for example),
    /usr/interface/<sysid>/<client>/<filename>
    My question is, can I still use open dataset statement to read this? if yes, how do I do that? If no, there should be alternative way, please let me know what you think. Thanks,

    Thanks all, I figured it out.
    ONe thing is that typo double quote
    The other thing is the importing part, I need the full file path.
    CALL FUNCTION 'FILE_GET_NAME_USING_PATH'
      EXPORTING
        CLIENT                           = SY-MANDT
        logical_path                     = 'ZABC_MY_LOGICAL_FILE_PATH'
    *   OPERATING_SYSTEM                 = SY-OPSYS
    *   PARAMETER_1                      = ' '
    *   PARAMETER_2                      = ' '
    *   PARAMETER_3                      = ' '
    *   USE_BUFFER                       = ' '
        file_name                        =  v_1
    *   USE_PRESENTATION_SERVER          = ' '
    *   ELEMINATE_BLANKS                 = 'X'
      IMPORTING
        FILE_NAME_WITH_PATH              = v_what_I_need
    * EXCEPTIONS
    *   PATH_NOT_FOUND                   = 1
    *   MISSING_PARAMETER                = 2
    *   OPERATING_SYSTEM_NOT_FOUND       = 3
    *   FILE_SYSTEM_NOT_FOUND            = 4
    *   OTHERS                           = 5
    I really appreciate your contributions, thanks again!

  • Issue with length of file paths - Windows & C++ plugin

    Hello,
    I've got an issue that just popped up on my OCR plugin I've been working on that I suspect is related to the length of the filepath.
    I'm getting the following error that is being caught and logged when trying to open a file (filename changed for security purposes):
    Error Opening File: D:\aVeryLongFilePath.pdf
    Exception info: This file cannot be found.
    The entire string, including the D:\ part, is 266 characters long. I cut down the length of part of the path one by one and it was able to open and OCR the document when the length was 259 characters.
    I know there's a MAX_PATH variable in Windows and/or there's some kind of limitation for file length. Note that I can open the file in Acrobat using File->Open and run OCR on it individually using the built-in Recognize Text function, but if I try to Recognize Text for Multiple files and choose "Add Folders", the file in question doesn't show up in the list of files to be batch OCR'd (even though it is there). Interestingly, choosing "Add Files" from the Recognize Text->In Multiple Files does work. So Acrobat itself has at least some issues opening the file using some of it's features.
    Here's how I'm opening the document:
         string pn;               // assume this is initialized, I'm just putting this here to demonstrate what type it is
         pathName = pn;
         ASAtom pathType = ASAtomFromString("Cstring");
         asPathName = ASFileSysCreatePathName(ASGetDefaultFileSys(), pathType, pn.c_str(), NULL);    
         pdDoc = PDDocOpen(asPathName, ASGetDefaultFileSys(), NULL, true);
    Is there a way around this problem?
    Thanks.

    Yes, you are hitting the MAX_PATH on certain versions of Windows.   The only workaround would be to see that the file is "a very long path" and then break up the pathname construction into multiple pieces (perhaps the containing directory and then the file itself).  The other option is don't use Cstring to construct, use the Unicode variant.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Mon, 7 Nov 2011 15:43:33 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Issue with length of file paths - Windows &amp; C++ plugin
    Issue with length of file paths - Windows & C++ plugin
    created by zephed56<http://forums.adobe.com/people/zephed56> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4012710#4012710

  • External hard drive -- old file path from a previous laptop is still where to find my songs,  how do I change?

    My iTunes library is a mess, it is stored on an external hard drive.  My old laptop died unexpectedly and I didn't have a problem resetting the file path for the library on my new laptop.  The other day my son was trying to update his iPod when I wasn't home and I don't know what he did.... GRRRR  Any songs I purchased on my old laptop are now not able to be found.  When I click on 'get info' on a song it shows the old file path from the old laptop.  Songs that I purchased since the new laptop are still playable and great.  I know my songs are still there but I can't seem to get the file path to reset on the old music.  HELP!!! PLEASE

    This happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or an external drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • Full file path in Office 2007 when open or save

    Am not sure i can raise this question here.
    We are using 10gR2 Application server and Windows 7 as a Client. In the client machine we have installed the Microsoft Office 2007.
    From the forms we are trying to open and save (after changes) the files of format Doc/Xls. These files will be stored in separate shared folder accessible through Application server and client.
    Now the issue is when we open/save the file it shows the Entire path (In Saving Window) which should not happen. In previous release of MS office its not like this.
    Please help us "to hide the file path to be displayed to the user". Like changing the registry for Office 2007 or workarounds or new solutions or any other oracle's product.
    Note : Showing the file name is the Office 2007s default behavior.

    The only way to avoid showing this from a Forms point of view would be to not display the open/save file dialog in the first place. In other words, control the opening and saving using your own custom dialogs. Also, be aware that using remote drives (network mapped) may cause problems. Generally speaking, doing this would not be considered supported.
    As for opening documents on the client, there is no need to use the open file dialog if you know the file name and path to that file in advance. You can simply use WebUtil's CLIENT_HOST. So let's say you wanted to open a file named mySales.doc and you knew its location, all you would need to do is this:
    Declare
         my_cmd varchar2(255);
    Begin
         my_cmd := 'rundll32 shell32,ShellExec_RunDLL '|| :t1;
         CLIENT_HOST(my_cmd);
    End;In the above example, +:t1+ is a text field on a canvas. The value would include the path and file name to be opened. Of course this could be a pl/sql variable which you programatically populate or any combination of that. The value value must include the full path (with drive letter) and full file name. If the path or name contains spaces, double quotes may likely be necessary. You will have to test.
    For saving an opened file, you are mostly out of luck from Forms unless you took control of Word/Excel as it was being opened in the first place. For example you likely can open the Office products using OLE or VB or other macro and control what the open and file save dialogs look like or if they are even accessible at all. But this has nothing to do with Oracle or specifically Forms.
    You need to refer to the MS documentation.

  • Create a dynamic physical file path in FILE tcode

    Hi ,
    I have a requirement where i need to create a file on application server. the physical path depend on the month in which it is executing.
    For example I have a file with the name 29082011_hh:mm:ss.dat.
    This file should be stored in the directory file015\FI\appl\Aug\.
    So i require to create the logical file path as file15\Fi\appl\<month>\<filename>
    My question is do we need to maintain the folders for all the months in AL11 or it can be generated at runtime
    Plz reply

    You must create the directories beforehand.

  • A column in a table has physical file path (I want to get file size of those docs from the OS)

    Experts!!
    I have a table that holds the physical file path of files in one of its columns. It does not give a link, just the physical file path.
    For example,---- C:\bu\test.pdf   and let us say the file size is kb according to the OS.
    Is there any way I can obtain the file size of the files from the physical path?
    for example, the file size of the test.pdf file in the example here using t-SQL?
    Much Appreciation
    ebro

    Hey there... thanks for the response......I found the following as a solution for my problem. But my problem is the SP created using the method needs a directory as a parameter. How can I pass the directory from a table that holds my directory?
    EXEC  [dbo].[GetListOfFileWithSize](@Dir)
    How do I pass the directory from my table?
    http://stackoverflow.com/questions/7952406/get-each-file-size-inside-a-folder-using-sql/7958070#7958070
    ebro

Maybe you are looking for

  • With holding tax error FZ379-"Error in WHT certificate numbering"-Thailand

    Hi, We are receiving an error "FZ379 - Error in WHT certificate numbering" while posting an outgoing payment for a vendor in Thailnd. Here is the business process we follwed: 1. Posted Down payment request on vendor. 2. Paid down payment through F110

  • Can't get CF working with IIS6 on W2k3 sp2

    Hi I really have no idea how many times I have had no problems getting CF and IIS playing nice with each other: dozens and dozens of times. Prior to today, the last time I had a problem was back in the latter days of CFMX6.0. Today I am faced with a

  • SQL: Having problems passing a date value to dynamic SQL

    SQL Version 2008 (not R2) Problem:  1)  I'm getting the following error message when trying to run the sql code below. SQL "Messages" Returned when running code: Msg 206, Level 16, State 2, Procedure uspxc_WAWP_10_Get_VPData, Line 0 Operand type clas

  • How to repair inbox.dbx ?

    Letters from a certain date (approximately March 1, 2013) to the date when the PC turned on after the holiday (September 2, 2013) - lost. The size of the folder Inbox.dbx not changed. That is, these letters have not disappeared, but are not seen in O

  • Transportation Zone in Control data in Customer Master

    I am trying to select transportation zone for ex 201301 from an pre-defined Transportation Zone list, but it does not get selected. what could be the issue ?