Add Subdirectory to Path

Hi,
I thought this would be simple.
My code
<cfset  Application.data_directory = ExpandPath("data")><cfif 
not DirectoryExists(Application.data_directory)>
 <cfdirectory action = "create" directory = "#Application.data_directory#" ></cfif>
<cfset 
Application.County_Selections_Path = GetDirectoryFromPath(Application.data_directory) & "CountySelections.json">
My results
county_selections_path=C:\ColdFusion8\wwwroot\CountySelections.json
data_directory=C:\ColdFusion8\wwwroot\data
But I really Need
county_selections_path=C:\ColdFusion8\wwwroot\data\CountySelections.json
data_directory=C:\ColdFusion8\wwwroot\data
I need to be certain I use the correct file seperator ("\") for our systems.
Suggestions?

I think you need to re-read the docs for getDirectoryFromPath(), specifically this bit:
Parameter Description
path
Absolute path (drive, directory, filename, and extension)
http://livedocs.adobe.com/coldfusion/8/htmldocs/functions_e-g_36.html#1104945
Adam

Similar Messages

  • How can I add one more path in the classpath tag in xml

    I have added the following line in the global-web-application.xml, and it works.
    <classpath
    path="/apps01/o9ias/j2ee/home/default-web-app/WEB-INF/properties"
    />
    But whenever I add one more path into it, the oc4j can't start.
    The Oracle manual Oracle9iAS Container for J2EE is beta. It doesn't tell the grammer to do that.
    Hopefully you can share some ideas and let me know how to add some more path into it.
    Thanks.
    Wei

    Hi Wei,
    I have just done a quick search of the following URLs
    http://www.orionserver.com
    http://www.orionsupport.com
    http://www.atlassian.com
    http://www.elephantwalker.com
    And -- as is nearly always the case -- found a shamefully minute amount
    of information, and what I did find was totally useless.
    Oracle have not produced any real documentation for OC4J -- they
    claim it's coming in the next release -- and, as I already said, I
    couldn't find anything on the Internet about "global-web-app.xml" or
    "classpath" element. Therefore (surprise, surprise) your only option
    (as I see it) is just experiment and try to hack the code.
    I wish someone would please tell me if there's another option, because,
    like you, I find it very frustrating to have to continually play
    "guessing games" when trying to work with OC4J. I imagine other people
    seem to enjoy this -- since I don't see anyone else complaining.
    In any case, have you tried multiple "path" attributes, for example:
    <classpath path="/your/path/" path="/your/other/path/"/>
    Got nothing to lose, have you :-)
    Good Luck,
    Avi.

  • How to add \... path in oracle code

    Hello All,
    I've written the following pack and trigger.
    create or replace package pak_rep_q
    as
    vid varchar2(50);
    end;
    CREATE OR REPLACE TRIGGER trig_rep_que
    after insert
    on REPORT_QUEUE
    referencing new as new old as old
    for each row
    declare
    --vid varchar2(50);
    begin
    IF :new.queue_status='PENDING' then
    pak_rep_q.vid :=:new.URID;
    --dbms_output.put_line(pak_rep_q.vid);
    end if;
    end;
    /And now i need to use this pak_rep_q.vid in the following my local path for execution
    /omn/fin/bin/genrep pak_rep_q.vid
    How can i add the above path in my trigger code
    Plz help
    Thank you.
    Edited by: josh1612 on Jun 7, 2010 11:19 PM

    josh1612 wrote:
    Hello All,
    I've written the following pack and trigger.
    create or replace package pak_rep_q
    as
    vid varchar2(50);
    end;
    CREATE OR REPLACE TRIGGER trig_rep_que
    after insert
    on REPORT_QUEUE
    referencing new as new old as old
    for each row
    declare
    --vid varchar2(50);
    begin
    IF :new.queue_status='PENDING' then
    pak_rep_q.vid :=:new.URID;
    --dbms_output.put_line(pak_rep_q.vid);
    end if;
    end;
    /And now i need to use this pak_rep_q.vid in the following my local path for execution
    /omn/fin/bin/genrep pak_rep_q.vid
    How can i add the above path in my trigger code
    I'm not sure I understand... you want to call something called "genrep" and pass a parameter?
    If this genrep is a stored procedure (or even better a package) just call the package with the parameter.

  • How to i add an image path with spry data set

    hi
    how to i add an image path with spry data set. I made a xml file and then created a data set in html but image won't load
    this is my XML
    <?xml version="1.0" encoding="UTF-8"?>
    <banner width = "185" height = "400">
        <item>
            <image scr = "nui-panforte-recipe_01.jpg" ></image>
            <description>CHOC-COCONUT PANFORTE</description>      
            <text1>Try this delicious GLUTEN FREE Christmas treat</text1>
            <text2>CHOC-COCONUT PANFORTE</text2>
        </item>
    </banner>
    this is my HTML
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="../../SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="../../SpryAssets/SpryData.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds1 = new Spry.Data.XMLDataSet("recipe_banner.xml", "banner/item");
    //-->
    </script>
    </head>
    <body>
    <div spry:region="ds1">
      <table>
        <tr spry:repeat="ds1">
          <td>{image}</td>
          <td>{description}</td>
          <td>{text1}</td>
          <td>{text2}</td>
          <td>{text3}</td>
          <td>{text4}</td>
          <td>{link}</td>
          <td>{url}</td>
          <td>{target}</td>
        </tr>
      </table>
    </div>
    </body>
    </html>

    It would be helpfull if you actually created an <img> tag to start with
    <img src="{image/@src}" />
    would work.

  • How to add a 'stoke path' using 'pen tool' on CS6 (mac)?

    I'm a beginner at photoshop and I'm only 14 years old. I need to know this for my GCSE project.
    I'm trying to create something similar to this:
    Using pen tool and stroke path, but when i use the pen tool I'm not sure how to add the stroke path like that.
    I've used CS4 previously at school and when you right clicked on the path it came up with this:
    I haven't a clue how to get that up on CS6 (on mac) and when you right click it, it just seems to continue adding the path. Any help?

    In addition to conroys advice here is a video tutorial that might help you as well:
    enjoy,
    janelle

  • How add  subdirectory to directory in dc .

    hello
        i'm not able to add subdirectory to directory
    example
    In the directory src/packages/<component-package-folder> add new subdirectory called bol
    please give me some solutions

    Hi
    You can switch to navigator perpective and create folder under the desired folder structure (right click on the folder and select new other-> folder option).
    For uploading this folder into DTR. Rightclick on the
    fodler ->DTR->Add subtree. It will ask u for activity.
    Ashutosh

  • How do you add the motion path of a tracking point to a separate clone stamp?

    How do you add the motion path of a tracking point to a clone stamp without the clone stamp assuming the same initial/continuous positions of the tracking point?
    Is there a way to keep the clone stamp's initial position and then add the path onto it?
    I am using the clone stamp to remove unwanted duct tape that was used to keep lights on a wall.

    I have spent two days trying to find a solution to this exact same problem. I have seen some overly complex solutions that probably work but trying to figure out the explanations is like trying to understand someone describe drag coefficients of rotary wing aircraft. While I am sure they work, they are way above my comprehension. I wanted an intuitive and straight forward solution for something that shouldn't require some arcane technique to fix.
    What I did:
    1) I used the Clone Stamp tool to paint over the spot on the wall I wanted to remove.
    2) picked a more easily discernible point of reference for Tracking. In my case, I used a poster on the wall.
    3) As per the instructions here, https://www.video2brain.com/en/lessons/removing-an-object-with-clone-stamp, I pasted the Attach Point data from the Tracker into Clone -> Transform - > Position 
    However, that didn't work for me as the object I was painting was not the object I was tracking. The solution from the video was simply moving my cloned spot to the tracked object instead of leaving it where I wanted it. So...
    4)  I then manually adjusted the Anchor Point of the Clone back to the original spot I wanted to cover.
    I played footage and the cloned region successfully moved with the spot I was covering.
    This is what I was able to figure out. I'm not an advanced user. I only use After Effects every couple of months when I need to fix minor things in footage, so I've only learned to use what techniques I need for the job at hand. No doubt, experienced users may shake their heads at my simplistic fix. I'm sure my technique would be wholly inadequate for situations far more complex than fixing spots on a gray wall, which is why my eyeballs cross when reading suggestions that seem way more involved than one would expect for something as seemingly minor as this. It's just a spot! It should be super easy to remove, right? Well, that's what I was looking for and that's what I came up with. I hope it helps.

  • Simple Shell Script To Add To Default Path?

    I know that this question will at first appear idiotic,but here goes.
    I'm logged into a Solaris 9 shell as 'root'. I echo $PATH and see a couple of default paths. I want to add to that PATH - this can easily be done from the command line as follows:
    PATH=$PATH:/some/other/path
    export PATH
    So, naturally, I'd like to throw this into a simple script, and when I do so, and run the script called 'hello'. So, I run 'hello' as follows:
    ksh hello (I'm a kshell)
    Result: no errors. Then, I check my PATH as follows:
    echo $PATH
    And nothing changes, it's still the same PATH!
    Can anyone tell me how to do this?
    Appreciate your response.
    dedham_ma_man

    The question shows you don't really understand how shells work.
    The path is part of the environment of your current shell.
    Any command you "execute" is run in a new process. And any changes made to the environment of that process cannot effect the environment of the parent process (ie your shell).
    So by saying "ksh hello" your starting a new shell and changing the path in that shell. But when that shells exits and your back in the original shell, of course nothing has changed.
    So the answer is that what you have to do is not "run" the script. But persuade your current shell to execute in its own context.
    In a C shell that would be done by the "source" command. And in a bourne shell, its the "." command. But I'm not sure how you do it in korn shell.

  • How can i add a library path for a .dll library?

    hi
    i used a native method (sndPlaySound) in a dll file (winmm.dll).
    then i complided my source successfuly , but in runtime i recieve
    this Exception :
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no winmm.dll in java.
    library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at JNItest.<clinit>(JNItest.java:9)
    i know i must add the library path to the java.library.path but
    i don't find "java.library.path" and don't know what i must to do.
    i am in windows 98 and don't use any IDE (just jdk 1.3.1).
    thank you very much.

    Windows uses the current PATH enviroment variable to search for dlls.
    Windows searches for dlls in the Current directory , the application directory (if the current is not the same) , the PATH variable, then the system directories (Windows, Windows/system)
    It's different in every OS, but if you only care about windows...
    Also try searching on msdn.microsoft.com, they might have more information there.

  • Add filename and path to Designer form footer.

    I am somewhat of a novice at creating forms in Livecycle designer and need help adding a filename and path to the footer of a form after clicking on the "save as' button.  I have not found any answers anyplace so help would be greatly appreciated ASAP. Thank you!!

    Create a field on your masterpage. Get rid of the caption, appearance=none and set as Protected. Also set your width to expand to fit. In the layout:ready event of your field, add this JavaScript:
    this.rawValue=event.target.path
    That should do it.
    Kyle

  • Brush sometimes adds to existing path and sometimes starts new one?

    When drawing a path with the brush tool and then placing the brush back over an anchor point to continue the path, sometimes it continues the path and sometimes it deletes the path and just starts a new one. Why does it sometimes add to the existing path and sometimes start a new one?
    Thank you.

    If you have the path slected, wil edit the path, if it is not slected will create a new path. Aslo there si a distance withing 12 pixels is what I am set to. You can increase that valeu if you find you are getting too many new paths.

  • Trying to add filename and path in footer of Word doc and it only lets me "Convert to PDF"?

    I am running MS Office 03 and just installed Acrobat 9.0 Pro. When I try to insert the Filename and Path from the insert option of the footer properties, it only gives me the option to "Convert to PDF". I don't know why it's doing this, but it started after the install of Acrobat 9.0. What should I do?

      To get the path ... event.target.path;
    To get the file name .... event.target.documentFileName;

  • Add filename and path into PDF-form

    Hello,
    I create different PDF-forms for our company with LiveCycle Designer 8.2.1 .
    Now I have to integrate the name of the form-file and its path automatically into the form. My idea is to place a text-field, I will give the type "calculated" in the value-tab of the object-palette. This Text-field should be filled with the file name and the path where it's stored in the background. I find these two values in the info-tab of the form-properties dialog-box. My questions is: How do I get these values, that I can place them via script into my text field?
    Can someone give me a hint? Thanks.

      To get the path ... event.target.path;
    To get the file name .... event.target.documentFileName;

  • Add TFTP directory path for controller backups

    Hello
    We are trying to get controller backups sent to a remote TFTP server via WCS.
    We have configured the TFTP server IP in WCS via the 'Configure' > 'TFTP Server' section.
    We then schedule the TFTP via 'Administration' > 'Background Tasks' > 'Controller Configuration Backup', choosing the TFTP server we have previously configured.
    However, we are being asked to send the files to a particular sub-directory of the TFTP server rather than the root folder, does anybody know if it is possible to define the file path for these TFTP's via WCS?
    thank you in advance
    regards
    Bryn

    If you want to dump the files to the root directory of the TFTP server just put ./ in for the path.

  • Trying to add a motion path to a panel but i get errors...

    hey guys.. im trying to move a panel container from one location to another..
    basically when i start off the application the panel's horizontalCenter is set to "0"
    what i need it to do is move from that center location to left.
    the code i have is...
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"
               xmlns:imageHandler="modules.imageHandler.*">
         <fx:Script source="loginSuccessScript.as" />
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
              <s:ArrayCollection id="sourceData">
                   <fx:Object label="Content Group" stackId="contentGroup" />
                   <fx:Object label="Images" stackId="images" />
                   <fx:Object label="Videos" stackId="videos" />
                   <fx:Object label="Flash Objects" stackId="flashObjects" />
                   <fx:Object label="Story Editor" stackId="storyEditor" />
                   <fx:Object label="Tag Management" stackId="tagManagement" />
                   <fx:Object label="Image and Video Format" stackId="format" />
                   <fx:Object label="Rules And Permissions" stackId="rulesAndPermissions" />
              </s:ArrayCollection>
              <s:Parallel id="clickMove" target="navContainer">
                   <s:Animate duration="250">
                        <s:SimpleMotionPath id="motionPath" valueFrom="0" valueTo="300"/>    
                   </s:Animate>
                   <!--s:Fade id="fade" alphaFrom="0.4" alphaTo="1.0"/-->
              </s:Parallel>
         </fx:Declarations>
         <s:states>
              <s:State name="all" />
              <s:State name="videoUpload" />
              <s:State name="imageUpload" />
              <s:State name="contentGroup" />
              <s:State name="flashObjects" />
         </s:states>
         <s:HGroup horizontalCenter="0">
              <s:Panel id="navContainer" width="250" height="100%">
                   <s:List id="nav" width="250" height="100%" dataProvider="{sourceData}" click="updateStack()" />
              </s:Panel>
              <s:Panel width="100%" height="100%" visible="false">
                   <mx:ViewStack id="displayComponents" creationPolicy="all">
                        <mx:Canvas id="blank">
                        </mx:Canvas>
                        <mx:Canvas id="images">
                             <imageHandler:imageHandler />
                        </mx:Canvas>
                   </mx:ViewStack>
              </s:Panel>
         </s:HGroup>
    </s:Group>
    and in my actionscript in the updateStack function, i just call clickMove.play();
    ive also tried setting the simpleMotionPath property to "x" and "left" and neither of them work...
    and when i play the animation i get an error that says
    "error: Property null is not a property or a style on object navContainer: TypeError: Error #1006: value is not a function..
    or
    "error: Property x is not a property or a style on object navContainer: TypeError: Error #1006: value is not a function..
    or
    "error: Property left is not a property or a style on object navContainer: TypeError: Error #1006: value is not a function..

    ok never mind... so i think this i have my problem almost figured out...
    i changed my code to resemble the following...
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"
               xmlns:imageHandler="modules.imageHandler.*">
         <fx:Script source="loginSuccessScript.as" />
         <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
              <s:ArrayCollection id="sourceData">
                   <fx:Object label="Content Group" stackId="contentGroup" />
                   <fx:Object label="Images" stackId="images" />
                   <fx:Object label="Videos" stackId="videos" />
                   <fx:Object label="Flash Objects" stackId="flashObjects" />
                   <fx:Object label="Story Editor" stackId="storyEditor" />
                   <fx:Object label="Tag Management" stackId="tagManagement" />
                   <fx:Object label="Image and Video Format" stackId="format" />
                   <fx:Object label="Rules And Permissions" stackId="rulesAndPermissions" />
              </s:ArrayCollection>
              <s:Parallel id="clickMove" target="{cont}">
                   <s:Animate duration="500">
                        <s:SimpleMotionPath id="motionPath" property="left" valueFrom="0" valueTo="600"/>     
                   </s:Animate>
                   <!--s:Fade id="fade" alphaFrom="0.4" alphaTo="1.0"/-->
              </s:Parallel>
         </fx:Declarations>
         <s:states>
              <s:State name="all" />
              <s:State name="videoUpload" />
              <s:State name="imageUpload" />
              <s:State name="contentGroup" />
              <s:State name="flashObjects" />
         </s:states>
         <s:HGroup horizontalCenter="0" id="cont" height="100%" width="100%">
              <s:Panel id="navContainer" width="250" height="100%" left="300">
                   <s:List id="nav" width="250" height="100%" dataProvider="{sourceData}" click="updateStack()" />
              </s:Panel>
              <s:Panel width="30" height="100%" creationPolicy="all">
                   <mx:ViewStack id="displayComponents" creationPolicy="all">
                        <mx:Canvas id="blank">
                        </mx:Canvas>
                        <mx:Canvas id="images">
                             <imageHandler:imageHandler />
                        </mx:Canvas>
                   </mx:ViewStack>
              </s:Panel>
         </s:HGroup>
    </s:Group>
    forsome reason my hgroup will not center its self to the window... any reason why?

Maybe you are looking for