How thinApped apps can read other files and write to them?

Hello

I have a problem here.

In my application (which is developed in VB6 and its called InventoryApp) he uses a file of MS Access database as the backend for data operations. Even more, it reads "info.lic" file to authenticate users of authorized machines. Everything works perfectly during the era pre-thinApp but when I used thinApp to make my portable application, all the path used to access the data file and the license file was wrong bcz previously I used "App.Path" command inside my application VB code to get the current path of the bcz my application data file exe and license files are present in the same directory of my application exe.

After looking on Google to find how to get the current path of the exe to my application within my code when the application runs in the environment ThinApped, I had the 'GetEnvironmentVar("TS_ORIGIN")' api functions to get the current path of my exe inside my code.

But the problem now is that

I often use to install my application in the reader "C:\". "like"C:\Program Files\InventoryApp\Myapp.exe ".

But in a machine if I run "MyApp.exe" of the path above, it will create this path

"C:\Documents and Settings\xyz\Application Data\Thinstall\InventoryApp\%ProgramFile%" and automatically my data file and the license file will be copied in this way and MyApp.exe will find all files in this path. Even I have change some data in my data file "" C:\Program Files\InventoryApp"I will not reflect the change.

But in some Machines, it works perfectly that is, even if the application is ThinApped, it will read only from the path that is to call function GetEnvironmentVar ("TS_ORIGIN"). And no more "ProgramFile %" is created and no more data is copied, it will only create up to the path C:\Documents and Settings\xyz\Application Data\Thinstall\InventoryApp\%SystemRoot%"and some registry files.

How to force (through coding) ThinApped application to read in a specific place because that would solve my problem, I suppose?

Looking forward to hear some useful tips

The only reason for ThinApp put your files in the bin to sand is because the files are either virtual (exists within the virtual environment) or is locally present, but in a place where you use WriteCopy as the Mode of insulation AND your application opens the file with write access (so it says the changes would happen to the file). If the application opens the file with read access only they won't end up in the sandbox.

Possible work around would be to ensure that you only access the files with read access or change isolation merged Mode if the files are present on the spot.

I do not understand why you are having a different behaviour on different machines. This doesn't really sense.

When you change the Mode of Isolation please make sure sure delete you the sandbox, because we cache the Modes of insulation in the sandbox.

Tags: VMware

Similar Questions

  • ODI - read CSV file and write to the Oracle table

    Hello world

    After 4 years, I started to work again with ODI, and I'm completely lost.

    I need help, I don't know what to use for each step, interfaces, variables, procedures...

    What I have to do is the following:

    (1) reading a CSV file-> I have the topologies and the model defined

    (2) assess whether there is a field of this CSV file in TABLE A-> who do not exist in the table is ignored (I tried with an interface joining the csv with the TABLE model a model and recording the result in a temporary data store)

    Evaluate 3) I need to update TABLE C and if not I need to INSERT if another field that CSV exists in TABLE B-> if there

    Could someone help me with what use?

    Thanks in advance

    Hi how are you?

    You must:

    Create an interface with the CSV template in the source and a RDBM table in the target (I'll assume you are using Oracle). Any type of filter or the transformation must be defined to be run in the stadium. (you must use a LKM for SQL file and add an IKM Sql control (it is best to trim them and insert the data when it cames to a file if you want after this process, you may have an incremental update to maintain history or something like that).)

    For validation, you will use a reference constraints in the model of the oracle table: (for this you need a CKM Oracle to check constraints)

    Then, you must select the table that you sponsor and in the column, you choose which column you will match.

    To article 3, you repeat the above process.

    And that's all. Pretty easy. If you do not have the two tables that you need to use your validation that you need to load before loading the CSV file you need valid.

    Hope this can help you

  • URGENT::opening multiple files - i have 3 files in my directory... When I run the code I can open a file and read it... but the while loop get blocked after the first iteration... can someone me help or give some indications

    bbmChatDB of public database;

    public static FileConnection fconnRead = null;
    public static String fileReadData = "";
    public static InputStream is = null;
    data Byte [] = null;
    DataInputStream is = null;

    Here is my code...

    I have 3 files in my directory... When I run the code I can open a file and read it... but the while loop get blocked after the first iteration... can someone me help or give some indications

    try {}

    FileConnection fc = Connector.open("file:///store/home/user/documents/BSM/") (FileConnection); "

    If (fc.exists ()) {}

    Enumeration e = fc.list ();

    While (e.hasMoreElements ()) {}

    System.out.println ("files are:" + (String) e.nextElement ());

    play this file
    StringBuffer stringBuff = new StringBuffer();
    try {}
    System.out.println ("opening file")-;
    System.out.println ("file name is:" + (String) e.nextElement ());
    fconnRead = Connector.open("file:///store/home/user/documents/BSM/(String)e.nextElement(),Connector.READ_WRITE) (FileConnection);
    System.out.println ("data length")-;
    If (fconnRead.exists ()) {}
    is = fconnRead.openDataInputStream ();
    data = IOUtilities.streamToBytes (is);
    Ddd = new String string (data);
    fileReadData = ddd.toString ();
    System.out.println ("length of data:" + fileReadData.length ());
    System.out.println ("read data :" + fileReadData);

    }

    } catch (IOException ee) {}
    ee.printStackTrace ();
    System.out.println ("Exception in the read data :")
    + ee.getMessage ());
    }

    }
    }

    } catch (IOException e) {}

    e.printStackTrace ();
    }

    {Finally

    try {}
    If (is! = null) {}
    is. Close();
    }
    System.out.println ("is closed...");
    } catch (IOException e1) {}

    E1. PrintStackTrace();
    }

    If (fconnRead! = null) {}
    try {}
    fconnRead.close ();
    } catch (Exception e) {}
    System.out.println (try ());
    }

    }

    }

    You can recode this treatment so that it uses only:

    e.nextElement ())

    Once a loop iteration.

    Directly at the start saying something like:

    String fileName = e.nextElement ());

    and use fileName everywhere in your loop.

    Also be aware that printStackTrace() will do nothing in your situation, it only works if you catch Throwable.  So make sure you something output all your catches exception and also have a catch (Throwable t) to catch the things you miss, as follows:

    {} catch (Throwable t)

    t.printStackTrace ();

    System.out.println ("Eception exception:" + t.toString ());

    }

    I think your code is thrown an exception and you don't see it.

  • I can't find a newer version of adobe flash player for ubuntu 14.04, I tried to use the apt version but it wouldn't work and I don't know how to use the tar.gz files and install, I think the current version to .deb

    I can't find a newer version of adobe flash player for ubuntu 14.04, I tried to use the apt version but it wouldn't work and I don't know how to use the tar.gz files and install, I think the current version to .deb

    Hi LF12,.

    The latest version of Flash Player for Linux is 11.2.202.400.  The current versions of Flash Player are displayed here http://www.adobe.com/software/flash/about/. The versions on the page are updated with each new version.

    --

    Maria

  • How to select all the other files in a folder?

    I have the folder with 1200 jpg - each 1 a 24 fps movie image. I want to select other images to import in my animation program manager (so my film output will be 12 fps)

    How easily - without having to buy an app - select all OTHER files in the folder?

    (for example some thing help Automator/rename? idk...)

    TIA!

    The Finder, choose utilities go to menu, open the Script Editor and run a script such as:

    Tell application "Finder".

    timeout to 600 seconds

    Set the_files to {}

    Repeat with this_file 1 (count files of the window 1) by 2

    Set the the_files the_files & (this_file window 1 as an alias of the file)

    end repeat

    Select the_files

    end time-out

    tell the end

    (144637)

  • Reading an XML file and write the content in another file xml in java

    Hello

    I'm new to xml parsing. My requirement is that I get a message (xml) using ibm MQ in the ByteArrayInputStream format. I read this xml message and write to another file.

    To do this, I create a CEP.

    First of all, I used simple reading and writing concept, but the output is "java.io.FileInputStream@3e25a5".
    Example of xml file
    -< customer >
    < > 1234 ClientId < / ClientId >
    STechnology < ClientName > < / ClientName >
    < DTU_ID > 567 < / DTU_ID >
    < ClientStatus > ACTIVE < / ClientStatus >
    -< LEAccount >
    < Customer > 678989 < / customer >
    < > 56743 LEId < / LEId >
    -< account >
    < AccountNumber > 9876543678 < / account number >
    < / account >
    < / LEAccount >
    -< Service >
    Y2Y < Cindicator > < / Cindicator >
    < PrefCode > 980 < / PrefCode >
    < BSCode > 876 < / BSCode >
    < MandatoryContent > MSP < / MandatoryContent >
    < / service >
    < / customer >

    Code:


    import java.io.ByteArrayInputStream;
    import java.io.FileInputStream;
    to import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;

    public class ByteArrayInputStreamToXml {}

    Public Shared Sub main (String [] GIS) throws IOException {}

    InputStream inputStream = new FileInputStream("C:\\soft\\test2\\sample1.xml");
    currentXMLBytes Byte = inputStream.toString () .getBytes ();
    ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream (currentXMLBytes);

    OutputStream out = new FileOutputStream("C:\\soft\\test\\data.xml");
    int read = 0;
    ubyte bytes [] = new byte [1024];

    While ((read = byteArrayInputStream.read (bytes))! = - 1) {}
    out. Write (bytes, 0, read);
    out. Write ("\n");
    }

    inputStream.close ();
    out. Flush();
    out. Close();

    System.out.println ("new file created!");

    }

    }

    Please suggest me how can I use DOM/SAX parser, I see several code on the net to read the xml file using SAX/DOM parser, but write an xml file after reading using ByteArrayInputStream I don't get. Assistance through some link examples will also be useful for me.

    Thank you
    Sumit

    Published by: user8687839 on April 30, 2012 02:37

    Published by: user8687839 on April 30, 2012 02:43

    user8687839 wrote:
    But the file is coming thanks to a queue and byte format. Must read the byte, and write to a file. So, how I tried to read the byte using the code above. Please suggest me the correct way.

    Simply write the bytes of the contents of the queue directly to a FileOutputStream. Still no need to SAX or DOM!

    Pseudo-code-

    Open a FileOutputStream .
    
    Until all the bytes of the queue have been read
        read some bytes from the queue.
        wite these bytes to the FileOutputStream.
    
    Close the FileOutputStream.
    

    Published by: sabre150 on April 30, 2012 11:30

  • I need to learn how to remove trojan my computer files and the registry.

    Original title: cleaning your pc

    I need to learn how to remove trojan my computer files and the registry. There is a financial has now attached ittibu or something. and how to remove the event source errors and all that is connected to this.

    If you make financial transactions online and feel your system has been compromised, the more experienced people will recommend wipe you your HARD drive and reinstall your XP from scratch, but that is not always possible and of course is up to you depending on how you feel about this (you need to feel good about it).

    If you still think your system may be achieved a malware, I would do these things before you start any troubleshooting effort:

    Download, install, update and do a full scan with these free malware detection programs at:

    Malwarebytes (MMFA): http://malwarebytes.org/
    SUPERAntiSpyware: (SAS): http://www.superantispyware.com/

    They can be uninstalled later if you wish.

    Download and run Hitman Pro here and during installation to be 100% sure to refuse the installation of toolbars, decline any e-mail options, nothing to do with Bing or MSN, perform a scan time, accept no e-mail and activate the free license:

    http://www.SurfRight.nl/en/downloads/ (make sure you get the free version)

    Download and run TDSSKiller from Kaspersky:
    http://support.Kaspersky.com/viruses/solutions?QID=208280684

    The scans by operating clean, then to solve any problems.

    If you still think that you have any questions, then proceed as follows:

    Since the Microsoft Answers forum does not have any kind of information system request when a new question is asked, we know absolutely nothing about your system.  Not knowing the basic information a problem prolongs the frustration and the agony of these issues.

    Thank you MS Answers, allowing the resolution of simple problems as frustrating and a lot of time as possible.

    Provide information on your system, the better you can:

    What is your system brand and model?

    What is your Version of XP and the Service Pack?

    What is your Internet browser and version?

    Your system's disks IDE or SATA drives?

    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..

    The question was preceded by a loss of power, aborted reboot or abnormal termination?  (this includes the plug pulling, buttons power, remove the battery, etc.)

    The afflicted system has a working CD/DVD (internal or external) drive?

    You have a genuine XP installation CD bootable, which is the same Service as your installed Service Pack (this is not the same as any recovery CD provided with your system)?

    Do you see that you think not you should see and when you see it?

    What do not you think that you should see?

    If the system works, what do you think might have changed since the last time it did not work properly?

    If you need help interpreting your logs in Event Viewer, follow these steps:

    Here is a method to display specific information about individual events.

    To view the logs in Event Viewer, click Start, settings, Control Panel, administrative tools, event viewer.

    A shortcut to the event viewer is to click on start, run and enter in the box:

    %SystemRoot%\system32\eventvwr.msc

    Click OK to launch the event viewer.

    The most interesting newspapers are usually the system and Application logs.

    Some newspapers such as security and Internet Explorer may be completely empty or have just a few items.  The default settings for XP wants do not connect all this activity, unless you need to solve a problem in these areas.  If you enable logging for them the papers fill up quickly and could adversely affect the performance of your system with all the extras (often unnecessary) activity.

    If you have Microsoft Office installed, it has its own newspapers, and they can be empty or occasional boring activity very little or, if there is no problem with your desktop applications.  It's normal.

    Not every event is a problem, some are informational messages that things work very well, and some are warnings.

    However, no event should defy reasonable explanation.

    Each event is sorted by Date and time.  Errors will be red Xs, warnings will have yellow! s.
    Informational messages have white is.  Not every error or warning event means that there is a serious question.

    Some are excusable at boot time when Windows starts.  Try to find only the events to the date and time around your problem.

    If you double-click on an event, it will open a window of properties with more information.  On the right are black up and down arrow keys to scroll through the open events. The third button that looks like two overlapping pages is used to copy the details of the event in your Windows Clipboard.

    When you find an interesting event that occurred at the time of your question, click on the third button at the top and arrows to copy the details and then you can paste the details (right click, paste or CTRL-V) the text in detail here for analysis.  Remove all personal information from your information after you paste If you are forced to do so.

    If you paste an event, it will look something like this annoying system startup event:

    Event type: Information
    Event source: Service Control Manager
    Event category: no
    Event ID: 7035
    Date: 14/07/2010
    Time: 17:54:18
    User: Jose
    Computer: computer

    Description:
    The Remote Access Connection Manager service was sent successfully a starting control.

    To get a fresh start on any log of the event viewer, you can choose to clear the log (the log backup is available), and then reproduce your problem, then just look at the events around your show and troubleshoot events that are happening when you have your question.

  • How to convert MP4 to WMA files and MP3 files.

    How to convert MP4 to WMA files and MP3 files.

    Hello

    Free M4a to MP3 Converter 6.2 NEW!
    Convert AAC to MP3 and M4a to MP3
    http://www.ManiacTools.com/soft/M4A-to-MP3-Converter/

    Convert m4a to mp3 - free
    http://www.MP3-CD-converter.com/convert_mp3/free_convert_m4a_to_mp3.html

    mass convert m4p m4a to mp3 freeware
    http://www.Giveawayoftheday.com/mass+convert+M4P+M4A+to+MP3+freeware/

    Of many freeware converters
    http://www.MP3-Converter.com/mp3_converter_freeware.htm

    Free Mp3 Wma Converter V1.8
    http://koyotstar.free.fr/indexEn.html

    Free MP3 WMA WAV Converter
    http://www.nbxsoft.com/MP3-Converter.php

    Others are using Google and BING.

    -------------------------------------------------------------

    Plenty of capable edition

    Audacity - free
    http://Audacity.sourceforge.NET/

    Free Audio Editor 2011 - free
    http://www.free-audio-editor.com/

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • HOW TO MAKE ICONS FOR ALL FILES AND FOLDERS IN LARGE WINDOW 7

    HOW TO MAKE ICONS FOR ALL FILES AND FOLDERS IN LARGE WINDOW 7

    You can try this: -.

    Start-> Control Panel-> display
    From there, you can select medium or large. This will be the size of everything on the screen.
  • Receive the error message "you have been connected with a temporary profile, in this profile, you can access saved files and something new created or added to this profile will not be saved"

    Original title: temporary profile

    I was wondering if anyone can help... I have a compaq laptop, windows 8 and the last few times ive turned on n signed in its took much longer than usual and connect to a temporary profile where it seems that everything I had there before such as files and photos have already disappeared. But it then opens with a message saying something along the lines of. . "You have been logged on with a temporary profile, in this profile, you can access saved files and any new tjing created or added to this profile will not be saved" does anyone know how solve this...

    Hi Lucie,.

    Activation of the built-in Administrator account can help get the problem solved.

    Perform the steps suggested by Pinaki displayed from the link below and see if it helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_8-system/Windows-8-keeps-loading-with-temporary-profile/583abee6-645D-42a1-88da-063547c6eea0

    Answer please if you have any questions.

  • How to download an Adobe PDF file and get it converted to a Word document?

    How to download an Adobe PDF file and get it converted to a Word document?

    Download: you just download as you would any other document.

    Convert into Word: either by using the online ExportPDF, or Acrobat.

  • How to get all the style of paragraphs and their policies of an indesign file and write all the info with info para in a txt file with scripts

    @

    How to get everyone how to get all the style of paragraphs and their policies of an indesign file and write all the info with info para in a txt file with scriptingstyle and their policies of an indesign file and write all the info with info para in a txt file with scripts

    Hello

    Try this,

    var doc = app.activeDocument,
        pstyles = doc.allParagraphStyles,
        report = "";
    for(var i =0;i
    

    Kind regards

    Cognet

  • How to store characters in result file and display on front panel

    Hello

    currently I am working on the FPGA project.i want data acquired from FPGA board.i want to know on how to store characters to the file and contineous each character display on the façade in the string format.

    I'm full up to characters on the front display, but display characters only when I want all characters in string format.

    I don't see how this question fits in any digital i/o, but it looks like you just need a change of register with the concantanate string function.

  • I lost all my folders and files from all contexts of my. Is there a way I can find my file and contects and transfer them to my new email address?

    folder and transfer contects

    Some used body my e-mail and now I have to create a new account. I lost all my folders and files all my contects.is there anyway I can find my file and contects and transfer them to my e.mail new address, I am one who is suffring now .i should add every thing from the bigning.i had this acct almost 10 years.

    If you use Outlook Express, then locate the *.wab computer.  If this is not the case, then you must be specific to the subject what email program you use, and what form of e-mail account you have and what operating system you are using, as your questions depend on this, and we have no idea if not.

    Steve

  • How to find all the old files and documents on the hard drive

    Original title: how to find a file

    How to find all THE old files and documents on the hard drive

    Hello

    -Are the old hidden files?

    I recommend you follow the steps in these articles for help.

    Show hidden files
    Find a file or folder

Maybe you are looking for

  • Impossible to get to a certain website

    When I go to this site: http://www.ubuntu.com/download/alternative-downloads I get the fine site. However when I try to select one of the downloads torrent Ubuntu, I get the message "ERROR server has not responded." When I use another browser (Chrome

  • I have a pb with windows install, impossible to reinstall

    I did set it up to the acquisition of an Iphone 4 s. pour, I iTunes installer from Apple. Impossible to download this software, the cause? Windows install that disappeared and cannot find how to install. I get an error message "space for" insufficien

  • HP laptop warranty repair

    I just want to share my (very) bad experience with the customer service HP regarding the sending of your laptop for repair: My laptop went dead due to software HP Assistant updated my BIOS (it seems to be successful until I rebooted my laptop). Read

  • several applications of internet Explorer in the Task Manager

    Why would my task manager of show several internet explore? How can I fix it?

  • New version and error messages.

    Tried to upgrade windows 7 w/disc received compatible issue more recent version current version of windows try to upgrade, says also 32 bits can not be upgraded to 64-bit version get 32-bit version, but my drive contains 32 bits. Could this be connec