Show file property from d2k

How can I have file size (in bytes or KB) from d2k(form)?
(e.g i have a file 'c:\test.txt', I want to get the size of this file from form at the run time).
Thanks
Sanaul

It somehow beats around the bush, still here's what I'd do:
declare
xfile text_io.file_type;
linestr varchar2(1000);
fsize number;
begin
host('dir c:\xxx.txt >filelist.txt', no_screen);
xfile:=text_io.fopen('c:\filelist.txt');
text_io.get_line(xfile, linestr);
text_io.fclose(xfile);
-- got to be certain where in the line you find the file size
xfile:=to_number(substr(linestr, ..., ...));
end;

Similar Messages

  • When l plug my ipad into my computer it just shows files from the ipad. And doesn't open itunes.

    When l plug my ipad into my computer it just shows files from the ipad. And doesn't open itunes...Help???

    Check for Update (tap to enlarge image)

  • How to make Finder NOT to show files from a specific folder in "All My Files"?

    Hello!
    Can someone please advice how to make finder NOT to show files from a specific folder in "All My Files"? See the attach - I recently installed Civilization 5 from Steam and now I have a lot of unneeded files (*.log and *.ini) shown in  All My Files colder in Finder.
    I don't want to see them. Any advise?

    Using "All my Files" was very handy before all this rubbish popped up. =(

  • I tried to rename a file, it gave me an error message (can't remember the number - 43??) and then the file disappeared from the original folder. When I do a search, the file comes up under the new name, but it does not show a path, and even though preview

    I tried to rename a file, it gave me an error message (can't remember the number - 43??) and then the file disappeared from the original folder. When I do a search, the file comes up under the new name, but it does not show a path, and even though preview shows the contents, I can't open the document (Powerpoint) and I can't move the document. I tried "Copy" and paste but it doesn't work. I tried "Share" with Airdrop and iChat, but the file is inaccessible. When i try to rename the file, it says the filename is too long.
    When I try to open it, it says the alias is not good, and asks if I want to fix the alias. I'm afraid to do that and lose all access to this document.
    Right now, it feels like a ghost document - it is on the computer intact, but it is in an undisclosed location and inaccessible.
    Please help!!

    I was able to resolve this by repairing permissions, even though no permissions error was listed specifically for that file.
    I could also have recovered it through Time Machine, but I'm interested in knowing how not to have this happen again!
    I was afraid of rebooting and possibly losing track even of the ghost.
    I did not try EasyFind - I'll keep that in mind next time.
    Thanks for all the comments.

  • Photos 1.0 not showing all images from Photos Library.photoslibrary folder/file after update install

    I installed the update that changed my iPhoto to Photos 1.0, and the new Photos program is not showing all images from Photos Library.photoslibrary file/folder (not sure to call it file or folder since it is actually a folder with all my pics but it acts more like a file) after update install.  The Photos Library.photoslibrary file/folder shows to be 55 gb in size, and it shows to be loaded into the photos program, but there are maybe a few weeks of pictures showing instead of a few years.  Lots of pictures in the 55 gb are not showing for some reason. 

    No - iPhotos has not replaced anything - it is new and an addition - iPhoto is still on your system in the applications folder and still works just fine
    Outlook is not supported by Photos - not sure if the support must come form Apple or MS as Photos uses a different interface to external packages than iphoto did
    LN

  • I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I would first of all trash the preference file for InDesign, make sure the application is closed then find the prefs in
    /Users/USER NAME/Library/Preferences/Adobe InDesign and just throw the entire folder away, it will generate a new one after you launch InDesign again.
    Now launch InDesign and see if the problems are resolved.
    If not I would repair your permissions on your hard drive wih disk utility, and if that fails then di-install InDesign and re-install that single application.
    Let me know if any of these suggestions work for you
    I will be checking my email although you might have to wait for a response as I will be taking a microlight flight over the Victoria Falls tomorrow. Yay can hardly wait.

  • Custom Metadata panel to show linked graphics from InDesign files?

    Hello all,
    I'm looking to create a custom Metadata panel to show linked graphics from InDesign files. I'm not even sure if this is possible. Can someone please point me in the right direction? I figure if you can see the fonts used in an InDesign file, you should probably be able to pull the links, right?
    Thanks for any and all help!

    Have you tried trashing the prefs? See Replace Your Preferences
    And of course it's essential that the links be up to date.

  • How to access component's control property from main .mxml file

    I have a main .mxml while in which i imported custom
    "popUpWindow" component using "import component.popUpWindow"
    statement. In main .mxml file I display later on that component as
    popUp window using popUp manager class. Once component is
    displayed, how can i access using actionscript component's
    TextInput control (specifically its .text property) from my main
    .mxml file?
    thanks

    I posted this answer elsewhere, maybe it will help:
    First, save the new component wherever you keep your
    components, let's say you call it "MyPopWindow.mxml"
    Assign public variables for the string in both the main app
    and the popup.
    In your case, in the main app:
    Code:
    public var myText:String = "whatever the text field should
    say.";
    and then in the pop up mxml:
    Code:
    [Bindable]
    public var myText;
    Then, in the main mxml file:
    Code:
    // define the window type
    private var popWin:MyPopWindow;
    private function popMeUp(event:MouseEvent):void{
    popWin =MyPopWindow(PopUpManager.createPopUp(this,
    MyPopWindow, true));
    popWin.myText = myText;
    The important things here to notice is the name of the
    component (i.e. the file) is used. A variable is created for the
    window, and TYPED to your file name. Then you use the constructor
    you already had, but again use your type. The "true" is optional
    and gives you a modal popup window.
    Lastly, assign the variable in the window (I called mine
    popWin) to the variable in the main file you want to pass.

  • [svn:fx-trunk] 14083: Removed svn:executable property from some . xml files in trunk.

    Revision: 14083
    Revision: 14083
    Author:   [email protected]
    Date:     2010-02-09 22:48:11 -0800 (Tue, 09 Feb 2010)
    Log Message:
    Removed svn:executable property from some .xml files in trunk.
    QE notes: None
    Doc notes: None
    Bugs: None
    Reviewer: None
    Tests run: ant checkintests
    Is noteworthy for integration: No
    Property Changed:
        flex/sdk/trunk/modules/asc/src/java/macromedia/asc/parser/LiteralVectorNode.java
        flex/sdk/trunk/modules/asc/src/localized_strings/CS/ErrorConstants.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/CS/Lint_Warnings.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/NL/ErrorConstants.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/NL/Lint_Warnings.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/PL/ErrorConstants.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/PL/Lint_Warnings.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/PT/ErrorConstants.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/PT/Lint_Warnings.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/RU/ErrorConstants.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/RU/Lint_Warnings.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/SV/ErrorConstants.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/SV/Lint_Warnings.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/TR/ErrorConstants.xml
        flex/sdk/trunk/modules/asc/src/localized_strings/TR/Lint_Warnings.xml

  • Never Share property from Rules file

    Hello everyone,
    I need to apply storage property as 'Never Share' from rules file, I've a column in a file which says 'Never Share' / 'Store Date' for Members, for this column I'm using Field Type as 'Property' but could not succed after dimension build.
    1) Can we apply storage property from rules file?
    2) I have different data for a parent and it's children, so if I ignore consolidation type for all Childern under a parent will that satisfy instead of Never Share ?
    Thanks in advance

    Hi John,
    Thanks for your quick response. :)
    Regarding the Never Share,
    I have a situation where Parent is not sum of it's Children, i.e. input data is present at other levels apart from level 0.
    For the above case, if a Parent has only one Child then by default Implied sharing is enabled for parent and will not display correct data. So in this situation if
    a) Setting Parent to Never Share will allow me to have different data for parent and child OR
    b) Setting consolidation of child or Children to (~) ignore
    will they solve the problem?

  • I use firefox to show jpg's from newsgroups via Agent. It now cannot find the file in Agent's temp file if it is not a single word. It will read itemone.jpg but not item one.jpg. I'm using Firefox 3.6.8. I've had this problem since I stated using firefox

    I use firefox to show jpg's from newsgroups via Agent. It now cannot find the file in Agent's temp file if it is not a single word. It will read "itemone.jpg" but not "item one.jpg". I'm using Firefox 3.6.8. I've had this problem since I stated using firefox 3. How can I correct it? in English
    == This happened ==
    Every time Firefox opened
    == I upgraded to Firefox 3

    I use firefox to show jpg's from newsgroups via Agent. It now cannot find the file in Agent's temp file if it is not a single word. It will read "itemone.jpg" but not "item one.jpg". I'm using Firefox 3.6.8. I've had this problem since I stated using firefox 3. How can I correct it? in English
    == This happened ==
    Every time Firefox opened
    == I upgraded to Firefox 3

  • How to show a pic from a specific file

    Hi all i got a trouble here, well i stored pics in my database, well the function works ok when im trying to show a pic from the DataBase but my problem comes here when a pic is not found in the database i want to show a pic store in a file noPic.JPG here is my code
    try{
    sql="my select...."
    ConexionPool cp = new ConexionPool();
    ResultSet rs = cp.accesoBaseDatos(sql);
    InputStream inputStream=null;
    FileInputStream file= null;
    file = new FileInputStream("\\imagenes\\SinFoto.jpg");
    if(rs.next()){
    inputStream = rs.getBinaryStream(1);
    }else{
    file = new FileInputStream("\\imagenes\\SinFoto.jpg");
    ** after this is the problem i dont know how to put this file in an InputStram format **
    //rs.close();
    return inputStream;
    well i hope someone could help me how to convert a file into an InputStream or something like that, thanks

    Duplicate post: http://forum.java.sun.com/thread.jspa?threadID=609919

  • Files disappearing from mounted .DMG files

    Hi, I've had this issue occur a few times in Tiger and I'd like to know if anyone else has experienced this and if there's a known workaround. Sometimes, when browsing a disk image, or, less commonly, a physical disc like a CD, files in the Finder will seem to disappear from the image/disk when clicked on. First the filenames will go, then the files themselves, and evidently those files then become unreadable in general as applications can't access them. I don't get any error messages; it's just like the filesystem on that disk eats itself away and vanishes. I can unmount the disk without any issue.
    I'm having this problem right now with any disk image I mount on my XServe -- it goes through the "Verify" step just fine, shows up on my desktop, I can browse and even open files, but inevitably within a very short period of time the above occurs, and it becomes useless. I KNOW it can't be the .dmg file that's the problem, because if I share the .dmg over Personal File Sharing and mount it from another Mac, this problem does NOT occur. It's just on the one Mac hosting the files. Any idea what this could mean, and what could solve it?
    Also, I know a lot of times a restart will cure this weird little glitches, but I would really like a solution, if you know what I mean... particularly on a server, I cannot afford to restart whenever I have a problem.

    Sounds like you have run into a very strange, and unfortunately no uncommon, bug involving file systems from either servers or FAT 32 mounted external drives. See this discussion:
    http://discussions.apple.com/thread.jspa?messageID=5310151
    Read on down away to see some replies from people who did some pretty thorough investigations of the problem.
    Francine
    Francine
    Schwieder

  • Older music/TV shows & videos purchased from iTunes store no longer work on PC (iTunes only)

    Hi,
    I am having trouble with iTunes on my Win PC and would like some help.  It clearly appears to be a software or configuration issue.  Essentially all my older music videos and TV shows all purchase from the iTunes store (anything older than 2012) simply will not play with iTunes (but will play with all other Win apps).  Here are the details:
    1) Running new PC with Win 7 ultimate
    2) All media files in one location (iTunes folder) all new tunes and videos are stored there
    3) I am running iTunes v10
    4) Newly purchased music videos work - older ones (from 2011-2006) no longer play.  Same with newly purchased TV shows but not older ones.
    5) When file is selected in iTunes it simply does not play them (no crash, no sound, nothing) - itunes is still active and you can select other music, etc.
    6) Videos play in Win player and any other windows app applied to them (sourced directly from iTunes to Explorer)
    7) Problem did not exist in much earlier version of iTunes (or I would not have purchased them, duh)
    8) Problem existed in last few versions of iTunes
    9) Problem existing on last PC as well as this new one
    9) ALL videos STILL work fine on my ipad and ipods - nothing wrong with those files themselves
    10) I have searched online and tried:  control panel selections with Quicktime (3D video setting), uninstalling itunes several times, uninstalling quicktime, etc.
    11) All tests pass with iTunes diagnostic
    Please help if you can!  Thanks.
    best, AHC99

    By the way... ALL music files back to 2004 still play fine on iTunes on the PC...

  • Aspect ratio issues in iDVD with mov files exported from FCE

    Please help. I believe this is an iDVD bug. I have found some relevant discussion of it on online forums - but have not found a solution that works for me. I am looking for a workaround.
    http://discussions.apple.com/thread.jspa?threadID=1356500&tstart=31
    PROBLEM STATEMENT:
    My 4:3 movies, exported from FCE in QT-with-conversion formats (any 4:3 format) - appear in iDVD with gray side-pillars (as expected for 4:3) AND with a black line (letter-boxing) at top and bottom - as would be for 16:9. It appears the aspect ratio is also distorted i.e. 16:9. (The iDVD project is set to 4:3.)
    1- A 4:3 mov file exported from FCE using Quicktime Movie format (no conversion) does not have the problem, but I cannot de-interlace the video using this export mode.
    2) A 4:3 mov file exported using QT-with-conversion mode (any 4:3 format) DOES have the problem. I need to use this mode in order to get de-interlace.
    (Exception: 640x480 VGA mode does not have the black lines, and it displays correctly in dvd player on my computer screen - but on the TV screen, it crops content from the top and bottom of the movie, so this is not an option.)
    3) In Finder, if you click on mov file exported QT-only (no conversion), it opens in the FCE viewer. If you click on mov file exported in any other 4:3 mode, it opens in Quicktime viewer (i.e. there is absolutely something different in the header/ID of these files.)
    4) All mov files, regardless of export mode, show correctly in Quicktime viewer - no black line, no distortion. The problem does not occur outside of iDvd.
    5) I tried passing the QT-with-conversion mov files through an Inverse-Anamorphicizer (per suggestion on forum - this apparently fixed the problem for some people) but the resulting output mov (i.e. the inverted product) still had the same problem.
    I am, so far, left with this trade-off: Give up the de-interlacing, or live with the letter-boxing/ distortion. Neither is acceptable.
    I am looking for a workaround:
    1) A way to export de-interlaced 4:3 mov from FCE that shows in correct ratio in iDVD
    2) A way to "convert" / re-head mov file after exported so that it displays corrrectly (inverse-anamorphicize) so that iDVD reads it correctly
    3) Can the mov be de-interlaced after the fact (so I could use QT export without conversion)?
    4) Something besides iDVD to put this together - that doesn't have this problem? (I like and want to use the iDVD menu/theme.)
    5) Other?????
    I also notice that all the QT-with-conversion mov files are 1/3 to 1/2 the size of the QT-only mov file, which is valuable and preferable to me. (I don't see any quality difference in the display...)

    In the Preview window > top frame > middle button
    do you have correct for pixel aspect ratio checked or not?
    !http://i533.photobucket.com/albums/ee340/gogiangigo/Picture1-4.png!

Maybe you are looking for