How to determine file origin?

I need to determine if an archive originated (created) on Windows or UNIX.
This will give me a clue as to what the maximum path name length is for where the archive originated.
Problem is when a UNIX archive gets decompressed on Windows and exceeds the maximum path name length.

Is there any way to determine maximum path length in
archive without decompressing the whole archive?
Also, is this possible for multiple embedded archivesI don't think that you need to do a full decompress, just list the entires.
Kaj

Similar Messages

  • How to Determine File Code page of the txt file generated thru UTL_FIle

    Hi
    I want to know the file code page of the txt file that I have generated in Oracle using UTL_FILE.
    E.g., OUT_FILE := UTL_FILE.FOPEN(DIRNAME,vFILENAME,'W',2000);
    What is the way to do so? I have read on internet that if we want to know the code page of a file then we just have to open in any browser like IE and just check the encoding from there. Is this the correct way to know the encoding?
    Also, I want to know that whether file code page is dependent on OS or the source from which the file is being generated?

    "The Oracle character set is synonymous with the Windows code page. Basically, they mean the same thing."
    Source:http://www.databasejournal.com/features/oracle/article.php/3493691/The-Globalization-of-Language-in-Oracle---The-NLSLANG-variable.htm
    Means, in oracle we says character set which is = window's code page.
    "Determine the code page of your Oracle database ( = select parameter, value from nls_database_parameters and look for parameter NLS_CHARACTERSET)."
    Source:http://media.datadirect.com/download/docs/slnk/admin/intlangsupp.html
    Which already said by Pierre above.
    HTH
    Girish Sharma

  • Determine file type

    How to determine file type given an input stream only?
    private String getFileType (InputStream inputStream) {
    return fileType;
    }

    But there must be some way to do thisWhy must there be?
    There may be "magic numbers" in the stream, or there may not be.
    The point was made in reply one that quite a few file types and that without some sensible choice about what options are going to be considered it could be quite infeasible.
    But it's worse than that. There will be more file types tomorrow than there are today. Unless you are happy with your software failing tomorrow (or have access to java.lang.crystal.Ball) it will be quite difficult to test for tomorrow's file types.
    But it's worse than that. A few minutes ago I created a file type to be used for blog entries on our intranet. Detect that one!
    But it's worse than that. There is no reason why a given stream should not produce a whole lot of bytes that can be validly interpreted by two different pieces of software, each for their own ends. In other words: one stream, two (or more) types.
    Again, why must there be some way to do this?

  • How to determine the path of the jar file cache of javawebstart?

    Hello, I need to know how to determine where the java web start application
    file jar cache is stored on windows system hard drive.
    I would have launch of the inner processes
    I have need to know the path of file jar .
    example if my application is myAppliation.jar
    in code generic class of myAppliation.jar i have the command runtime
    String strCmd =
    System.getProperties().getProperty("java.home") + "\\bin\\java" +
         " -cp " +
         System.getProperties().getProperty("java.class.path") + ";"
         + " anotherClass.class ";
    Runtime.getRuntime().exec(strCmd);
    the anotherClass.class has need
    of the contained library in myAppliation.jar.

    Thanks i have tried this metod and function
    java.net.URL resource = classLoader.getResource("myResource");
    if (resource != null) {
    String s = resource.toString();
    if (s.startsWith("jar:")) {
    int index = s.indexOf("!");
    if (index > 4) {
    String fileurl = s.substring(4, index);
    if (fileurl.startsWith("file:")) {
    String path = fileurl.substring(5);
    // now path is the path to the jar file in the cache containing the resource
    System.out.println("file jar: "+path);
    }

  • How to determine the file system on Solaris

    Friends,
    How to determine which file system I have installed UFS or ZFS on Solaris
    Thanks

    Other methods would include looking at the /etc/vfstab if it's in there or fstyp(1M):
    System Administration Commands fstyp(1M)
    NAME
    fstyp - determine file system type
    SYNOPSIS
    fstyp [-a | -v] special [:logical-drive]

  • How can determine the duration of an audio file

    Hi,
    i'm making speech recognition project using java. i can capture sound by michrophone and playback it. the type of the sound is .wav.
    my question is how to determine the recording duration (for example: determine the duration for 0.25 second) because i must recorded syllable,the assumtion is needed less than 0.5 second to say a word. and then.. can this wav file be changed into... binary or integer ?
    thanks for your help

    FYI I'm newbie in Java,
    Yes, I want to limit the audio file lengths to a certain value. What should I do?
    I have read wav file using an AudioInputStream, for audio format I'm using sampleRate = 8000.0F and sampleSizeInBits = 8. My friend said if I used 8 bit for sampleSizeInBit (resolution in amplitude) the binary file should be -128 till 127 in range according to the bit. I try this code and the result is binary file which is zero, positive, and negative.
    the code
    try{
    audioInputStream.read(audioBytes);
    for (int i=0; i<audioBytes.length;i++){
    System.out.println(audioBytes);
    catch(IOException ioe){
    System.out.println("Error"+ioe);
    I'm not sure that the code is right, but it works. Should I change the audioBytes into integer before? I try this code but it doesn't work.
    int a = new int[audioBytes.length];
    for (int i=0;i<audioBytes.length;i++){
    a[i] = new Byte(audioBytes[i]).intValue();
    this binary file has been printed in console (I’m using texpad). So, how I can write that to file.txt? I'm using FileoutputStream but it doesn't work correctly. Here is the code
    FileOutputStream fos = new FileOutputStream(strFilePath);
    {audioInputStream.read(audioBytes);
    fos.write(audioBytes);
    catch (IOException ioe){
    System.out.println("Error"+ioe);
    When I open file .txt is read as character like this üüüüüüüüüüüüûüüüûüûûû ||||||| ||||||| ||||||||||||||||||||||||||||| &#1746;&#1746;&#1746;&#1746;&#1746;&#1746;&#1746;&#1746;&#1746;&#1746;&#1746;&#1746; (like using alt plus number)
    Edited by: anasfr on Mar 19, 2009 9:02 AM

  • How to Determine Text File Encoding is UNICODE

    Hi Gurus,
    How to determine whether the file is a UNICODE format or not?
    I have the file stored as a BLOB column in a table
    Thanks,
    Sombit

    That's a rather hard problem. You would, realistically, either have to make a bunch of simplifying assumptions based on the data or you would want to buy a commercial tool that does character set detection.
    There are a number of different ways to encode Unicode (UTF-8, UTF-16, UTF-32, USC-2, etc.) and a number of different versions of the Unicode standard. UTF-8 is one of the more common ways to encode Unicode. But it is popular precisely because the first 127 characters (which is the majority of what you'd find in English text) are encoded identically to 7-bit ASCII. Depending on the size and contents of the document, it may not be possible to determine whether the data is encoded in 7-bit ASCII, UTF-8, or one of the various single-byte character sets that are built off of 7-bit ASCII (ISO 8859-15, Windows-1252, ISO 8859-1, etc).
    Depending on how many different character sets you are trying to distinguish between, you'd have to look for binary values that are valid in one character set and not in another.
    Justin

  • How to identify the original source folder of files in the trash?

    I am trying to help a friend who trashed a massive amount of files. Dragging files out of the trash to where they originated from works when one knows where files in the trash came from. What I need to know is how to find out which folder the files originated from. Pictures from iPhoto library, easy ... but there are others that are a mystery.
    Any help is appreciated.
    She is using a macbook running Leopard.

    The only way anyone here could possibly tell where files came from would first have a list of the files with the exact file names. The files themselves don’t carry information of any previous paths, that I know of.
    With the photos, as you said, easy. If they are applications, again, easy, Applications folder. But if they are System files, those can be scattered all over.
    You said it is a massive number of files, so unless the vast majority are photos or applications, it would probably not be practical to make a list.

  • I was using photoshop CC as normal, when suddenly it started going haywire. It has corrupted all the one PSD files by distorting the images and colour. Does anyone know how to recover the original images?

    I was using photoshop CC as normal, when suddenly it started going haywire. It has corrupted all the open PSD files by distorting the images and colour. They are now completely unrecognisable and unusable. Does anyone know how to recover the original images as I was saving them as I went along but the files are now corrupt?

    What version of Photoshop are you running?
    I've seen a couple of instances over the last week or two where Photoshop has added masks, strange colours and also merged content from two separate PSD files that were open at the same time.
    This has occurred on two different iMacs, (both 10.10.x) running Photoshop CC 2014.2.2 (20141204.r.310 x64).
    see image below for example:

  • How to determine binary file data set size

    Hi all
    I am writing specific sets of array data to a binary file, appending each time so the file grows by one data set for each write operation.  I use the set file position function to make sure that I am at the end of the file each time.
    When I read the file, I want to read only the last 25 (or some number) data sets.  To do this, I figured on using the set file position function to place the file position to where it was 25 data sets from the end.  Easy math, right ?  Apparently not.
    Well, as I have been collecting file size data as I have started the initial tet run, I am finding the the file size (using file size command and getting number of bytes as a result) that the size is not growing the same amount every time.  My size and format of my data being written is identical each time, an array of four double precision numbers.
    The increments I get are as follows, after first write - 44 bytes, after 2nd - 52 bytes, 3rd - 52 bytes, 4th 44 bytes, 5th - 52 bytes, 6th - 52 bytes, 7th - 44 bytes and it appears to maintain this pattern going forward.
    Why would each write operation not be identical in size of bytes.  This means that my basic math for determining the correct file poistion to read only the last 25 data sets will not be simple and if somewhere along the line after I have accumulated hundreds or thousands of data sets, what if the pattern changes.
    Any help on why this is occuring or on a method of working around the problem would be much appreciated.
    Thanks
    Doug
    Doug
    "My only wish is that I am capable of learning each and every day until my last breath."
    Solved!
    Go to Solution.

    I have stripped out the DSC module functions from the vi and attached it here.  I also set default values to all the inputs so it will run with no other inputs.  I also included my current data files (zipped as I have four of them) though the file names are hard coded in the vi so they can be changed to whatever works locally. In fact probably will have to be to modified for the path anyway.
    If you point to a path that has no file, it will create a new one on the first run and the file size will show zero since there is no data in it. It will start to show the changes on each subsequent run.
    As I am creating and appending four different files, each with it's own set of data but always the same format (array of four double precision numbers) and the file size information always increments the same for all four files (as will be seen in the File Size Array) I don't think it is a function of the size of the acutal numbers but something idiosyncracy with how the binary file is created.
    If this proves to be a major hurdle I guess I could try a TDM file but I already got everything else working with this one and need to move on to other tasks.
    Thanks for any continued assistance
    Doug
    Doug
    "My only wish is that I am capable of learning each and every day until my last breath."
    Attachments:
    !_Data_Analysis_Simple.vi ‏40 KB
    SPC.zip ‏2 KB

  • How do I file a complaint about horrible, incompetent and negligent customer service?

    I might sound super rambling but I am very frustrated and just tired of explaining the situation over and over and over.
    On Wednesday, January 21st, I got a call from Verizon Loyalty Department about a "promotion", which I get $25 credit on each line if I upgrade with edge plan. I wasn't sure what phone to change, so I asked them to call me back on Friday. They called me on Thursday, but I couldn't get the call, so I called them on Friday and talked to the customer service. I wasn't still sure about the upgrades, so I asked them about the upgrades with $25 credit would still apply several weeks later if I decide to upgrade, the first representative whom I've talked to looked at my plan and said something like, "Yes, that is absolutely possible. I was looking through your plan, and since you are a loyal customer and ended your 2 year contract with us, I can give you $25 off on your each line. I asked them would I still get the $25 credit for each line when I upgrade to edge plan. He said yes because the $25 off that he is giving me is for the monthly charge and the edge plan $25 credit was for the equipment charges. So Month to Month $25 off was applied on the Jan 24th, and activated on 29th.
    After I finally decided to upgrade my phone, I called Verizon customer service the next week. I do not recall the exact day but on 28th or 29th I called to upgrade it, and the second representative also assured me that the credits were going to happen, and then he offered me to bump down my data to 6 gb from 8 gb to save money because I use less then 6 gb each month. I bumped down to 6gb loyalty plan so I was only paying $60 per month instead of $70 per month. The representative told me I would be only paying around $120 per month. I forgot to ask my sister what phone she wanted to change, so I didn't upgrade it right a way. So only the data plan changed on that day.
    I was extremely busy with my work for few weeks, and I finally called again to upgrade it, the third representative told me different old me that the previous representative was wrong about giving me another $25 credit when I upgrade with edge plan. So I ended up upgrading both of my lines with $25 credit on each line plus $60 for 6gb data. But she said I would be still paying less then what I normally pay, which is around $183. I upgraded and took me few days to receive my phone. I checked my bill and it was showing different than what I was told. I called again and explain all this thing again and the lady adjusted my data plan - 6gb loyalty plan for $50. She said she doesn't know what other representative was doing, but this will fix that I would only pay around $150-160 per month.  After I got my phone, I called verizon to activate my phone (I don't really remember it was before or after, I just talked to them too many times and they have changed my promotions and plans too many times in very short time). He also confirmed $25 credit off for each line, but there was one time tax fee that none of the representative has mentioned while I asked bunch of questions about the upgrading fee and how much it would cost on the first month and etc.)
    After all of that happened, I was settled and didn't think about the payment until I got $290 with only $15 credit on my bill. I called again and asked what happened and the representative told me she doesn't know why this happened and why the previous representatives told you something that weren't true. and I had to go through the explanation again. She said she fixed it and everything was taken care of.
    I checked my bill today. My plan was changed to $90 for 6gb and I was paying $30 more than I originally paying which was around $180 and $50 more than I was supposed to pay. I called the representative today, explained the previous situation and asked why this happened. Basically he told me that all the previous representatives were lying to me. Are you kidding me? They were lying to me? How am I suppose to know if he wasn't "lying" to me? He said only thing he can do is change back to my original plan and amount, and I would pay $6 more than what I used to pay which was about $183.. I asked me if I would get the the 8gb back. He told me that isn't possible. The change did not happen so far. I am tired of calling verizon and more tired of getting different answers from different representative.
    I am seriously concerning about changing my service to different carrier. I have to call the verizon every single month when there is a change in my plan. If they were really lying about the promotion and plan just to sell more service, they should be suspended or fired or something, and I need my money back for overcharged fee and need some kind of compensation for my wasted time and stress I got from this.

    Okay. You are just missing the whole point, and I am not saying anything after this. I did go to the website to read about the edge plan after I got a call from the loyalty department. I asked the questions on some parts I didn't understand (or was confused of) to the representatives. But my main question was whether I was getting $25 credit and in what conditions. They all answered differently to the same question. (My original question - Do I get the $25 credit with edge plan?- One rep. offered me that month to month $25 off before my upgrade. Other rep. confirmed $25 off plus $25 credit with edge and offered bumping down data plan to save extra money. Another rep denied $25 off plus $25 credit with edge but confirmed decrease in my monthly payment by bumping down the data plan. Other rep denied both. You see what I am talking about? I asked one question to begin with: am I getting the $25 credit with edge upgrade plan - and they are the one who offered me different promotions and offers) 
    I also left the part that I actually went to the website and 'researched' the different plans that all the representatives were talking about after I hung up on the phone each time. I joined the forum today because I wanted to know where and how I could file the complaints on verizon customer service after today's call. I should have been more clear on what I was asking, but I thought I was clear enough on my title "How do I file a complaint...?"  Yes I am angry at the fact I didn't get what I thought I was getting, but I am more frustrated the fact every single time I talked to the customer service I get an answer from the rep. I am on the phone, saying "Previous representative you've talked were wrong about this," or "They were lying." The representative, then, would fix my issue, but I would still get the conflicted bills. Don't I suppose to call the customer service to fix it? What's the customer service for if it's not for that?

  • How to download file from application server

    Hi Experts,
                  I developed report and execute in background mode. for this i used Open dataset transfer and close dataset . i got the requried output . But in this case user want downloaded file on presentation server so can anyone tell me How to download file from application server?
    i know it is possible through Tcode CG3Y. but i want code in program.

    This code will download a file to your Client package by package, so it will also work for huge files.
    *& Report  ZBI_DOWNLOAD_APPSERVER_FILE
    REPORT  zbi_download_appserver_file.
    PARAMETERS: lv_as_fn TYPE sapb-sappfad
    DEFAULT '/usr/sap/WBP/DVEBMGS00/work/ZBSPL_R01.CSV'.
    PARAMETERS: lv_cl_fn TYPE string
    DEFAULT 'C:\Users\atsvioli\Desktop\Budget Backups\ZBSPL_R01.CSV'.
    START-OF-SELECTION.
      CONSTANTS blocksize TYPE i VALUE 524287.
      CONSTANTS packagesize TYPE i VALUE 8.
      TYPES ty_datablock(blocksize) TYPE x.
      DATA lv_fil TYPE epsf-epsfilnam.
      DATA lv_dir TYPE epsf-epsdirnam.
      DATA ls_data TYPE ty_datablock.
      DATA lt_data TYPE STANDARD TABLE OF ty_datablock.
      DATA lv_block_len TYPE i.
      DATA lv_package_len TYPE i.
      DATA lv_subrc TYPE sy-subrc.
      DATA lv_msgv1 LIKE sy-msgv1.
      DATA lv_processed_so_far TYPE p.
      DATA lv_append TYPE c.
      DATA lv_status TYPE string.
      DATA lv_filesize TYPE p.
      DATA lv_percent TYPE i.
      "Determine size
      SPLIT lv_as_fn AT '/' INTO lv_dir lv_fil.
      CALL FUNCTION 'EPS_GET_FILE_ATTRIBUTES'
        EXPORTING
          file_name      = lv_fil
          dir_name       = lv_dir
        IMPORTING
          file_size_long = lv_filesize.
      "Open the file on application server
      OPEN DATASET lv_as_fn FOR INPUT IN BINARY MODE MESSAGE lv_msgv1.
      IF sy-subrc <> 0.
        MESSAGE e048(cms) WITH lv_as_fn lv_msgv1 RAISING file_read_error.
        EXIT.
      ENDIF.
      lv_processed_so_far = 0.
      DO.
        REFRESH lt_data.
        lv_package_len = 0.
        DO packagesize TIMES.
          CLEAR ls_data.
          CLEAR lv_block_len.
          READ DATASET lv_as_fn INTO ls_data MAXIMUM LENGTH blocksize LENGTH lv_block_len.
          lv_subrc = sy-subrc.
          IF lv_block_len > 0.
            lv_package_len = lv_package_len + lv_block_len.
            APPEND ls_data TO lt_data.
          ENDIF.
          "End of file
          IF lv_subrc <> 0.
            EXIT.
          ENDIF.
        ENDDO.
        IF lv_package_len > 0.
          "Put file to client
          IF lv_processed_so_far = 0.
            lv_append = ' '.
          ELSE.
            lv_append = 'X'.
          ENDIF.
          CALL FUNCTION 'GUI_DOWNLOAD'
            EXPORTING
              bin_filesize         = lv_package_len
              filename             = lv_cl_fn
              filetype             = 'BIN'
              append               = lv_append
              show_transfer_status = abap_false
            TABLES
              data_tab             = lt_data.
          lv_processed_so_far = lv_processed_so_far + lv_package_len.
          "Status display
          lv_percent = lv_processed_so_far * 100 / lv_filesize.
          lv_status = |{ lv_percent }% - { lv_processed_so_far } bytes downloaded of { lv_filesize }|.
          CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
            EXPORTING          "percentage = lv_percent - will make it fash
              text = lv_status.
        ENDIF.
        "End of file
        IF lv_subrc <> 0.
          EXIT.
        ENDIF.
      ENDDO.
      "Close the file on application server
      CLOSE DATASET lv_as_fn.

  • How to keep file name in print queue when printing crystal report

    We are using VB .Net 2003 + Crystal Report 2008 SP2 up to Fix Pack 2.6
    When the VB program spools crystal report files to print queue, the print queue only shows "Crystal Report" for each document.  How to keep the original file name?  In the past when we were using Crystal Report 11, the original file name can be shown in the print queue.
    Please help because it's so important for operation to see which report is failed in printing when reports are printed in batch.
    Thanks

    Hello,
    Set the PrintOption.JobTitle value for the print job. Here's C# code on how to:
                   System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
                CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
                CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new PrintOptionsClass();
                   pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;          
                   rasPROpts.PrinterName = cboCurrentPrinters.Text;               
                   rasPROpts.PaperSize = (CrPaperSizeEnum)
                        pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
                // this sets the name of the print job
                rasPROpts.JobTitle = "MYPrintJob";
                   rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
                   MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK,MessageBoxIcon.Information );
    Thank you
    Don

  • How to copy file to another server from database using FTP in oracle

    How to copy file to another server from database using FTP in oracle.
    Please do the needfaul.

    Billy  Verreynne  wrote:
    BluShadow wrote:
    Not to mention that some FTP servers can return more than one return message per operation whereas others may return one message for the same operation.I had the problem using the LIST command to determine if a file exists on the server. Cannot be determined via the FTP server's return code. Which means parsing and checking the text response from the server to the command. And this vary from server to server.
    But the basics were quite easy to code. The entire package is 500 lines, includes comments and blank lines for formatting, and supports the basic FTP client command set. Not really a complex piece of software to write - but I found that many developers seem to think that writing network socket software is complex. Not really the case...Mine's a big larger, but incorporates functionality similar to what Chris provided in his, such as being able to use SQL to query a remote file using pipelined functions, or functionality to write the results of a query directly to a remove file.
    :)

  • How To Split File In to Multiple Files With out using B.P.M

    Hi Guys,
    How To Split File In to Multiple Files With out using B.P.M.
    Thanks in advance
    Regards's
    KIran.B

    Hello
    below r the links were u will find message spilitting by graphicaaly i.e without using BPM.
    /people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool
    Sender File Adapter with file conversion  Multimapping --file content conversion with split messg mapping
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2748---- [original link is broken] [original link is broken] [original link is broken]
    multimappig
    /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    hope this resolve your problem
    thank's
    Chetan

Maybe you are looking for

  • HELP! n95 image transfer problem!

    i have recently installed pc suite onto vista. previously pc suite worked fine when i had xp. now when i try to store images from phone to pc it tells me there is an error communicating with phone. pls help!

  • Configuring IDOC to file Scenario in PI 7

    Hello All, I am doing an IDOC to file scenario, all the configuration is done. When i trigger the outbound IDOC, I can see in SXMB_MONI the sender component, sender Namespace, sender interface and reciever component are coming up correctly as configu

  • Cash advance

    Hi Guru’s My client is providing advance without vendor. What is the procedure of advance cash? Eg: - No vendor      Lot of vehicles is taking Rent purpose (for one day)      Cash advance      Cash Payment Passing entry like Vehicle Charges   A/c 200

  • HR Payslip Internal Table

    Hi ABAPERS, I am working on the HR Payslip in PE51. Does anyone know which internal table stores the Earnings and Deductions that are displayed on the HR Payslip? It seems it is not the RT table that contains these. In fact, RT contains the results s

  • How to reference the WindowListener in "class implements WindowListener"

    i need to remove a WindowListener but i dont know how to reference Listeners implented by classes. Thanks for any help in advance! public class MyClass implements WindowListener{ public MyClass(){ frame.addWindowListener(this); public static void Rem