File path problem
I have looked an read through almost all the file path problem post possible and I am still having issues maybe one of you guys can help me, here are my files
I am doing this as an example so that I can apply it to all of my file problems....
Harold Timmis
[email protected]
Orlando,Fl
*Kudos always welcome
Attachments:
pathexample.zip 122 KB
First of all, to troubleshoot the problem it would help to put some filepath indicators at each point so that you can see what is going on. Also, in your exe having an error dialog "Simple Error Handler.vi" to let you know what LabVIEW didn't like in the exe.
Now, when you run a top level ("Main.vi") and use the "Current VI's Path " in the development mode it returns <Filepath>\"Current path"\Main.vi. So stripping once will get you to <Filepath>\"Current path" . Now if you make it into an exe the "Current VI's Path" returns <Filepath>\"Current path"\"Name.exe"\Main.vi so you are "nested" one deeper.
I use the following construct to determine whether the vi is being used as in the development environment or as an exe, the parse the path accordingly, although in this instance it is used to supply different directory names to a little more complex file system.
Putnam
Certified LabVIEW Developer
Senior Test Engineer
Currently using LV 6.1-LabVIEW 2012, RT8.5
LabVIEW Champion
Similar Messages
-
Hi,
I recently upgraded to a new computer and I have Develope toolbox and some other extensions from Web Assist and curiously when I click on HELP button in any of them I receive in error message like the one below.....virtually all of the error messages are the same. I known that it is a path problem, but when I follow the path indicated in the error message I find the file exactly where it should be on the computer.....hmmmm...any ideas out there?
Firefox can't find the file at /MacHD/Users/jimelander/Library/Application Support/Adobe/Dreamweaver 9/Configuration/Shared/DeveloperToolbox/classes/temp.htmI think un install ADDT then reinstall it..
Hope this helps
Mohnkhan
http://www.mohitech.com -
Hi techies,
I am having a jsp ,which is having the following fields,
url
driver
userName
Password
Location of the file
Here is my jsp code
<table rows=6 cols=2>
<tr>
<td>Enter url</td>
<td> <input type="text" name="url" value ="<%= url%>"></input></td>
</tr>
<tr>
<td>Enter DriverName </td>
<td><input type="text" name="driver" value="<%= driver%>"></td>
</tr>
<tr>
<td>Enter UserName </td>
<td><input type="text" name="userName"></td>
</tr>
<tr>
<td>Enter Password </td>
<td><input type="password" name="passWord"></td>
</tr>
<tr>
<td>choose the backupXml file</td>
<td><input type ="file" name ="xmlFileName"></td>
<input type="hidden" name ="xmlFile" >
</tr>
<input type="hidden" name ="resubmit" >
</table>
<br>
<input type="button" value="submit" onClick ="doSubmit()" >
For the first time I am sending request to the servlet and after checking the conditions we will get one confirmation box.
If we click ok (i.e true) ,we have to again send the same data to the servlet.
I am keeping all the variables in a session in servlet and retrieving in to jsp, but the problem is ,when again sending request to servlet , I am missing file name,but I am getting file path(i.e c:/sun/appserver/bin/) only.
I need to get c://sun/appserver/bin How can i get entire path??
Here is my servlet code
File f = new File(xmlFileName);
String xmlFilePath = f.getAbsolutePath();
System.out.println("xmlFilePath"+xmlFilePath);
session.setAttribute("xmlFile",xmlFilePath);Here is my java script code
function init() {
<%
if(message !=null && messageType != null && messageType.equals("ALERT")){ %>
var mss = confirm("<%=message%>");
// alert(mss);
if(mss == true)
var user = '<%=session.getAttribute("user")!=null?session.getAttribute("user"):"0"%>';
var pass = '<%=session.getAttribute("pass")!=null?session.getAttribute("pass"):"0"%>';
var xmlF = '<%=session.getAttribute("xmlFile")!=null?session.getAttribute("xmlFile"):"0"%>';
alert("inside if"+xmlF);
document.forms[0].resubmit.value = "true"
document.forms[0].userName.value =user;
alert(document.forms[0].userName.value);
document.forms[0].passWord.value=pass;
alert(document.forms[0].passWord.value);
document.forms[0].xmlFile.value=xmlF;
alert(document.forms[0].xmlFile.value);
doSubmit();
else
alert("else");
<% } %>
function doSubmit() {
alert(document.forms[0].userName.value);
alert(document.forms[0].passWord.value);
alert(document.forms[0].xmlFileName.value);
document.forms[0].submit();
}Thanks for u r reply Mr.Prasad.
Sorry for the delay for reply.
My scenario is in 2 phases
Phase 1. I am taking input from the front end using jsp and writing the contents in to a file and then downloading that file on to my desktop.(Now let us say this one as file downloading)
Phase 2. Now I had designed a page,which locates the downloaded file by using the following tag.
<td><input type ="file" name ="xmlFileName"></td>
In the downloaded xml file I am having applicationid. I am checking whether the application id already xists in the database (or)not.
If already exists in the database , the end user will get one confirmation msg,saying application already exists in the database.
If the user clicks ok again the request has to go to the servlet.
Now the actual problems are
1. When I locate the file on the desktop let us say c:\desktop\krish and click on submit button, it is locating to the file that is present in the server(this is the case for the first time means before checking the application id in the database).
2. when the end user clicks "ok" on the confirmation box , I am not getting the file name,that has to be submitted to the servlet.
Can u plz help me how to resolve this issue.
regards,
Krish -
Hi,
I recently upgraded to a new computer and I have Develope
toolbox and some other extensions from Web Assist and curiously
when I click on HELP button in any of them I receive in error
message like the one below.....virtually all of the error messages
are the same. I known that it is a path problem, but when I follow
the path indicated in the error message I find the file exactly
where it should be on the computer.....hmmmm...any ideas out there?
Firefox can't find the file at
/MacHD/Users/jimelander/Library/Application
Support/Adobe/Dreamweaver
9/Configuration/Shared/DeveloperToolbox/classes/temp.htmOleLena wrote:
> Firefox can't find the file at
/MacHD/Users/jimelander/Library/Application
> Support/Adobe/Dreamweaver
> 9/Configuration/Shared/DeveloperToolbox/classes/temp.htm
I'd check to ensure that you have the latest versions of the
WebAssist extensions as this may have been fixed. I seem to recall
seeing this issue when the primary browser (from Dreamweaver's
perspective, the one that F12 or preview in browser opens up) is
not open when the help is accessed. Try having your browser open
and then access the help.
Danilo Celic
|
http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert -
Logical file path problem in lsmw
Hi folks,
I created logical file path in FILE tcode. its created and assigned physical file path to logical file path.
then i am assigning that logical file path into lsmw step (specify file step).
under specify file i am assigning into import data and convert data.
once read data step completed read data must be save under this physical file but data is not saving under this path.
can any one help me out this..
1.can any one help how to create physical file in file tcode
2.how to assigne that physical file to lsmw step specify fileHi Srikanth,
There is no need to create the logical file path using the FILE transaction.
Under Specify file step, you need to give your local file path in LEGACY DATA Section.
Please check the below link in using the LSMW step by step.
http://wiki.sdn.sap.com/wiki/display/ABAP/LSMWStepsin+Detail
Hope this helps.
Regards,
Satish Kanteti -
Dynamic file path problem....
Hello & thanks for your attention
I am trying to modify the action script(2) of a XML photo slideshow
I want to make it pull the photo array from a dynamic XML file
Yet nothing I try seems to be working - I was hoping someone could look at these snippets and tell me if I'm doing something incorrectly
Objective:
To make the swf file - pull its photo array - from a dynamic XML file path
Scenario:
http://www.reallivingtours.com/tours/viewTour.php?id=2092
When that URL is called by a browser
An XML file called 2092.xml is created in a /tmp/ directory
viewTour.php passes the ‘dynamic’ file path to the swf via the params
<param name="movie" value="slideshow.swf?file=tmp/<?php echo $tourID; ?>.xml">
<param name="flashvars" value="&file=tmp/<?php echo $tourID; ?>.xml">
The original AS2:
var xml:XML = new XML();
xml.ignoreWhite = true;
_root.xmlPath == undefined ? xml.load("settings.xml") : xml.load(_root.xmlPath);
The modified AS2 - I've done:
var filePath:String = new String();
filePath =_root.file;
var xml:XML = new XML();
xml.ignoreWhite = true;
_root.xmlPath == undefined ? xml.load(new URLRequest(filePath)) : xml.load(_root.xmlPath);
Can you see anything I'm doing incorrectly?
Thank you very much for your time and attention
BennThanks to webqa - I've gotten a little closer to resolving this
my debugging tells me that i have an undefined error
I'm thinking - xml.load(filePath)
is not recognizing the string as a file path to the XML
Does anyone have any suggestions? thank you
var filePath:String = new String();
filePath =_root.file;
var xml:XML = new XML();
xml.ignoreWhite = true;
_root.xmlPath == undefined ? xml.load(filePath) : xml.load(_root.xmlPath); -
File path problem in background job spool
Hello ,
i have probelm in file path of the background job in spool.
i have selection screen
Radiobutton : p_local
parameter: path1.
Radibutton: p_applicatioserver
parameter: path2.
if i keep program in background job, it will alwas take second option.
Now user selected first option and executed job in abckground. File stored in the spplication server with corect file path name. (path2)
But when i go to sm37 entered job name and checked the spool, it gives me the file path name path1. but i need the file path1 in the background spool. my question whether i need to change the file path name in program or whether i have to change the setting
Regards,
zubFirst of all, local is not an option in background job; you can only save to the apps server, and your program should take that into consideration by checking for sy-batch = 'X', for example. You should be checking in your at selection-screen to be sure the user has not chosen local path and file and background job.
-
File path problems between mac and PC
hi
I'm having some issues with file paths, done a lot of searching online, here and on creative cow and no answers to be found (same question asked a few times though).
I'm working on projects on a MAC and then collecting files (project only) to a watch folder on a PC for rendering.
Most of the really big files (.R3D) are located locally on the PC but a few files are on a server.
I can work on them fine on my Mac but when the project comes across to the PC it can find the files located on one of its drives (the same drive as the project source folder) but loses the filepath to the server and to the other internal drive as well.
I have to open the project on the PC and repoint to the missing footage and then save which is a real pain in the #@$% and kind of defeats the purpose of the distributed rendering.
how can I set absolute paths for the PCs from my MAC ????
cheers../danielHey, sorry Mylenium, but this statement is not true. I was almost convinced to give up after reading this, but I managed to make a working conversion tool shortly after.
This is the method in After Effects, I am pretty sure that it can work in the rest of the adobe suite as well.
All you need to do to get the paths to update to windows format is to:
1. Select "Save as xml" and save an .aepx.
2. Open the .aepx in text edit.
3. Perform a find for "/Volumes" and replace with "//<MountPointOnThePC>" (for example I have the drive as a network drive on the pc so I swap the <MountPointOnThePC> to the name of my mac as that is the path on the pc machine)
4. Perform another find for "MacPOSIX" and replace with "Win"
5. Save your file and you will be able to open in on a pc with all the files online.
Disclaimer, I built this to work on my set up using a mac server and a pc render farm for after effects. Please back up your projects before opening them and editing them.
Hope this helps anyone else trying to do the same. -
Deploying war file on Tomcat: file path problem
Hello all,
i am using my eclipse ide for automatically deploy my webapplication to Tomcat. For Database connectivity i configured hibernate. To configure hibernate i am using the following code:
package de.wfm.hibernate.hibernateUtil;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
public class ESDBFactory {
private static SessionFactory sf;
private static Session session = null;
private static String pathToCfgFile = "de\\"
+ "wfm\\hibernate\\hibernateUtil\\esdb.cfg.xml";
public static synchronized Session getSession() throws HibernateException {
if (session==null) {
if (sf==null) {
sf = new Configuration()
.configure(pathToCfgFile).
buildSessionFactory();
session = sf.openSession();
return session;
}When i use this in the ide all is fine. But when i export my application to a war file and deploy it on Tomcat i got the exception:
2006-07-28 10:06:10 StandardWrapperValve[Urlaubsplanung Servlet]: Servlet.service() for servlet Urlaubsplanung Servlet threw exception
javax.faces.FacesException: #{User.doLogin}: javax.faces.el.EvaluationException: org.hibernate.HibernateException: de\wfm\hibernate\hibernateUtil\esdb.cfg.xml not foundHow to avoid this? What do i have to do to set the file path correctly?
Regards,
akhmm.. ic
The .war file when drop in the webapps dir and u restart tomcat, it auto create a dir with your .war filename and the content of .war file is copied to there.
Am i rite to say so?
And wat about the web.xml?
If i need to add users and password how can I accomplished it in tomcat web.xml?
Last but not least, thanks for taking the time to reply. :D -
File path problem and getCodeBase Usage
I have a java application and read data from file.
I create file by File file=new File("F:\MyProgram\.txt');
if I want to give my file to relative path name, HOw can i give. I can move my program to jar file or exe and move to anywhere.
How can i give file to move anywhere by only give folder name and don't need to give full path name?
How can I use getCodeBase to give file path name?You need to use resources and the URL class, here's an example:URL resourceLocation = getClass().getResource("/configuration.txt");That will give the location of the configuration file regardless of how you've packaged the software. If you need to read the file from a static context use "ClassName.class" in place of "getClass()".
-
Xml based file path problem on Windows
Hi
I'm having a problem with a Flash based slideshow based on
the tutorial one from here
http://www.adobe.com/support/flash/applications/jpeg_slideshow_xml/index.html
I've added a timed nextSlide function but basically left the
actionscript the same apart from that.
The problem is that the file works fine in a html file on any
Mac browser I care to test in, Firfox,Netscape,Safari and even
IE5.2 but when I try it in Windows IE6 or firefox, no picture s or
titles show. I've tried this under parallels from a "shared"
folder, and also on a real pc from the website.
I also tried the original tutorial file and it doesn't seem
to work either.
Can anyone cast any light on this problem?
I thought it was the different way paths are defined on Mac
& Windows ie / vs \ so I put everything at the same level and
redefined the paths in the xml to be at the same level , but still
no go on Windows.
Help! please!Hello!
Does anyone have any idea what the problem is with this?
The example is from the support section of this site and it
doesn't work. Surely an Adobe support person has a comment. -
Executing .sql file, path problem,help!
Hi, could anyone tell me that how to change the default .sql file running path in Oracle 8?
I am running Oracle 8 resides on IBM AIX server. i found that under SQL prompt, the default .sql file running path is my home directory,e.g./home/user01,so i have to save all .sql files under that directory....could anyone tell me how to modify the default path to other directories.e.g,/home/user01/sql, so i could collect all .sql files under a specified directory?
Many thanksSet the environment variable SQLPATH
For more information see
SQLPATH on 9iRel2 on Win XP -
Need help fixing a file path problem
Hi everyone,
I'm using Dreamweaver 8 and for some reason my url/path name
visually changed in my new web pages. Anything that has a path
(i.e. image, a link etc) now has a prefix in this particular page.
Ex. older files,
images/flower.gif
changed to
../../images/flower.gif.
This is really annoying because when I try to copy fields
from new web page to put in the older files, it includes the ../../
which doesn’t exist in the older files. Even when I create a
new page the prefix is present.
How do I get it back to the old path?
Thanks!
AFIBYou local site is improperly defined. Where does your site
definition place
the root of the site?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"afib" <[email protected]> wrote in message
news:eeivrd$97r$[email protected]..
> Hi everyone,
>
> I'm using Dreamweaver 8 and for some reason my url/path
name visually
> changed
> in my new web pages. Anything that has a path (i.e.
image, a link etc)
> now has
> a prefix in this particular page. Ex. older files,
> images/flower.gif
> changed to
> ../../images/flower.gif.
>
> This is really annoying because when I try to copy
fields from new web
> page
> to put in the older files, it includes the ../../ which
doesn?t exist in
> the
> older files. Even when I create a new page the prefix is
present.
>
> How do I get it back to the old path?
>
> Thanks!
> AFIB
>
> -
File paths problems on Mac OS X - Please Help
public static void initLangList() throws IOException {
final InputStreamReader isr = DataAccess.getRessourceStream("/lang.txt");
final Vector stringList = new Vector();
String lang;
while ( (lang = DataAccess.readString(isr)) != null) {
//at least one language assumed
stringList.addElement(lang);
langList = new String[stringList.size()];
stringList.copyInto(langList);
I put the file "lang.txt" next to the compiled folder like i do in windows, but it is not working.
I am new to make tho.. so please help me... =)
Thanks § GuYs §public static InputStreamReader getRessourceStream(final String resPath)
throws IOException {
final InputStream is = (new Object()).getClass().getResourceAsStream(
resPath);
if (is != null) {
is.skip(BOM_LENGTH);// skip 3 bytes UTF-8 Byte Order Mark
return new InputStreamReader(is, DICT_CHARSET);
throw new IOException("Error finding a resource " + resPath);
} -
Applescript CS5 file path problem
I have a script that opens one file from a mounted server volume, and one file from my local drive. It then combines the two files and saves a PSD back to the server volume. This script runs perfectly in CS3 & CS4. When I updated the script to run in CS5, everything works except opening the file from the server volume. Instead of opening the file, Photoshop opens the "Browse" window and waits for me to select the file and click open. Here is a sample:
set fileA to "LocalDrive:Folder:thisFileA.jpg" -- JPG stored on local drive
set fileA to "PostVolume:JOBS:ThisJob:ThisFileB.tif" -- TIFF stored on server volume
tell application "Adobe Photoshop CS5"
activate
open alias fileA -- JPG stored on local drive
open alias fileB -- TIFF stored on server volume
end tell
My workaround is to tell the Finder to open the file stored on the server volume. This works because the default app on my machine for TIFF's is Photoshop. I intentionally have Preview set as the default open app for JPG's. If I have to open a JPG from the server volume, telling Finder to open it will result in the file opening in Preview. Not good! Has anyone expierenced the same "open" issue with files stored locally vs remotely? Thanks in advance!Nice catch! Unfortunately, the code I posted was only an example, and the typo was just that, a typo. Here it is with the correction in all its glory (and a couple more notes)...
set fileA to "LocalDrive:Folder:thisFileA.jpg" -- JPG stored on local drive
set fileB to "PostVolume:JOBS:ThisJob:ThisFileB.tif" -- TIFF stored on server volume
tell application "Adobe Photoshop CS5"
activate
-- JPG stored on local drive
-- this file opens correctly, with no "browse" dialog
open alias fileA
-- TIFF stored on server volume
-- when PS CS5 trys to open this file, I get a "browse" dialog. If I compile for CS3 or CS4, the file opens as it should.
open alias fileB
end tell
The server volume is mounted via AFP. (It's a xserve running server 10.4.x) Thanks again for looking into it!
Maybe you are looking for
-
Brand new iPod touch 4th gen will not sit on dock of Sony Dream Machine
model ICF -C1iPMK2 I even wasted money on the three pack of inserts to ensure my touch was resting properly I have no idea why it won't rest down on the dock - it is like it's two different sizes of 30 pin connectors? is anyone else having this probl
-
Connecting Nokia N8 with Sennheiser VMX100
Hello! I am trying to connect my Nokia N8 with my Sennheiser VMX100 Bluetooth headset - without any luck. Pairing works fine, although I am not asked for the 0000-PIN. Headset and N8 are paired for approx. 5 seconds, then they are disconnected. They
-
Hello All, I'm trying to use lifetime documents following this link http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/5b6635f5e0ef428fb513336881679b/frameset.htm So I have done thoose steps: activate lifetime property in my folder
-
Does apple sell the iphone 5 full price that way i can connect to a gsm network
does apple sell the iphone 5 full price that way i can connect to a gsm network
-
HT204053 changing your apple id in icloud
I changed my apple id and now I can't change my iCloud id, and can't access iCloud because my apple id is changed. How do I chang my id in iCloud?