Get status of external file
Hey all,
In my current project I need to create a listen folder that will wait for .zip file to show up in the folder then I need to unzip them and then work with the files that were unzipped.
The issue that I am running into is that I can't figure out when the zip file has finished copying to the listen folder. My first thought was to just check the file size until it stopped changing but I keep getting the full size of the file returned to me even while it is still copying.
So does anyone know how I can figure out when the file has finished copying?
Thanks in advance for any help on this,
Jeremy
If you look at buddyAPI's file copy with progress command then you might realize that in order to get the progress on copying a file (an asynchronous process) you have to have access to that process/thread. Based off what you're describing, the process of a file that's copying into this folder of yours is occurring outside of your projector's control, so you are not likely going to be able to monitor it's progress.
On top of all that I mentioned above, your description of other copying files to a folder sounds suspiciously like one of two things:
1. Users on the same network copying files to a central file server or a computer acting as a file server.
2. A web-based shockwave project.
Indicating which of the two it is will definitely change the possible solution.
Lastly, the simplest method I can come up with to monitor the file copy process you might have to develop a client application that the users will have to use in order to copy the files to your folder. That way the client app could write to a file in the same folder after the copying is done to indicate that it's done and your app can monitor the folder and that file for file copy status.
Similar Messages
-
Sending and getting data from external file.
I'm running it in actionscript 1 and 2 since 3 wouldn't work when getting data from external media. I'm trying to find out how to post data to a PHP file and getting from that file I'm trying to make the flash for something that works like a game but differently. Since I just found out how to make the HTML stuff show up but a lot of times, some of my text will not appear so I don't know what's going on.
Does anyone know how to send and get data both at the same time from a sample file?
The sample file is example.php
It has to sent information like ID and NAME
and it has to get information like Description and userIDNed Murphy wrote:
The tutorial I pointed you to does provide the visuals you requested, both the AS code and sample PHP code, so I can't see where your learning by visuals aspect holds up.... your approach sounds more like you want someone to hand you a tailored solution that you won't need to learn from. Visuals require reading and doing. If that fails to get absorbed or you couldn't understand/revise it, what could anyone else prepare for you that would work better?
I did the tutorial and everything but every time I press the button or even load it, it keeps on saying undefined. I like the have a sample FLA file so I can figure things out. I did everything from the site but it won't work out for me.
I did step 5 too because it was almost all that I was looking for but it won't even work. keeps on saying undefined. I would show you but webcam max won't work and I can't show you an example.
EDIT:
You know it's frustrating when I don't know how the heck I'm supposed to do this stuff. I read the whole dang thing and I still can't get this dang thing working.
I did everything. EVERYTHING. I just don't get this crap. -
UTF-8 characters getting rejected during external file load
Hi All,
I have a column called AssetName declared as NVARCHAR2(100) declared in an external table which maps to a file called Example.dat
When the AssetName is coming in with some characters like the one present in the name shown below, the data is getting rejected. Can someone please help me analyze this?
Data getting rejected:
Competitors PortuguêsDB Info
Version - 11gR1
NLS_LANGUAGE AMERICAN
NLS_TERRITORY AMERICA
NLS_CURRENCY $
NLS_ISO_CURRENCY AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET AL32UTF8
NLS_CALENDAR GREGORIAN
NLS_DATE_FORMAT DD-MON-RR
NLS_DATE_LANGUAGE AMERICAN
NLS_SORT BINARY
NLS_TIME_FORMAT HH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
NLS_DUAL_CURRENCY $
NLS_COMP BINARY
NLS_LENGTH_SEMANTICS BYTE
NLS_NCHAR_CONV_EXCP FALSE
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_RDBMS_VERSION 11.1.0.6.0Edited by: Chaitanya on May 2, 2012 9:13 PMHi Justin,
Here are the asnwers;
OK. But that implies that there is an error message in the log file. What is the error message?
-- the message is pointing to the previous column even though there is valid data:
Sample data:
The 1st and 3rd rows are getting inserted but 2nd row is rejected.
LineNumber#|#CEID#|#SessionId#|#ReqDate#|#APC#|#CTC#|#LangCode#|#DestProdCode#|#EPCode#|#EPActionCode#|#DeviceCode#|#BswrName#|#BwsrVer#|#BwsrUserAgent#|#Platform#|#NoofItems#|#UserID#|#Namespace#|#AcctNum#|#Email_address#|#FolderID#|#FolderName#|#FolderType#|#EMFormat#|#EMDeliveryType#|#EMDisposition#|#EMLinkType#|#EMSLID#|#EMRAID#|#EMVWID#|#EMListType#|#NLID#|#NLName#|#NLEID#|#NLEName#|#NLFormat#|#NLLinkType#|#NLTMPL#|#NLCSTM#|#NLDOPT#|#RDREmail#|#RDRFname#|#RDRLName#|#RDRCompname#|#WDID#|#WDName#|#WDORGUID#|#WDORGNS#|#WDDomain#|#WDDOPT#|#WDFldrCount#|#WDArticleView#|#RSSFeed#|#RSSType#|#HomePage#|#AId#|#AName#|#AType#|#DMD#|#LinkType#|#AOPT
4144#|#312010576517717406#|#27139ZzZKJHEQT2CAAAGUAYAAAAAQDLJAAAAAABSGAYTEMBVGAZDCMRTG4ZTENRT#|#20120502163835.1502#|#T#|#D#|#en#|#F.COM#|#AE#|#AV#|#D#|#IE#|#7.0#|#Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB7.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)#|#WinXP#|##|#FP181483#|#26#|#9ERN000800#|##|#301104820#|#Competitors Português#|#GBL#|#ht#|#sch#|#inl#|#sa#|##|##|##|##|##|##|##|##|#ht#|#sa#|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|#30114820#|#Competitors Português#|##|##|#sa#|#
4733#|#312020576517823023#|#27139ZzZKJHEQT2CAAAGUAYAAAAAQDLJAAAAAABSGAYTEMBVGAZDCMRTG4ZTENRT#|#20120502165454.4284#|#T#|#D#|#en#|#F.COM#|#AE#|#AV#|#D#|#IE#|#7.0#|#Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB7.3; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)#|#WinXP#|##|#FP181483#|#26#|#9ERN000800#|##|#301104820#|#Competitors Português#|#GBL#|#ht#|#sch#|#inl#|#sa#|##|##|##|##|##|##|##|##|#ht#|#sa#|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|#301104820#|#Competitors Português#|##|##|#sa#|#
1#|#512020578010952807#|#27141ZzZKJHEQOKCAAAGUBIAAAAAJSX2AAAAAABSGAYTEMBUGEYDAMRVHEYDSMRQ#|#20120410065913.0698#|#S#|#D#|#en#|#F.COM#|#DU#|#SP#|#D#|#IE#|#7.0#|#Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 3.5.30729; InfoPath.3; .NET4.0C; .NET4.0E; MS-RTC LM 8; SLCC1; InfoPath.2; MS-RTC S; USPortal)#|#WinNT#|##|#X000745674#|#30#|#9DEL001400#|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|##|#Error:
****** The FileName is Action_20120502_141003_fodsapp2_Rejected.dat ******
LOG file opened at 05/03/12 00:56:01
Field Definitions for table EXT_TABLE_ACTION
Record format DELIMITED BY NEWLINE
Data in file has same endianness as the platform
Rows with all null fields are accepted
Fields in Data Source:
LINENUMBER CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
CEID CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
SESSIONID CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
REQDATE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
APC CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
CTC CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
LANGCODE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
DESTPRODCODE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
EPCODE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
EPACTIONCODE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
DEVICECODE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
BWSRNAME CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
BWSRVER CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
BWSRUSERAGENT CHAR (2000)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
BWSRPLATFORM CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
NOOFITEMS CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
USERID CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
NAMESPACE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
ACCTNUM CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
EMAIL_ADDRESS CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
FOLDERID CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
FOLDERNAME CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
FOLDERTYPE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
EMFORMAT CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
EMDELIVERYTYPE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
EMDISPOSITION CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
EMLINKTYPE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
EMSLID CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
EMALID CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
EMVWID CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
EMLISTTYPE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
NLID CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
NLNAME CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
NLEID CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
NLENAME CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
NLFORMAT CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
NLLINKTYPE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
NLTMPL CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
NLCSTM CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
NLDOPT CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
RDREMAIL CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
RDRFNAME CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
RDRLNAME CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
RDRCOMPNAME CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
WDID CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
WDNAME CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
WDORGUID CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
WDORGNS CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
WDDOMAIN CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
WDDOPT CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
WDFLDRCOUNT CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
WDARTICLEVIEW CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
RSSFEED CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
RSSTYPE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
HOMEPAGE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
ASSETID CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
ASSETNAME CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
ASSETTYPE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
DISSEMINATIONMTHD CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
LINKTYPE CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
AOPT CHAR (255)
Terminated by "#|#"
Enclosed by "#$" and "$#"
Trim whitespace same as SQL Loader
error processing column ASSETID in row 2 for datafile /ODS/data/work/ACTION.dat
ORA-01722: invalid numberEdited by: Chaitanya on May 2, 2012 10:17 PM -
Need how to get the data from the external file in eCatt
Hi ,
Could any body suggest how to get the values from the external file(Excel,CSV file,Text file) and pass it as varaiable in ecatt Test script.
Problem: Need to execute FK01-Vendor creation Transaction with multiple set of data .As per my understanding we could achive through Variants in Testdata set in eCatt .
But is there any way to store the data in excell file and get the data and pass it to FK01 Test scripts
Appreciate response on thisHi
See the links they may be useful
check these link,
eCATT- An Introduction
/people/sumeet.kaul/blog/2005/07/26/ecatt-an-introduction
Creating Test Scripts
/people/sumeet.kaul/blog/2005/08/10/ecatt-creating-test-scripts
eCATT Logs
/people/sapna.modi/blog/2006/04/18/ecatt-logs-part-vi
eCATT Scripts Creation TCD Mode
/people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii
Creation of Test Data Container
/people/sumeet.kaul/blog/2005/08/24/ecatt-creation-of-test-data-container
eCATT Scripts Creation - SAPGUI Mode
/people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation--sapgui-mode-part-iii
Integrating ECATT & MERCURY QTP Part -1
/people/community.user/blog/2007/01/02/integrating-ecatt-mercury-qtp-part-1
Using eCatt to Test Web Dynpro ABAP
/people/thomas.jung/blog/2006/03/21/using-ecatt-to-test-web-dynpro-abap
and
-command reference
http://help.sap.com/saphelp_nw04/helpdata/en/c6/3c333b40389c46e10000000a114084/content.htm
/people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
http://prasadbabu.blogspot.com
https://www.sdn.sap.com/sdn/developerareas/was.sdn?page=test_tool_integration_for_sap_e-catt.htm
http://help.sap.com/saphelp_nw04/helpdata/en/1b/e81c3b84e65e7be10000000a11402f/frameset.htm
http://www.erpgenie.com/ecatt/index.htm
hope this helps.
Reward points for useful Answers
Regards
Anji -
Can Disk Utility get SMART status from external drives?
I recently updated my backup plan with a NewerTech quad-interface dock and a WD Caviar Green hd. I'm using the FW800 interface to connect to my iMac (10.6.7) Everything works perfectly, as expected. I noticed, though, that Disk Utility cannot report the SMART status on the new WD drive. DU simply says "Not Supported" under SMART Status.
Is Disk Utility telling me that it doesn't read SMART status from external drives? Or is it telling me that the new drive doesn't support SMART (which I would find highly unusual)? And, if it's Disk Utility that can't read the status, are there any third-party apps that can report the SMART status on an external drive?
Thanks,
JimCUnfortunately I cannot speak to the NewerTech enclosure, but in principle it appears to be possible to have SMART information displayed even for external drives if the enclosure's bridge controller chip allows it.
My experience:
I've used two MacPower Pleiades FW800/400/USB/eSATA enclosures for several years and I've now supplemented them with two additional inXtron enclosures. They all work as expected daisy-chained to the iMac.
The interesting thing is that the inXtron enclosures came with a CD with some software on it ("Smart AP") which is not available for download, notably a Dashboard Widget for displaying actual and maximum temperatures, total hours of operation, start/stop cycles, drive model and serial number.
This widget is complete garbage, though – it is a nauseating nightmare of extreme over-design at the expense of even basic usability:
http://www.inxtron.com/information-center/smart-ap-for-external-hard-drives
To make matters even worse, it can only display the above information for the first external drive connected.
BUT: This Widget internally calls a command line utility which does the actual parameter retrieval, and that one can be called from the terminal as well.
So after installing the software from CD and effectively discarding the Widget, I checked out the command line utility in the Terminal and found that this utility actually reported data about ALL my enclosures, both the inXtron and the MacPower ones (there seems to be firmware compatibility across these):
(The '$' is supposed to be Terminal's bash prompt – type in only the rest of the respective line.)
$ /Applications/MacpowerAP/GetSMART 1
29 50 13 8
53 67 645 15829
52 53 90 7105
51 52 18 13
Each line reports the following for one connected enclosure:
[temp] [maxtemp] [cycles] [hours]
The drives are reported first USB, then FireWire drives, each in the order of first connection / mounting.
$ /Applications/MacpowerAP/GetSMART 2
WD-WCA**************
WDC WD30EZRX-00MMMB0
5TE09***************
ST31000333AS-00MMMB0
5TE09***************
ST31000333AS-00MMMB0
WD-WMA**************
WDC WD30EZRS-00J99B0
Each drive gets two lines reported, first the drive's serial number ("***" blocking out my exact ones), then the drive model.
$ /Applications/MacpowerAP/GetSMART 3
29 50 13 8
WD-WCA**************
WDC WD30EZRX-00MMMB0
53 67 645 15829
5TE09***************
ST31000333AS-00MMMB0
52 53 90 7105
5TE09***************
ST31000333AS-00MMMB0
51 52 18 13
WD-WMA**************
WDC WD30EZRS-00J99B0
This combines both of the above.
$ /Applications/MacpowerAP/GetSMART 5
disk4
disk1
disk2
disk3
This reports the mounted disk names (referring not to the volume names but to the internal Unix names as in /dev/[drive]); Numbering is in connection / mounting order, the actual sequence is as always USB drives, then FireWire drives.
$ /Applications/MacpowerAP/GetSMART 6
USB
1394
1394
1394
This reports the connection interface for each drive in the same sequence as all other commands.
$ /Applications/MacpowerAP/GetSMART 7
MPT934DS1.20.0104.00
MPT934DS1.20.0104.00
This might report the firmware revision or something like that.
These are the commands I know about, and they apply only to the "Smart AP" software supplied with current inXtron enclosures, but it may be possible that other brands use it as well.
I have not been able to identify information about the self-test (early(?) failure warning), but it might be contained as well in the data reported above.
As always, your mileage may vary and you should never do such experiments without FIRST making sure you've got backups of your data and that such backup is not connected during experimentation!
Maybe this can help some people getting the information they need; And maybe there are similar capabilities with other enclosures. At the very least it demonstrates that with the proper firmware in the enclosures themselves and some software on the Mac it IS possible to get at least some of the SMART information from the drive in an external FireWire- or USB-connected enclosure.
None of that is fed into the system's "official" SMART mechanism, though, so no luck using standard mechanisms or applications for it. It's strictly a command-line affair (deservedly disregarding the mishappen Widget).
Good luck! -
External Hard drive getting errors when copying files?
When I'm copying files to my hard drive I keep getting errors that the file is in use. It was originally stopping at around the 167.8MB mark everytime when I try copying files over and giving me that error. As this is a 1TB HDD I have no way of backing it up until I get to the US (currently studying in Australia). So just wondering if anyone had ideas.
Things I've done:
- Tried using HDD over Firewire/USB and with other Macs still same errors
- Tried Disk Utility and sometimes it I get no errors with the disk when I do Repair/Verify Disk or I get an error where the disk can't be unmounted
- I get that error of unmounting when I normally unmount them and I have to unplug the HDD for it to be readable again.
- I try copying files from it or to it, and sometimes files copy to my Computer entirely even 2GB ones, but other times it stops at random intervals, and it always stops when copying files to the HDD that never works, usually stops at random times. :\
Any suggestions, help, or programs I can use for HDD repair would be great!
Thanks a lot,
godzillafan8686Wondering if I could bump this up a bit, still having problems with it.
-
Links to external files don't work
Hello
Using RH 8.02 and converting linked Word docs (Word 2002) to WebHelp. These are policies and procedures that reference external documents.
In my Word doc I have a hyperlink to an external document. This doc is on a network server. In Word I added the hyperlink and it appeared as a relative path, such as ../RelatedDocs/RelDoc1.doc.
The referenced file is an external file, and I don't want to add it to RH because it may be updated; I just want to link to it so that a user gets the latest version.
When I update the HTML files in RH I see this in my HTML file:
<a href="file:////terminus/avbase_techsupport/av-base documents/supportmaster/documentationshare/relateddocs/reldoc1.doc">Related Doc 1</a>
This is the correct absolute path for the referenced file. Note the file://// prefix, with four forward slashes.
When I generate WebHelp, the link doesn't work. Nothing happens.
I tried the following:
1. Copied the whole path into my Windows Start > Run box and hit Enter. Nothing happens.
2. Removed two of the forward slashes and copied it again into the Run box. Now the file opens in Word.
I also tried removing the hyperlinks from the Word docs and adding them through RH instead. Same result.
Why does RH add four forward slashes to the prefix? What can I do to get these external links working?
Thanks for your help.
Roger Shuttleworth
London, CanadaHello Peter
I apologize for taking so long to respond. I just received a new computer with Vista and have had to set it up. Here is what happens:
1. In Word, I have a doc policy1.doc that contains a hyperlink to reldoc1.doc. The two files are in different folders. When I insert the link, Word shows it as a relative path ../RelatedDocs/reldoc1.doc. When I hover over it in the Word doc, it shows as an absolute path starting with file:///\\theserver, etc.
2. My RH project includes policy1.doc but not reldoc1.doc. I update policy1.doc in RH. In the HTML topic file (HTML view) the link is:
<a href="file:////theserver/path/reldoc1.doc">Link text</a>. Note the four forward slashes.
3. I save all project files and generate WebHelp.
4. In the resultant web page (in Firefox), I click the link in policy1 and nothing happens. The status bar shows the path the same as above.
5. I navigate to the output !SSL! and find the index page, and open it in Internet Explorer 8. The link shows in the status bar as file://theserver/path/reldoc1.doc, and when clicked IE opens the Word doc.
So in this case Firefox doesn't open the link but IE does.
Here is another scenario:
1. I have no links in myWord docs.
2. I generate topic files in RH using the linked Word docs.
3. In RH, in the HTML file for policy1 (policy1.htm) I add a link to reldoc1.doc. I choose the file protocol. RH asks me if I want to copy the doc into the project folder, and I say No.
4. I check the HTML for policy1.htm and see that it has the link as follows:
<a href="file://J:/Documents/rest of folder path/RelDoc1.doc">Related Doc 1</a>
(Going to Hyperlink Properties shows the same path.) Note the two forward slashes.
5. I save all files in the project and click Generate Primary Layout (which is WebHelp). A dialog asks if I want to update <some file or other, but I can't see which one because that darned dialog box is too small, but I expect it's policy1.htm>.
6. I say No. The output is generated and I view it in Firefox. The link works and has a path in the status bar as:
<a href="file://J:/Documents/rest of folder path/RelDoc1.doc">Related Doc 1</a>
Note the three forward slashes.
7. I view the index.htm file in IE and it works.
As a variant of the above, instead of saying No when asked if I want to update the file, I say Yes.
1.The HTML of policy1.htm now shows the link as:
<a href="file:////server/rest of path/reldoc1.doc">Related Doc 1</a>
Note the four forward slashes again.
2. The link is as shown in the status bar of Firefox is now set to:
<a href="file:////server/rest of path/reldoc1.doc">Related Doc 1</a>
It doesn't work.
2. The same link shown in IE status bar has two forward slashes (even though the source has four), and it works.
So in answer to your question, the link definitely changes within RH. The two browsers deal with things differently, with IE seeing a file://// link as file://.
Incidentally, I did some research on the file:// protocol and came up with:
http://kb.mozillazine.org/Firefox_:_Issues_:_Links_to_Local_Pages_Don%27t_Work
The answer seems to be:
1. Add the links within RH.
2. Don't update when generating output.
3. If possible, get users to use IE instead of FF.
Either way, it's not very satisfactory for my purposes.
Regards,
Roger -
Updating certain rows of table by external file??
Hello gentlemen,
I need your help.I have a very large table.I need to update certain rows of table every day(around 200 per day)
I would like by using an external file (.csv or .txt) to update certain column on the 200 rows i have in the external file.
Can this be done?Do i need to write down a pl/sql procedure?Please help.I am a newbie to pl/sql but it will save me much time every day if i manage to do this.
Thank you in advance for your help.I made a first attempt to create the external table from a .txt file.
I used the below:
CREATE TABLE pol_test
(STATUS VARCHAR2(30 CHAR),
ASFAL VARCHAR2(20 CHAR)
ORGANIZATION EXTERNAL
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY def_dir1
ACCESS PARAMETERS
(RECORDS DELIMITED BY STRING
FIELDS (STATUS VARCHAR2(30 CHAR),
ASFAL VARCHAR2(20 CHAR)
LOCATION ('C:\Users\t.christopoulos\Desktop\TEST.TXT')
I get the below error :
Error report:
SQL Error: ORA-06564: object DEF_DIR1 does not exist
06564. 00000 - "object %s does not exist"
*Cause: The named object could not be found. Either it does not exist
or you do not have permission to access it.
*Action: Create the object or get permission to access it.
I suppose that it goes to create the directory on the server where i dont have access.I run these commands from my desktop using SQL developer. -
Reading the Blob and writing it to an external file in an xml tree format
Hi,
We have a table by name clarity_response_log and content of the column(Response_file) is BLOB and we have xml file or xml content in that column. Most probably the column or table may be having more than 5 records and hence we need to read the corresponding blob content and write to an external file.
CREATE TABLE CLARITY_RESPONSE_LOG
REQUEST_CODE NUMBER,
RESPONSE_FILE BLOB,
DATE_CRATED DATE NOT NULL,
CREATED_BY NUMBER NOT NULL,
UPDATED_BY NUMBER DEFAULT 1,
DATE_UPDATED VARCHAR2(20 BYTE) DEFAULT SYSDATE
)The xml content in the insert statement is very small because of some reason and cannot be made public and indeed we have a very big xml file stored in the BLOB column or Response_File column
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(5, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(6, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(7, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(8, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');
Insert into CLARITY_RESPONSE_LOG
(REQUEST_CODE, RESPONSE_FILE, DATE_CRATED, CREATED_BY, UPDATED_BY, DATE_UPDATED)
Values
(9, '<?xml version="1.0" encoding="UTF-8"?><xml-response><phone-number>1212121212</tracking-number></xml-response>', TO_DATE('09/23/2010 09:01:34', 'MM/DD/YYYY HH24:MI:SS'), 1, 1, '23-SEP-10');THe corresponding proc for reading the data and writing the data to an external file goes something like this
SET serveroutput ON
DECLARE
vstart NUMBER := 1;
bytelen NUMBER := 32000;
len NUMBER;
my_vr RAW (32000);
x NUMBER;
l_output UTL_FILE.FILE_TYPE;
BEGIN
-- define output directory
l_output :=
UTL_FILE.FOPEN ('CWFSTORE_RESPONCE_XML', 'extract500.txt', 'wb', 32760);
vstart := 1;
bytelen := 32000;
---get the Blob locator
FOR rec IN (SELECT response_file vblob
FROM clarity_response_log
WHERE TRUNC (date_crated) = TRUNC (SYSDATE - 1))
LOOP
--get length of the blob
len := DBMS_LOB.getlength (rec.vblob);
DBMS_OUTPUT.PUT_LINE (len);
x := len;
---- If small enough for a single write
IF len < 32760
THEN
UTL_FILE.put_raw (l_output, rec.vblob);
UTL_FILE.FFLUSH (l_output);
ELSE
-------- write in pieces
vstart := 1;
WHILE vstart < len AND bytelen > 0
LOOP
DBMS_LOB.READ (rec.vblob, bytelen, vstart, my_vr);
UTL_FILE.put_raw (l_output, my_vr);
UTL_FILE.FFLUSH (l_output);
---------------- set the start position for the next cut
vstart := vstart + bytelen;
---------- set the end position if less than 32000 bytes
x := x - bytelen;
IF x < 32000
THEN
bytelen := x;
END IF;
UTL_FILE.NEW_LINE (l_output);
END LOOP;
----------------- --- UTL_FILE.NEW_LINE(l_output);
END IF;
END LOOP;
UTL_FILE.FCLOSE (l_output);
END;The above code works well and all the records or xml contents are being written simultaneously adjacent to each other but we each records must be written to a new line or there must be a line gap or a blank line between any two records
the code which I get is as follow all all xml data comes on a single line
<?xml version="1.0" encoding="ISO-8859-1"?><emp><empno>7369</empno><ename>James</ename><job>Manager</job><salary>1000</salary></emp><?xml version="1.0" encoding="ISO-8859-1"?><emp><empno>7370</empno><ename>charles</ename><job>President</job><salary>500</salary></emp>But the code written to an external file has to be something like this.
<?xml version="1.0" encoding="ISO-8859-1"?>
<emp>
<empno>7369</empno>
<ename>James</ename>
<job>Manager</job>
<salary>1000</salary>
</emp>
<?xml version="1.0" encoding="ISO-8859-1"?>
<emp>
<empno>7370</empno>
<ename>charles</ename>
<job>President</job>
<salary>500</salary>
</emp>Please adviceWhat was wrong with the previous answers given on your other thread:
Export Blob data to text file(-29285-ORA-29285: file write error)
If there's a continuing issue, stay with the same thread, don't just ask the same question again and again, it's really Pi**es people off and causes confusion as not everyone will be familiar with what answers you've already had. You're just wasting people's time by doing that.
As already mentioned before, convert your BLOB to a CLOB and then to XMLTYPE where it can be treated as XML and written out to file in a variety of ways including the way I showed you on the other thread.
You really seem to be struggling to get the worst possible way to work. -
I have an external hard drive of the brand Western Digital.
Before I got my iMac I moved a lot of my important files from my PC to the hard drive and today I went on and connected it to my iMac to move my files over to it.
When it had connected a window popped up that asked if I wanted to use this hard drive with the program Time Machine and create backups. Without thinking it trough enough and reading the warning properly (I'm stupid I know) I clicked "yes". I then realised how stupid it was and cancelled the formatting of the hard drive. But somehow the program still managed to delete all my important files and can't find any way to get them back. Neither can I connect the hard drive to my PC anymore so I can't check if the files are still there (which I doubt they are since I can't see them on my iMac either).
And now I wonder: is there any way for me to get back my lost files or are they lost forever?
Thank you in advance!
//GinaA data recovery specialist or some data recovery programs should be able to help. Most format simply rewrite the directory tree saying no files are on this disk. The bits that represent the files are still flipped appropreiately so they still exists, you just don't have the location info to get at them. Secure formats and erases rewrite each bit to a zero or 1 or random so the data is then truely gone. This type of format takes a long time to complete.
I'm not making a recomendation of a particular program but here is one company that does what you ask:
http://www.remosoftware.com/mac-recovery The cost is pretty high but I'm sure they don't sell many copies and need to cover their development costs.
Good luck and don't write anything on the freshly formatted disk until you decide what to do. -
I am trying to copy my entire iTunes library and everything in it from my PC Desktop to my PC Laptop using the "External Drive" method as shown on the Apple website. On Part 1 (5) I am told to consolidate files. When attempting to do this I get the message "Copying files failed. The file name was invalid or too long."
How do I resolve this?I have just been having this problem and it has been driving me mad. The error message doesn't tell you which file is causing the problem so you can't fix it and it leaves your libray in a state of limbo with some files copied into the new location and some in the old location. After many hours I found a surprisingly quick and simple solution.
1) in iTune create a smart play list that includes everything that was added before tomorrows date. This will include everything.
2) Right click this playlist and export it as a text file to produce a tab delimited file.
3) Import this into a spread sheet, or just view it in a text editor with line wrap turned off. What you are interested in is the last column (or end of the line in a text editor). This gives you the path of the file associated with each entry in the library.
The path of the files that have already been copied successfully will start with the new location for your media files you specified. Scroll thru the rows until you get a blank path. If you start getting paths starting with the old Media file location then you went to far and start scrolling back.
The row with the blank path was the file that failed. Move back to the start of the row to find out more about it. In my case it was a podcast with a very long name. I just deleted that podcast from iTunes.
4) Restart the consolidation by choosing File, Library as you did before and the process starts again where it left off.
5) If it fails again on another file just repeat the process -
Problem writing external file to externally mounted disk in Windows
Folks,
I've got a puzzling problem with a simple OWB mapping where I'm dumping the contents of a table to an external file.
Versions are OWB v 11.2.0.2 64-bits on Oracle RDBMS 11.2.0.2 Windows 2007 64-bits Enterprise Server.
When the external files module is hooked up to a location that points to a local disk and directory on the OWB-server, everything works fine - files are created and written.
When the external files module is hooked up to a location that points to a mounted disk on another Windows 2007 64-bits Enterprise Server, I get +"Invalid Path for target file, check if connector is deployed correctly".+
The "File System Location Path" in OWB is set to "N:" (no slashes either way). "Test Connection" reports OK.
I've given both the Oracle os-user and "Everyone" (for good measure) all rights on the mounted disk, and I can see that the generated package code is using the correct Directory, and the Directory Path is the correct one on the server. The mounted disk (N:) should appear as a local disk to Oracle as far as I can see. I'm able to create and delete files on the disk using command line on the OWB/DB-server.
I'm scratching my head on this one....then mapped that share as a network drive (N:) on server A (the OWB/DB-server)I think that problem was with different accounts used for run Oracle database (usually database instance run under SYSTEM account) and which you used to map share (it was interactive session). Even when you made this map persistent (enable "Reconnect at logon" option during mapping) you don't grant access to this drive to other accounts (including SYSTEM ) - this drive will not be visible to other users.
I think it is possible to create "persistent" network drive mapping for Oracle database context with specification non-SYSTEM account (domain or server local) for running Oracle database instance (and Oracle Listener service).
Also it seems there is a workaround to access mapped network drive under SYSTEM account:
http://stackoverflow.com/questions/182750/how-to-map-a-network-drive-to-be-used-by-a-service
Regards,
Oleg -
Writing agents o/p to external file and if i run the agent again it should
Hi All,
i want to run a agent and that result should be displayed in external file system.and i achieved this by using writing VB script and in agents i used actions in that we have invoke server script.And i got the perfect output but what 's my scenario is when i run the agnent again it should create another file with below requirements.
The file name must contain a suffix containing the date in yyyymmdd format. In cases where the file stored more than once per day, a sequence number must also be provided within the filename.
(i.e. v1_yyyymmdd, v2_yyyymmdd, v3_yyyymmdd, v4_yyyymmdd, v5_yyyymmdd…)
And my VB script is like below
'#####=========================================================================
'## Title: Export Report
'## Rev: 1.0
'## Author: Paul McGarrick
'## Company: Total Business Intelligence / http://total-bi.com
'## Purpose:
'## 1. This script takes a file from OBIEE and saves to the file system
'## 2. Creates a reporting subdirectory if not already present
'## 3. Creates a further subdirectory with name based on current date
'## Inputs (specified in Actions tab of OBIEE Delivers Agent):
'## 1. Parameter(0) - This actual file to be exported
'## 2. Parameter(1) - The filename specified within OBIEE
'## 3. Parameter(2) - Report sub directory name specified within OBIEE
'#####=========================================================================
Dim sBasePath
sBasePath = "E:\reports\reports"
Dim sMasterPath
sMasterPath = sBasePath & "\" & Parameter(2)
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
'check whether master directory exists, if not create
Dim objMasterDir
If Not objFSO.FolderExists(sMasterPath) Then
Set objMasterDir = objFSO.CreateFolder(sMasterPath)
End If
Set objMasterDir = Nothing
'build string to get date in yyyy-mm-dd format
Dim sDate, sDateFull
sDate = Now
sDateFull = DatePart("yyyy", sDate) & "-"
If Len(DatePart("m", sDate))=1 Then sDateFull = sDateFull & "0" End If
sDateFull = sDateFull & DatePart("m", sDate) & "-"
If Len(DatePart("d", sDate))=1 Then sDateFull = sDateFull & "0" End If
sDateFull = sDateFull & DatePart("d", sDate)
Dim sDir
sDir = sMasterPath & "\" & sDateFull
Dim objDir
If Not objFSO.FolderExists(sDir) Then
Set objDir = objFSO.CreateFolder(sDir)
End If
Set objDir = Nothing
Dim sFileName
sFileName = sDir & "\" & Parameter(1)
Dim objFile
objFSO.CopyFile Parameter(0), sFileName, True
Set objFile = Nothing
Set objFSO = Nothing
could you please any body help me out from this....I assume you are using Windows. Try to write a batch file so that that would look for the ibot name when ever its finds rename the file name as required.
This would be easiest way..
http://lmgtfy.com/?q=rename+a+file+to+current+date+using+batch+file
Edited by: Srini VEERAVALLI on Apr 8, 2013 7:23 AM
Can you updates all your posts?
Edited by: Srini VEERAVALLI on May 13, 2013 6:44 AM -
I have been trying to get rid of a file for a couple of weeks now. It's a very strange looking file that starts out with a bunch of symbols that I thought at first looked like Japanese but when I looked closer it seems like some sort of hieroglyphics or something. The file is dated December 1903. I've tried renaming it and I get error. I've tried dragging it out of the trash only to have it disappear and reappear later. I've tried many of the force empty trash techniques like holding down option and doing it. I even looked up some terminal commands. No luck. I've tried to use some of the disk utility programs available as well as the native Mac utilities but they don't work either. Can anyone offer me some help as to how to get rid of this file? It seems to be causing some problems when opening folders that are in my dock now and I'm starting to worry other things will start happening too. Thanks so much.
nerowolfe wrote:
Can you drag the file out of the trash?
If so, create a new folder on your desktop and name it junk, and put the strange file in the new folder.
Now, in a terminal, enter
cd Desktop
ls
and you should see the folder you just created named junk
now enter the command
cd junk
if you now do
ls
you will see the strange file.
enter the following command
sudo rm *
and enter password when prompted.
This should remove the file.
If not, post back.
please don't do anything suggested in this post. none of this has any chance of helping and will potentially hurt as the offending file will be copied from the external drive to your desktop and might become undeletable there too.
nerowolfe, please read the thread. the file in question in Trash on an external drive. it can't be deleted because of strange symbols in its name. the unix rm has been tried already and didn't work because of those characters.
Message was edited by: V.K.
Message was edited by: V.K. -
Help with delivering dynamic text through an external file, through XML?
I'm struggling to find the best way to deliver dynamic text
from an external file, through XML, to a Flash file.
I use small Flash pieces to deliver multiple sets of content
through a single .swf file. An example is here:
http://www.esi-intl.com/public/government/federal.asp
In the .swf file at the bottom, I'm using a three-scene .fla
file. I'm putting the actionScript in the Actions layer atop each
frame. Example:
stop ();
loadVarsText = new LoadVars();
loadVarsText.load("fedNews.txt");
//assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
//Now that we know the data is loaded,
//set the text content of the Text Field
//with the instance name "scroller" equal to the
//contents of the variable
scroller.html=true;
scroller.htmlText = this.var1;
} else {
trace("not loaded");
In that .txt file, I'm putting the information like this:
var1=<font face="tahoma,verdana,sans-serif" size="11px"
color="#000000"><b><a href='
http://www.esi-intl.com/public/classroomtraining/dau.asp'>DAU
Grants ESI Course CON353
Equivalency</a></b><br>Advanced Business Solution
in Contracting (CON 353) is an equivalency for DAU's CON 3535
course, Advanced Business Solutions for Mission Support. <a
href='
http://www.esi-intl.com/public/classroomtraining/dau.asp'><U><font
color="#996633">Continue</font></U></a></font>
So much of this is pick-ups from what I've researched in
Google. I'm looking for a way I can feel more confident in my code,
and also have that code follow CSS.
Lastly, I recognize the problems in XML with using single
quotes / double quotes, and the & symbol. This is one of my
largest time sucks, and I'd like to find a better way to do this.
Thank youHi,
Did you ever find a resolution to this? I'm having a similar
issue that I can't seem to get multiline dynamic text working in
CS3.
The font is embedded but it just displays the first line, and
then a blank. I'm sure this worked fine in Flash MX.
Cheers, Ant
Maybe you are looking for
-
I have been using FM version 6.0 under Windows XP service pack 2. An operation I perform regularly is to copy and paste an excel spreadsheet graphic into a FrameMaker document. This worked without any problems until I installed XP SP3 after which any
-
Default value of quality inspection
Hi all when you enter a goods receipt against a purchase order. and a Quality Inspection is suggested as the stock type. Where does this default value come from? Thanks
-
Almost invisible JTable column headers
I'm writing an applet which contains a JTable within a JScrollPane. For a while the column headings (text) were visible, but recently the column headings have become very small in height. There is barely enough there so that the mouse can be used to
-
Installing PHP on FMIS 3.5
I've recently installed and set up a FMIS 3.5 setup and my web developer wants to have php on the server to create some dynamic content. Trouble is, I can not for the life of me get PHP to work on the server. Is there some special instructions that
-
Define Purch. Req. transaction type for Plant Maintenance Order
Hello, Does anybody know how i can specify the (default) Purch. Req. transaction type for a Plant Maintenance Order (IW31)? By default it picks up 'NB' but i would want to change this. Kind regards, Tim