Relative file reference

OK-relatively new to the product, so bear with me. Due to
file size, I needed to link several projects together. From info I
got here, I wanted to use a relative file reference so I could copy
the .swf's to other computers. So at the end of each module, the
project is to open a new file ( ..\file\file2.htm). This method
worked fine on my computer. When I copied the necessary files to a
different computer and the first module finished, it tried to find
the file on my local drive. Can anyone help?

Try using links formatted as follows:
for files in subfolders from the calling file use
foldername/filename
for files in folders above the subfolder use
../filename

Similar Messages

  • Project File File References

    Does JDeveloper 9.0.4 use absolute or relative file references in its project (.jpr) files, or is it a mixture of the two? I've heard conflicting stories but have personally only ever seen relative references.

    Yes, I've tried this and have gotten a clean compile.  However, the .dll is associated with third party software intended to add controls to a form.  The form does not display in Designer though (extensive stack trace errors) which made me wonder
    whether there is a downside to this approach.

  • Listing Related Files in the Related Files Bar

    I've been enjoying the new ability in CS4 to see the source code and related files in the file bar, but am puzzled by an inconsistency. The related files are not always listed in the bar.
    My sites are fairly small and simple. The related files are usually limited to javascript and css.  In some sites the related files are listed in the file bar along with the source code "button", and in other sites only the "button" appears. The behavior is consistent across the site. All related files are linked in the head area, in the same way, and all the links are good--the pages work like they are supposed to. The related files are usually at the same level as the source code. I haven't been able to find a setting in the program that would turn the listing on or off, or a reference in a discussion thread. I've tried recreating the site cache, and redefining the site. Neither changed the behavior.
    Does anyone know why related files are not always listed?

    I figured it out.
    There were no significant differences in the related file references, and no conditional comments. Poking around, trying all sorts of things, I noticed that the related files could be listed from the View menu, which meant Dreamweaver knew about them. But they could not be accessed by clicking on the listing--Dreamweaver complained of an invalid path, starting at the C: drive level. At one point it locked up.
    All of the sites that could not list related files had local folders with a # sign in a high-level folder name (an obviously poor idea picked up from work!). Those folders were used in the local site definition. Once that # sign was removed, and the cache recreated, the related files showed up.
    Thanks very much for the tip on the includes. I'm just beginning to work with them, and will be careful to set them up properly.
    And thanks very much for helping me think the problem through. It was getting pretty frustrating!

  • A File Reference and its evolving life!

    Hi all,
    I've noticed something that came as a little bit of a surprise to me, but I think I have the explanation, at a hand-wavy higher level anyway.  What I have not established is if this is a 'bug' or a 'feature', and if there are any ways the following issue can be avoided at the NI function/api layer.
    Consider the file open and file close function.  You open a file, you use the reference to the file to write/read data, then at some point you close the reference and the close function spits out the file-path.  Here are a couple of tid-bits you may not be aware of (that are easy to test):
    Q1) After your application opens/creates a file and starts using the file-reference to make file writes, if an external source changes the file-name of that file... guess what will happen on your next write function call?
    A1::  The write successfully updates the newly re-named file with your new data without producing an error or a warning.  (At least this is the case if your program is running on a vxWorks cRIO target and the file-name is changed directly on the cRIO via an FTP browser.)  
    Did this surprise you? It did surprise me!  -My handwavy explanation is that the file-pointer is perhaps managed/maintained by the OS, so when the OS tells the file-system to rename that file, the pointer that LabVIEW holds remains valid and the contents of the memory at the pointer location was updated by the OS.
    Q2) Continuing from the situation setup in Q1, after writing several new chunks of data to a file now currently named something completely different than when the file reference was originally created, you use the close function to close the file-reference.  What do you expect on the file-path output from the close function??  What do you actually get??
    A2::  The close function will 'happily' return the ORIGINAL file-name, not the actual file-name it has been successfully writing to(!).   This has some potentially significant ramifications on how/what you can use that output for.  At this point there is a ton of room for pontifications and more or less 'crazy' schemes for what one could do, but I argue that the bottom line is that your application has at that point completely lost the ability to accurately and securely track your file(s).  Yes, you could list a folder and try and 'figure out' if your file-name was re-named during writing and you can in various ways make more or less good 'guesses' on which file you in reality just had open, but you can never really know for sure.
    So, what do you guys think?? Is the behavior of returning the (incorrect) original file-path when you close the handle a BUG or a FEATURE??  Would it not be possible for LabVIEW to read back the data contained in the (OS?) pointer location and as needed update the file out path data when it closes a reference?  Should we not EXPECT that this would be the behavior?
    Q3)  Again, continuning from the above situation, lets assume we are back at the state in Q1, writing data to a (re)named file.  What happens if the file is deleted by an external process? What happens to the file reference? File function calls using the reference?
    A3::  This one is less surprising.  The file reference remains 'valid' (because it is a valid reference), but depending on the file function you are calling, you will get error such as error 6 (binary write reports this), or error 4 (a TDMS write will report this error), etc.  So as long as you don't rely on file ref-num tests to establish if you are good to go with a file-write or file-action, you should be safe to recover in an appropriate way.. Just don't forget to close the file-reference, even if the file is 'gone', the reference will still remain in memory until you 'close' it (with an error)(?I might be wrong about this last part?)
    I am not sure if the above is possible on e.g. Windows, Windows would probably prevent you from re-naming a file that has an open file-handle to it, but this is definitley observable on at least vxWorks cRIO targets.  (I don't have PharLap ETS or RTLinux devices so I can't test on those targets.. if you want to test its pretty straigth forward to make a simple test app for it.)
    [begin rant-mode related to why I found this out and why this behavior BITES]
    There are situations where the above situation could cause some rather annoying issues that, for somewhat contrived reasons related to cRIO file API performance, CPU and memory resource management, are non-trivial to work around.  for example, using the NI "list folder" to listing folders take a very hefty chunk of time at 100% cpu that you cannot break up, so polling/listing folders after every file update (or even on a less regular interval) is a big challenge, and if you are really unlucky (or didn't know any better) and gave the list command in a folder with 1000's of files (as opposed to less than about 100 files), the list will lock your CPU at 100% for 10's of seconds...  Therefore, you might be tempted to maintain your own look-up table of files so that your application can upload/push/transfer and/or delete files as dictated by your application specific conditions... except that only works until some prankster or well-intention person remotes in and starts changing file-names, because then your carefully maintained list of file-names/paths' suddenly fall appart.
    [\end rant]
    QFang
    CLD LabVIEW 7.1 to 2013

    Hey guys, thanks for turning out your comments on this thread!
    -Deny Access : still able to re-name (and delete) the file via FTP browser (didn't test other file avenues).  I think this is for the same reason that NI vxWorks targets (such as cRIO-9014) do not support the concept of different users with different rights, as such, everyone have access rights to everything at the OS level.  Another issue for me would be that "Deny Access" does not work on TDMS file references, so even if it worked, it would not help me.
    --> I strongly suspect that these things are non-issues or issues that can be properly managed, on the new NI LinuxRT targets since (the ftp is disabled by default) it supports user accounts and user restrictions on files/folders.  The controller could simply create the files in a tree where 'nobody else' has write access.
    Obviously nobody should mess around with files on a (running) cRIO, but customers don't always do what they are supposed to do.   
    As far as the 'resources' or overhead to update the file-refnum with the new information, this would not be needed to be done in a polling fashion, simply, when the file-close function is called, as part of that call it updates its internal register from the pointer data, so this should be a low overhead operation I would think?  If that is a true concern, a boolean input defaulting to not updating or a separate 'advanced close' could be created?
    I've included a zip with the LV2013 project and test VI's (one for tdms one for binary) that I've used. nothing fancy, but in the interest of full disclosure.  The snippet is the 'binary file' test vi, in case you just want a quick peak:
    Steve Bird's findings of (yet) another behavior on Pharlap systems is also very interesting, I think!!
    [EDIT]  JUST TO CLARIFY, on vxWorks, the re-named file keeps being successfully written to, unlike the PharLaps' empty file that Steve Bird found.
    QFang
    CLD LabVIEW 7.1 to 2013
    Attachments:
    cRIO Tests.7z ‏30 KB

  • An unknown error occurred while discovering dynamically-related files

    This is my first attempt building a wordpress site using Dreamweaver and it's been nothing but unsuccessful.
    I have downloaded and reinstalled Wordpress and Mamp at least 7 times, and even followed Lynda.com (Dreamweaver and Wordpress: Core Concepts) tutorials to ensure my testing server was executed properly, but I still can't resolve "an unknown error occurred while discovering dynamically-related files. Retry". I've rebooted my computer a handful of times and made sure I ran programs in a systematic order, but nothing. I'm running CS5 on a Mac.
    As you can see from the first image, I have the error highlighted in yellow. Below I've added pictures from all the essential settings site setup in hopes I made a mistake and someone will catch it. PLEASE help me resolve this issue. I am so frustrated that I can't figure this silly problem out...

    I looked through both articles again, and in both he notes that if you're using MAMP default ports, it's necessary to reference :8888. I am using the defaults and have included :8888 for that reason.
    "Note: If you are using MAMP on Mac OS X, and decided to use the MAMP default ports, change the value of Web URL to http://localhost:8888/check_php/. Adding :8888 is necessary only if you're not using the Apache and MySQL defaults."
    In any case, I've tried changing my ports to 80 and 3306, not including the :8888 in the URL, and I didn't get different results. For that reason I just returned to the MAMP default settings...
    Thanks again for helping me brainstorm!

  • Editing CSS, related files requires save (cs4)

    You know what really Grinds My Gears? (family guy reference,
    lol)
    When I edit the CSS in the right hand panel, sometimes it
    makes the CSS file in the Related Files toolbar not saved with a *
    next to the filename. Sometimes it goes ahead and just saves the
    changes right away. Like most, I'm constantly switching back/forth
    between browsers so CSS has to be saved to see changes.
    Kindofa pain to have to click the css file in the related
    toolbar and Ctrl+S to save before each preview...I haven't been
    able to find out why it "dirties" the CSS file sometimes and other
    times it directly saves to the CSS file.
    Does anyone have any ideas? How to get it to always just save
    to the file?
    thanks

    avibodha,
    Ah! Thanks for the additional details. I see what is causing
    this behavior.
    When a document is opened, DW determines what the Related
    Files are, so
    it can show the list of buttons for each one. But, for the
    sake of
    performance, we do not actually load the files until you
    click on a
    button to view a file. Note that the file may already be
    loaded as a
    top-level document or as a Related File of some other
    document.
    Since you have the "Open CSS files when modified" setting
    turned off,
    then the CSS gets automatically saved to disk *if* the file
    has not yet
    been loaded. Once the file has been loaded, then DW will not
    automatically save it (to avoid writing something on disk
    that you don't
    want written).
    So, you'll need to disable the Related Files feature to have
    DW always
    automatically save the CSS to disk.
    HTH,
    Randy
    > * related files always on, open document
    > * edit CSS in right panel (separate css file, not inline
    styles), always saves
    > immediately
    > * Either click .css file and edit, or in right panel,
    click Go To Code and
    > edit CSS -> now all edits in right panel will happen
    to file and NOT be saved.
    > You must go to the .css file and Save it.
    >
    > So once you edit the CSS file for for any reason, from
    then on it edits the
    > css file when you use the right panel and you must go
    back to the file and
    > save, or do Save All.
    >
    > There is a setting in Preferences, CSS Styles to
    automatically open the CSS
    > file when editing, but I have that off (default state).
    >
    > Curious...wonder if there's a way to "reset" the right
    panel CSS back to it's
    > original state of directly modifying the css file? If I
    close and re-open the
    > document, that does it, but that's not a solution...
    >
    > Not a big deal because I can turn off Related Files...

  • Lost option to upload related files when using testing server.

    I used to get a dialogue box when I was previewing files on my local machine using my localhost testing server setup. It was kind of annoying having to click yes every time. Last week I accidentally clicked the don't show this anymore box and now when I preview a site on my localhost related files and updated files are not uploaded. I have to manually upload the css, php, and any other related files to the testing server's folder.
    I tried deleting preferences, re-installing Dreamweaver CS4, and everything else I can think of but I can't get this option back. Is there some way, other than using the same folder for the testing server and the site to avoid this problem?
    Thanks.

    Edit > Preferences > Site > Dependant Files > Check the box for "Prompt on Put or Check-in"
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics |  Print | Media Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • In firefox 4 RC, some addons installed suddenly disappear, but checking the profile, some of the missing addons related files are still here, how to make the addons back?

    I use firefox 4 form beta 9 to RC (zh) now and there are also firefox 3.6 installed in computer. One day when I open Fx 4 RC, some (actually a lot but not all) of the adoons just disappear. When I check on about:addons page, some addons installed do not appear in the list.
    The addons '''REMAINED''' including:
    * addons I already used in Fx 3.6 (like webmail notifie , xmarks)
    * ''addons only can use in Fx 4'' (like Open Web Apps for Firefox).
    The addons '''DISAPPEARED''' including:
    * addons I already used in Fx 3.6 (like yoono)
    * '' addons installed when using Fx 4'' (like updatescanner, Thumbnail Zoom).
    But when I check the profile(by Help > Troubleshooting Information>Open Containing Folder) , some (not sure is it all) of the missing addons related files are still here [lucky], so any one know how to make the missing addons back?
    Some more details:
    * This happened when i use RC for already a few days and keep on even i restart Fx and windows.
    * The bookmarks, history, search engine and even themes and icon setting are still here. [ I only sync bookmarks but not history for both xmarks and firefox sync.]
    * This addons are really '''disappeared''' but not disable only!
    * This number of addons missed, as i remember, at least 30, should be more than that number bacause some of them are installed but in disable mode.
    * I try to install back one of the addons - Stylish, the installed code are still here.
    * It is nearly an impossible mission to install every missing addons again, as it really kill my time.

    Delete the files extensions.* (extensions.rdf, extensions.cache, extensions.ini, extensions.sqlite) and compatibility.ini in the Firefox [[Profiles|profile folder]] to reset the extensions registry. New files will be created when required.
    See "Corrupt extension files": http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left side of the Search Bar to do a compatibility check.

  • DW CS5 Missing Related Files Problem

    Hello
    Hoping somebody may be able to help me with a missing related files problem in CS5. I've tried Adobe phone support but they couldn't solve the problem.
    *Some* of my sites (but not all) are not showing all the files related to that page. My pages are typically in .asp vb server model and contain .asp virtual includes (header, nav etc) plus .js and .css linked files
    However DW is only showing the .asp includes as related files and not css or js ones. In design view the CSS is displaying correctly, and all styles appear in the CSS inspector but not showing as a related file in the bar. In CS4 it works fine.
    I've tried deleting the site and recreating it, copying the files to a new folder and setting up a fresh site, creating a new folder and downloading all files from the remote server but no joy. I've also tried refreshing related files. if I click on the filter in the bar it only shows the asp includes and nothing else.
    Any help would be gratefully appreciated, this is a great feature when it works
    Cheers
    MB

    UPDATE:
    Managed to solve this problem, this is a new issue to DW CS5, previous versions do not seem to exhibit this problem
    It occurs when you use site root rather than document relative paths for js/css etc files AND don't have the remote site url (web url) specified in the site setup | local info dialog, or do not have it fully qualified with http://
    ie. ../js/file.js works fine without a remote web url but /js/file.js does not show the related file in the bar unless a remote url is defined.
    Hope that helps anyone else that encounters the same issue!
    MB

  • How can I create dynamic file references in Power Query?

    Hi all,
    I'm new at using PowerQuery, and so far I like it. There's one thing I am struggling with though... Once I have set up my PoweQuery connections, I don't find an easy way to change the file to which the query is connecting. I'm using it for a monthyl recurring
    process, and every month the source data to query on woudl be different. The same in format/structure, but just a different dataset.
    Is there a way to make the source setup more dynamic? Can I for example in a parameters sheet enter the name and path of the new source file and update the queries?
    Currently the Advanced editor shows me following file reference:
    let
        Source = Excel.Workbook(File.Contents("Z:\Templates\EMEA\Source Data Tables\EMEA_EW_Source_Data_for_Power_Queries v1.xlsm")),
    Thanks in advance for suggestions

    Yes, this is something that you can do with Power Query. Here's how you can do it:
    Create a table in Excel containing your parameter value. Let's say that it has one column, called ParameterValue, and one row.
    Create a new Power Query query that gets the data from this table. Call the query something like ParameterQuery.
    In your original query you will now be able to reference values from your parameter query by saying something like this:
    Source = Excel.Workbook(File.Contents(ParameterQuery[ParameterValue]{0})),
    HTH,
    Chris
    Check out my MS BI blog I also do
    SSAS, PowerPivot, MDX and DAX consultancy
    and run public SQL Server and BI training courses in the UK

  • How do I get all the dynamically related files to show when working with wordpress files in DW?

    I have set up MAMP on my Mac and have set up a user in phpmyadmin. I have downloaded wordpress and put it in the mamp folder. I have defined the site at MAMP/htdocs in Applications. I have started to look at the files through the index.php files near the root folder. I pressed 'discover' underneath the document tab to discover dynamically related files. However, this only results in five extra files being shown in the document tab as can be seen in the screen shot provided. Apparently I should have loads to play with. What am I doing wrong? Any help would be greatly appreciated.
    Josh

    Very happy to help.Valued family photos are a treasure.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • How do I find dynamically related files where Wordpress is not involved

    There are lots of posts about "Dynamically-related files could not be resolved because the site definition is not correct for this server" but they all seem to relate to Wordpress or other blogging software.
    I have recently had to upgrade from DW8 to DW CS5.5 running on Windows 7 64bit. and get this error on lots of pages but there is no help about fixing it.  The local testing server is localhost set up to run PHP with iis7 on virtual folders.
    What do I have to do to get the dynamically related files to be found?
    Thanks

    I think I've  cracked it - nothing to do with databases, that was a red
    herring.
    I had a hundred or so sites on an XP machine running Dreamweaver 8 and used
    the export facility to save their settings when I moved to a Windows 7
    system.  Win7's directory structure is different but the testing server
    location stored in the export file doesn't take account of this and part of
    the path may now include directories that are viewed as shortcuts.  Once the
    locations are reset in Win7 terms, the errors go away.
    Regards
    Steve
    Steve and Diana Kimpton
    The Word Pool
    http://www.wordpooldesign.co.uk/
    http://www.wordpool.co.uk/
    http://www.ukchildrensbooks.co.uk/
    http://www.contactanauthor.co.uk <http://www.contactanauthor.co.uk/

  • What is the best way to keep my personal files stored in iCloud separate from my work-related files?

    What is the best way to keep my personal files stored in iCloud separate from my work-related files? It seems that I'm not allowed to link my iPad mini and my work iMac using two different accounts, so I'm wondering how to make my single personal account work for both, while keeping personal vs work files reasonably separated.
    Thanks for any suggestions.

    Is it possible for you to upgrade your account to iCloud Drive? That would mean, all Macs upgraded to Yosemite, and all mobile devices to iOS8?
    See:  iCloud Drive FAQ and iCloud: About using iWork for iOS and iCloud
    In iCloud Drive you could create two separate custom folders, one for work documents and one for private documents and organize your documents there.  Don't use the app specific folders (Keynote, Pages, Numbers, ...) , because you can only create one level of folders inside these folders.

  • How do I make the column portion of a relative cell reference change based on a separate cell

    I have a relative cell reference K8  in a formula (k8/c8) and I want to obtain the column portion (K) of this relative cell reference from another cell at the top of the column this formula is in. This will make it very easy for me to change many formulas
    all at once simply by changing the contents of the header cell to reflect the column that I want to reference in the original formula. For instance the other cell may contain the letter M which would then change all of the formulas to m8/c8.
    I know I can change on cell and copy the formula to the other cells but then I have to do a copy and format paste to get all of my unique formatting back. The original formula frequently change with respect to the columns being measured.
    Thank you...even if I can't get there from here.

    Let's say that cell A1 contains the letter K, and that your formula is in a cell in row 8. You can change the formula to
    =INDIRECT($A$1 & ROW()) / INDIRECT("C" & ROW())
    This formula can be filled down (or up).
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • When trying to upload a PDF to an interactive site I get the announcement:"The attached PDF file references a non-embedded font Tahoma. Please remove file, embed the font and reattach." How do I embed this, or in fact any other font ?

    When trying to upload a PDF to an interactive site I get the announcement: "The attached PDF file references a non-embedded font Tahoma. Please remove file, embed the font and reattach."
    I could not get rid of the Tahoma font in the WORD file.
    How do I embed this, or in fact any other font ?

    Thank you very much !
    Indeed, I was unaware of the enormous number of options that can be selected when converting a WORD file to PDF.
    I went thru the settings and found the right one for embedding the fonts.
    Thanks again !
    Oren

Maybe you are looking for

  • Device type to be used for Zebra 220XiIII Printer

    Hello All, We are printing labels from SAP to the printer Zebra 220XiIII Printer using Adobe Print forms technology. When configuring the printer, we used the device type as PDF1. The print was fine in terms of data display and positioning of the tex

  • How to retreive images and xml stored in temporary internet files

    hi all,               I am creating an air application that has to work in offline too.so i have decided to retrieve datas it from temporary internet files(is it a rightway or anyother way to do that if so pls suggest).   I have an issues of retreivi

  • Implementing abap OO in UWL

    I'm trying to realize a self-defined workflow using wd4a as the user dialog. But I wanna compose ABAP OO into workflow now, for using ABAP OO can help to clarify the workflow logic. So how to implement abap OO in UWL? Before I defined a task and assi

  • Toolbars for PDF in Internet explorer

    I somehow turned off my Acrobat toolbar (menu)in Internet Explorer. I cannot figure out how to get it turned on again (and actually have looked at the preferences/internet. Any advice? Thanks.

  • Corrupted database for download in the link

    I have Downloaded Oracle 8i Database from the Link http://download-east.oracle.com/otn/linux/oracle8i/linux81701.tar I found out that the following file is corrupted in the server as i tried downloaded twice.