File path notation

I need to disply several file paths in the same panel. In order to reduce
panel size I would like to use the 'dotted' Windows notation like
'C:\WIND...\FILE.TXT and let the user display the full path in a separate
window. Is there a standard Windows function to obtain the reduced string
from the full path name?
TIA

Hi all, I still have problems with includes in extendscript. Has somebody an idea how to write a function to include aboslute file like this: include (MY_SCRIPT_DIR + 'test.jsx'); // result shoud be something like that // #include "/Applications/MAMP/htdocs/extendscript-library.org/lib/photoshop/photoshop-lib.jsx" Thanks you!

Similar Messages

  • SSIS package works in development environment but fails when job scheduler executes, file path invalid

    SIS package works in development environment but fails when job scheduler executes, file path invalid
    Relatively simple package to get OLE-DB connection to MS FoxPro 9.0 DB
    The failure in the job log states that the path is invalid its a network path (\\192.168.1.xxx\foldername) this has been run several ways with the remote computer being mapped as a network drive and through the \\ notation described above.
    Thinking it was a security issue between the SQL agent account and my account I tested by subsitution myself as a proxy account for the agent when running this job, again same result failed on network path.
    One issue I see is that the remote computer is running Server 2000 (legacy software incompatable with newer versions) 
    Is it possible that this is a security issue, since if i understand correctly the current MS domain security model didn't exist until Server 2003.

    Hi REIData,
    Have you got the issue resolved? Based on your description, please make sure the target folder is shared properly. If the computer on which the SQL Server Agent job runs doesn’t join the domain as the server that hosts the shared folder, you have to share
    the folder with everyone by adding “Everyone” to the people list on the File Sharing page of the folder and assign "Read/Write" permission to it.
    Regards,
    Mike Yin
    TechNet Community Support

  • What is the correct way to format file paths and names in the structapp file?

    I am trying to create a structured application to export fm files as xml, and probably read the xml back to fm.
    In the structured application file (structapp), I need to specify the locations of the various files (DTD, read/write, template, etc). I would like to place these files on a shared server so others can use the same structapp file (that is, a cop of it). What is the correct way to format the file paths and names? Can folders folder names and file names have spaces in them? I tried the following, for example:
    \\serverName\shareName\folder 1\folder 2\file name.dtd
    I use the same format for the template file and the read/write rules file.
    When I try to save an fm file to xml, FrameMaker says that it cannot read the DTD; however, the resulting xml file appears to be well-formed. The DOCTYPE element in the resulting xml is formatted with forward slashes and spaces replaced with %20.
    I tried using forward slashes and replacing spaces with %20, but then I get an error about reading the read/write rules.
    NOTE: I have another structured application to read xml into fm. This application does not have a DTD file. The template and read/write rules files are specified as above. Except for complaining about a lack of a DTD, the application works fine; it even applies an XSLT in the process. Again, when I DO add a DTD to this latter application, I get the same complaint about not being able to read the DTD.
    I am using fully patched FrameMaker 9 in Windows XP.
    Thanks,
    Van

    Hi Van,
    The XML parser and FrameMaker are not the same thing. The Error Log says which component created which message. The XSL processor is another option that can throw messages. The "\\server\path\some.dtd" syntax in structapps.fm seems to be fine for some tools, as Internet Explorer with XML tools successfully finds the DTD which appears as "//server/path/some.dtd" in the XML. But apparently Xerxes, the XML parser bundled with FrameMaker, does not like this notation.
    If you have a path with a drive letter, "H:\path\some.dtd", FrameMaker turns that into "file:///H:/path/some.dtd". It seems, Xerces would like to see "file:/" in front of absolute paths.
    This is what I have in structapps.fm:
    Template: \\server\path\projecttemplate.fm
    DTD: some.dtd
    Read/write rules: \\server\path\projectrules.txt
    DOCTYPE: …
    Entity locations
      Entity search paths
        1: \\server\path\
    In the structapps.fm I have the DTD without path information. The resulting XML (without XSL postprocessing) then contains just the file name with a relative path back to the book folder (when saving a book as XML). It therefore requires the DTD to be available at this place. I handle this using an event script that fires for NotePreSaveXml and copies the DTD to the folder of the original document.
    As I always use XSL postprocessing and using XSLT1 it is not possible to have the doctype-system as a parameter I have this in my XSL stylesheet:
    <xsl:output doctype-system="some.dtd" />
    For the resulting XML the DTD is expected to be in the same folder as the XML file. This is handled by the same event script as above, it therefore copies the DTD to the source and the target folder.
    Bottom line: If you want/have to use UNC paths, you have to do some programming to work around a FrameMaker bug.
    - Michael

  • SQLConnection.attach() fails when file path contains apostrophe

    Hello,
    Any help on this would be much appreciated. Issue occurs when user has apostrophe in their windows username and therefore an apostrophe in their File.applicationStorageDirectory path.
    e.g. if the user logs into windows as j.o'reilly, then it will be:
    C:\Documents and Settings\j.o'reilly\Application Data\application name\local store
    Have tried with Air Runtimes: 2.5.0.16600,2.6.0.19120,3.2.2070
    Have tried with Air SDKs: 2.0, 2.7, 4.5
    To replicate without creating a windows user with an apostrophe, the same result occurs if the files themselves are named with an apostrophe:
    var __connection:SQLConnection;
    __connection = new SQLConnection();
    __connection.open( File.applicationStorageDirectory.resolvePath("mainfile.s3db"), SQLMode.UPDATE );
    __connection.attach( "secondary", File.applicationStorageDirectory.resolvePath("user'name.s3db") );
    Result:
    SQLError: 'Error #3125: Unable to open the database file.', details:'near 'name': syntax error', operation:'attach', detailID:'2003'
        at flash.data::SQLConnection/internalAttach()

    https://bugbase.adobe.com/index.cfm?event=bug&id=3220380
    Community support? You mean I can checkout the source of flash.data.SQLConnection and fix it? Can you please post the repo url?
    The workarounds we attempted involved escaping the apostrophe were defeated by the File class removing the escaping.
    //Attach() Does not accept strings
    File.applicationStorageDirectory.resolvePath(sqliteFileVO.fileName).nativePath
    //Attach will not work with files which have their path escaped DOS style
    var f:File = new File( '"' + File.applicationStorageDirectory.resolvePath(sqliteFileVO.fileName).nativePath + '"');
    //Passing as url does not escape the apostrophe
    var f:File = new File(File.applicationStorageDirectory.resolvePath(sqliteFileVO.fileName).url);
    //passing using url notation does not escape the apostrophe
    var f:File = new File("app-storage:/"+sqliteFileVO.fileName);
    //Escaping the native path this way means the file cannot be found
    f.nativePath = f.nativePath.replace(r,"%27");
    //Escaping the native path this way does not work
    f.nativePath = '"'+f.nativePath+'"';
    //cannot be escaped with \ or / they will be interpreted as separator
    //you may pass in escaped file path, but File will unescape it for us immediately
    var regfind:RegExp = /'/g; //'
    var strreplace:String = "%27";                   
    var strclean:String = fileName.replace(regfind,strreplace);
    file = new File("app-storage:/"+strclean);

  • Search c:\ drive and return file path for winword.exe and save as variable

    Hi all, here is what I'm trying to do;
    1. Search C:\ drive for winword.exe
    2. take the file path and save it as a variable.
    3. Then based on the path value, use the switch statement to run "some command" 
    Essentially I'm trying to find what the file path for winword.exe is, then run a command to modify the registry.  I already have the script that will modify the registry like I want but the problem it, the path is hard coded in the script, I want to
    now look for all versions of word and set the right file path so I can make the right registry changes.

    This should get you started:
    http://ss64.com/ps/get-childitem.html
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • What is a  Logical and Physical file path in sap?

    what is a  Logical and Physical file path in sap?

    Hi,
    Physical file is what you see from the OS level.
    Logical file is what ABAP code can call certain functions to read/write.
    Transaction FILE would link them together. Typically the logical path ends with "<FILENAME>", and the logical file refers to the logical path.
    To extract the physical path from the logical path name
    DATA: lf_mandt TYPE sy-mandt,
            lf_opsys TYPE sy-opsys.
      lf_mandt = sy-mandt.
      lf_opsys = sy-opsys.
    To extract the physical path from the logical path name
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
          client           = lf_mandt
          logical_filename = p_unix
          operating_system = lf_opsys
        IMPORTING
          file_name        = gwa_input
        EXCEPTIONS
          file_not_found   = 1
          OTHERS           = 2.
      IF sy-subrc EQ 0.
      Concatenating the physical path and the input unix file name
        CONCATENATE gwa_input p_file INTO gf_file .
      ENDIF.
    Reward if helpful.
    Regards,
    Ramya

  • Application server file path vaidation

    I have written the code for application server file path validation.
      DATA : l_fname TYPE filename-fileintern." type c.
      DATA : l_filpath TYPE filename-fileintern,
             l_filname(40) TYPE c.
    PARAMETER : p_sucfil LIKE rfpdo-rfbifile OBLIGATORY. " rlgrap-filename
    AT SELECTION-SCREEN ON p_sucfil.
    l_fname = p_sucfil.
    CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
      CLIENT                        = SY-MANDT
        logical_filename              = l_fname
       OPERATING_SYSTEM              = SY-OPSYS
      PARAMETER_1                   = ' '
      PARAMETER_2                   = ' '
      PARAMETER_3                   = ' '
      USE_PRESENTATION_SERVER       = ' '
       WITH_FILE_EXTENSION           = 'X'
      USE_BUFFER                    = ' '
      ELEMINATE_BLANKS              = 'X'
    IMPORTING
      EMERGENCY_FLAG                =
      FILE_FORMAT                   =
       FILE_NAME                     = l_filpath
    EXCEPTIONS
       FILE_NOT_FOUND                = 1
       OTHERS                        = 2
    IF sy-subrc <> 0.
      message 'Invalid file name' type 'E'.
    ENDIF.
    But always i will get Invalid file name.
    Y is it so.
    pls help me.

    Praveen,
    I have checked ur code and I found that if i give a logical file name from
    tran. FILE under folder 'Logical file name definition, cross client' then ur code works. Pl. check.
    Regards,
    Joy.
    DATA : l_fname TYPE filename-fileintern." type c.
    DATA : l_filpath TYPE filename-fileintern,
    l_filname(40) TYPE c.
    PARAMETER : p_sucfil LIKE rfpdo-rfbifile OBLIGATORY. " rlgrap-filename
    AT SELECTION-SCREEN ON p_sucfil.
      l_fname = p_sucfil.
      CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
      logical_filename = l_fname
    operating_system = sy-opsys
      with_file_extension = 'X'
      IMPORTING
      file_name = l_filpath
      EXCEPTIONS
      file_not_found = 1
      OTHERS = 2
      IF sy-subrc <> 0.
        MESSAGE 'Invalid file name' TYPE 'E'.
      ENDIF.

  • 'F4_FILENAME'. USER FILE PATH

    when I used the following function module  for user defined file path selection
    parameters: p_file like rlgrap-filename.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    PROGRAM_NAME = SYST-CPROG
    DYNPRO_NUMBER = SYST-DYNNR
    FIELD_NAME = ' '
    IMPORTING
    FILE_NAME = P_FILE.
    I am getting the follwing Dump error.
    Exception condition "NO_FIELDCATALOG_AVAILABLE" raised.
    Could any one help me correcting problem ?

    Try  this.
    report zrich_0001.
    data: ifiletable type filetable.
    data: xfiletable like line of ifiletable.
    data: rc type i.
    parameters: p_file1 type localfile default'C:test.txt'.
    at selection-screen on value-request for p_file1.
    call method cl_gui_frontend_services=>file_open_dialog
       EXPORTING
    *    WINDOW_TITLE            =
    *    DEFAULT_EXTENSION       =
    *    DEFAULT_FILENAME        =
    *    FILE_FILTER             =
         INITIAL_DIRECTORY       = 'C:'
    *    MULTISELECTION          =
      changing
        file_table              = ifiletable
        rc                      = rc
    *    USER_ACTION             =
      EXCEPTIONS
        FILE_OPEN_DIALOG_FAILED = 1
        CNTL_ERROR              = 2
        ERROR_NO_GUI            = 3
        others                  = 4.
    read table ifiletable into xfiletable index 1.
    if sy-subrc = 0.
      p_file1 = xfiletable-FILENAME.
    endif.
    Regards,
    RIch Heilman

  • Logical and physical file paths

    Hi,
    can anyone elobrate me  on what are logical and physical file
    paths ?

    hi,
    Follow this link
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3deb358411d1829f0000e829fbfe/frameset.htm
    File format determination (Required / optional fields and field checks).
    Logical File Path configuration through transaction 'FILE'. A new physical file path should be created on operating system level or an existing one can be used if agreed. The Basis team member should create a new file path at operating system level, if required.
    Hope this helps, Do reward.

  • Inserting file path/filename

    Hi, all out there,
    I've just strated using Pages '08, and exploring it. But Pages Help and User Guide do not tell me how to insert the file path or filename in the footer, so that it's automatically updated whenever changed. It's not in the Insert menu, and cannot find it in Insert > Function.

    Hi Peggy,
    Though that feature is useful isn't found in 10.4.10. The Devon Technologies WordService ReadMe file has the following:
    Insert:
    Contents Of Path
    Inserts files and folders of the selected path (tilde is expanded)
    and of all its subdirectories (e.g. select the path '~/' and this function
    will insert all contents of your home directory)
    Short Date Cmd-'{'
    Inserts the current date (no text selection necessary)
    Long Date Cmd-'}'
    Inserts the current date (no text selection necessary)
    Short Date & Time Cmd-'_'
    Insert the current date & time (no text selection necessary) Long Date & Time Cmd-'%'
    Insert the current date & time (no text selection necessary) Time
    Insert the current time (no text selection necessary)
    Maybe that's what you're seeing in your services menu perhaps.
    Sincerely,
    RicD

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

  • Apex Listener 2.0.3.221.10.13 File path syntax error: ILLEGAL_CHARACTER

    Hi all,
    I tryed to install Apex Listener 2.0.3.221.10.13 into Tomcat 7.0.42 and I got the error :
    INFO: Deploying web application archive C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\apex.war
    ago 16, 2013 9:15:19 AM oracle.dbtools.common.util.Files checkLegal
    WARNING: File path syntax error: ILLEGAL_CHARACTER, path: C:/
    ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Error listenerStart
    ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [/apex] startup failed due to previous errors
    and also
    ago 16, 2013 9:15:19 AM org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Exception sending context initialized event to listener instance of class oracle.dbtools.rt.web.SCListener
    java.lang.IllegalArgumentException: oracle.dbtools.common.util.FilePathSyntaxException: ILLEGAL_CHARACTER
      at oracle.dbtools.common.util.Files.checkLegal(Files.java:262)
      at oracle.dbtools.common.util.Files.file(Files.java:127)
      at oracle.dbtools.common.config.file.ConfigurationFolder.chooseExistingFile(ConfigurationFolder.java:172)
      at oracle.dbtools.common.config.file.ConfigurationFolder.choose(ConfigurationFolder.java:151)
      at oracle.dbtools.common.config.file.ConfigurationFolder.setup(ConfigurationFolder.java:64)
      at oracle.dbtools.rt.web.SCListener.contextInitialized(SCListener.java:72)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
      at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
    Caused by: oracle.dbtools.common.util.FilePathSyntaxException: ILLEGAL_CHARACTER
      at oracle.dbtools.common.util.FilePathSyntax.check(FilePathSyntax.java:45)
      at oracle.dbtools.common.util.Files.checkLegal(Files.java:255)
      ... 19 more
    My platform is :
    OS : Windows 7 64 bit
    JRE : 1.7.0_25-b17 -
    %USERPROFILE% : C:\Users\SERGIO
    %TEMP% : C:\Users\SERGIO\AppData\Local\Temp
    Apex Listener Configuration Folder : C:\Users\SERGIO\AppData\Local\Temp\apex
    Can anyone help me, please?
    Sergio

    You need to configure your config directory before you deploy. If you never configured v2 listener before then create a new folder like "c:\apex\config". Then use
    java -jar apex.war configdir  c:\apex\config
    Then do your configuration as required and then deploy again.

  • How to get the file path in adf application

    hii all,
    i have a txt file that i am using in my adf application,
    i am passing this txt file through a File Reader, for which i have to mention the file path.
    The file is in web-content and when i am hard coding the complete file path i.e C:/JDeveloper/myApp/ViewController/public_html/log.txt
    the application is working fine when run on integrated weblogic server.
    My requirement is to access this file without giving the static file path, as in case i have to use this application on any other machine..
    for that how to mention the file path-
    i tried using FacesContext to get the context path :-
    FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();
    which gives me
    \myApp-ViewController-context-root
    after appending public_html\log.txt
    I am using the following path to access the file :-
    \myApp-ViewController-context-root\public_html\log.txt
    again i am getting the java.io.FileNotFoundException
    Does anyone know how to use file from inside the web-content without giving the complete path..???
    Thanks

    Hi,
    If you put your file under public_html folder, you can use this code to access the file:
    For example file is : log.txt
    FacesContext.getCurrentInstance().getExternalContext().getRealPath('/log.txt').toString().trim();
    Thanks.
    - LSR

  • 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 Print File Path and File Name at the bottom of the Report?

    Hi guys,
    I have situation where i have to display my file path where i save my file. For example: U:\Reports\Monthly_Reports\Compay_xyz.jsp
    also, after the file path line if its possible i would like to display the date where the last modification done on the file.
    I read one of the post and some one suggested that use srw.get_report_name() but since i am a new to Reporting i am not sure how to use it.
    Can anyone describe me little bit in detail please?
    Thank You.

    Hi,
    Your logic seems to be fine and you should put it in the additional plsql code section "After displaying the page". But you may have to check you syntax by compiling it. You cannot use "LINEFEED". It should be '<br>'. This is the line break in html. Please check your type declaration. Also some ';' is missing after some statements.
    Hope that helps.
    Thanks,
    Sharmila

Maybe you are looking for

  • Values are not showing in report

    Hi, I have created a report with EVDRE containing several columns. When I use MemberSet: "SELF" for all columns, it shows me the data I have uploaded correctly. However, if I choose "MEMBERS" for any of the columns, the value field is empty. This is

  • Problem in database fields creation using default class of B1DE Wizard

    Hi Experts In an AddOn I am creating database fields in default class "Project_DB'. It does not give any message weather it creates fields or not. My code for database creation is given below Namespace FormARE     Public Class FormARE_Db         Inhe

  • Adobe Acrobat 9 not printing to PDF

    I have Adobe Acrobat 9 Standard. It is no longer printing to PDF. It was working for about 4 months and suddenly stopped. I have tried all the updates that they recommend on the website but they are not working. Can anyone help?

  • System preferences security crash

    Hi all, Everytime I try to open system preferences -> security i get a crash. I tried to reproduce the crash on a newly created user account - result crash again I tried to RESET System Preferences (you can reset almost program this way). Just mosey

  • My e mail page is frozen  when I en it in the iPad. Any ideas?

    My e mail page is frozen in my iPad. Everything else is working right, but the mail page is frozen. Any ideas?..