Activating C program on different folder

Hi,
I am trying to activate a C program from within my java program using
Runtime.getRuntime().exec("program name")
this C program is dealing with various files from it's directory - which is different from my
my java's app directory. the C app seems to be unable to deal with these files - because
the operating system (windows 2000) is trying to open these files from within the java app's directory.
does someone knows what should I do?
please help!!!!

Hi ,
look at the Runtime docs :
public Process exec(String command, String[] envp, File dir) throws IOException
This allows you to set the working dir for the process.
Phil

Similar Messages

  • When launching Illustrator on Mac OSX 10.9 I get an erro that the program is no longer supported on PowerPC. I tried moving the plug-ins to a different folder as the Adobe site suggested but no luck. Any ideas how to get this launched again? Same issue fo

    When launching Illustrator on Mac OSX 10.9 I get an error that the program is no longer supported on PowerPC. I tried moving the plug-ins to a different folder as the Adobe site suggested but no luck. Any ideas how to get this launched again? Same issue for Photoshop and InDesign

    You will need to uninstall, run the Cleaner tool and reinstall you adobe applications. Adobe apps don't take kindly to inplace updates of the OS on Macs.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6

  • Archiving/zipping to different folder

    Hello
    Normally the Finder Archive function (accessible e.g. from contextual menu in Finder) archives to a .zip archive in the same folder as the original object being archived.
    The Finder Archive function use BOMArchiveHelper, which is in:
    /System/Library/CoreServices/BOMArchiveHelper.app/Contents/MacOS/BOMArchiveHelpe r
    So the same archiving can be achieved in an AppleScript by the following statement:
    do shell script "/System/Library/CoreServices/BOMArchiveHelper.app/Contents/MacOS/BOMArchiveHel per" "theUnixname"
    where theUnixname is the Unix name of the file or folder being zipped. This works.
    My question is the following: Is there any option to BOMArchiveHelper that permits the resulting file to be in a different folder than the original file or folder? This would permit archiving directly to another disk, e.g. an external hard disk, without first copying the uncompressed files or without using disk utility to make a compressed disk image.
    (The reason I would like to use the zip files is that they are more universal than the compressed disk images. And I want to use BOMArchiveHelper rather than another ZIP program such as ZipIT because the Macintosh structure with resource forks is preserved by BOMArchiveHelper in a way that still permits the ZIP archive to be opened on e.g. a Windows or Linux machine, which is not the case for the MacBinary implementation in ZipIt).
    Thanks in advance

    I think you can use a shell-like command in an AppleScript.
    In this command you could use gzip "sourcefile" > "targetfile"

  • Start webserver in different folder

    I've developed a compiled VI (Smarts-Net.exe) that was built to run in a specific folder (\Smarts-Net), and enabled the webserver to show the Smarts-Net.html page in that same folder.  So far, so good.
    The application received real-time data generated from another of our programs and generates graphics to show 'what's going on'.
    My customers would like to run multiple instances of my program for their customers, but want to isolate their Customer 'A' from Customer 'B' so that they can't view each other's data.  I can start up my applicaiton using different IP ports so that I can have multiple views, but I'd like to further isolate the end-customer's data into different folders.
    I've made a 'manager' program that will create a sub-folder from my main application's folder (\Smarts-Net) so that it would appear like '\Smarts-Net\JobA', and copies all files from the main folder into the new sub-folder.  I then modify the Smarts-Net.ini file with the new folder path and the new port number like this:
    [Smarts-Net]
    server.app.propertiesEnabled=True
    server.ole.enabled=True
    server.tcp.servic="My Computer/VI Server"
    server.vi.propertiesEnabled=True
    WebServer.DirectoryIndex="index.htm"
    WebServer.LogEnabled=True
    WebServer.LogPath=C:\Smarts-Net\Logs\Smarts-Net.log
    WebServer.MimeTypes= (LOTS of Mime types in here ... I left out for this post)
    WebServer.Port=9501
    WebServer.Enabled=True
    WebServer.RootPath=C:\Smarts-Net\JobA
    WebServer.TcpAccess="c+*"
    WebServer.ViAccess="+*"
    DebugServerEnabled=False
    DebugServerWaitOnLaunch=False
    After modifying the .ini file, I start up the application (Smarts-Net.exe) from the new folder.
    This is where I need some help.  If I try to view the VI from another computer using an address like http://snape:9600/JobA/Smarts-Net.html, I get a 'HTTP 404 - File not found' error.  But, if I try it at http://snape:9600/Smarts-Net.html, I get the VI's panel!
    So, it appears that I can change the Port in the .ini file, but not the RootPath.  Does anyone know of a way to get the html to load from a different folder than the one specified when I built the application?
    Solved!
    Go to Solution.

    I'm very glad if I was helpful.
    A word of caution:
    Nothing we have talked about here is a security mechanism. If you have two web servers on different ports they will still be available to anyone. In fact if they serve up the same document root then all web pages will be available at either port. Don't count on this as a way to keep one customer from accessing another customer's pages.
    For example:
    Lets say you set up one instance of your application for customer A. The document root is C:\Smarts-Net. The URL to customer A's page is http://computer:APort/jobA/A'sPage.html.
    Customer B also has a separate instance of the application but it us using the same document root, C:\Smarts-Net. Customer B's URL is http://computer:BPort/jobB/B'sPage.html.
    You have two web servers running on two different ports but since they are serving the same document root all the same pages are available. Customer A could navigate to the URL http://computer:APort/jobB/B'sPage.html.
    If you really need security you will have to setup something a little more sophisticated than just using a different port.
    Nathan
    Message Edited by NathanK on 02-19-2009 02:02 PM

  • Can't drag files from Organizer 13 to different folder

    I recently installed PSE13 on my PC running Windows 8.1.  I've also downloaded the latest update and even the patch which corrected the mouse scrolling problem. Now I have a new problem. When I'm in the Organizer, I am no longer able to drag files to a different folder. For instance, I have a folder on my desktop which contains the pictures and videos I downloaded from my camera. I am able to see these files within the organizer, and the organizer clearly shows that the files are contained within the folder on my desktop. What I want to do within the organizer is to move these files by dragging them to my Pictures folder. The program will no longer allow me to accomplish this task. I use to be able to do this with no problem, but not anymore!!  Is there a fix for this problem???  Thanks!  Jeff

    No, there is no error message. Your second question, asking if I first selected thumbnails, etc., prompted me to go back to the organizer to review exactly what happens when I try to select and drag a file to a new folder. And, because of your question, I have discovered new results: the first time I tried to select a picture, the normal hand appeared, but when I attempted to drag the file to a folder, all I got was the hand drawing a dotted rectangular box, and I could not drag the file to any folder. I tried this two more times with the same result. Then, I discovered that if I click on the far right side of the file thumbnail, I could actually drag it to a different folder. So, now I know precisely where to click on a thumbnail in order to successfully drag it to a folder. However, in previous versions, I could click anywhere on the thumbnail and drag without any problems. So, I will consider this problem "mostly" solved, and hopefully Adobe will address this problem on a future update. Thanks for your help!! Jeff

  • How do I target my Program Files (x86) folder to uninstall applications?

    I've subscribed to Cloud 6, but I first want to uninstall my CS5 products before installing the Cloud apps. I have a 64-bit system and Win 7. There is a Program Files folder and a Program Files (x86) folder where my CS5 app reside. However, I can't seem to get my Win 7 Uninstaller to target the (x86) folder, so I'm stuck. Any advice on how to properly uninstall the programs from that location?

    Have you followed these steps?
    http://helpx.adobe.com/creative-suite/kb/uninstall-creative-suite-cs5-cs5.html#main_Uninst all_Creative_Suite_5_or_CS5_5__Windows_7__Windows_Vista_
    Should be all you need to do.
    I recommend successfully installing and activating CS6 before you uninstall CS5.

  • How can I move or copy a sheet to a different folder?

    How can I move or copy a sheet to a different folder? Can a sheet created in Folder A be moved or copied to Folder B?

    Hi Barry,
    http://www.phespirit.info/montypython/four_yorkshiremen.htm
    As a parody of that Monty Python skit:
    I had an original Apple that I had to plug into a television screen as a monitor. Programs had to be written in BASIC, but I could plot a graph long before MS got out of DOS and function keys. Then I had a Mac Plus with a single floppy disc drive that had me playing "toaster" to swap discs. Then a Mac SE - MacDraw, MacPaint, Hypercard, Word-for-Mac. Luxury! Then a Mac Classic (black and white display, but I swear I could see colours in the fill patterns). Then (sigh) forced to MS by my employer. Finally, my very own MacBook.
    Luxury!
    Regards,
    Ian.

  • Can any one tell me how can I move to a different folder pictures, that I've cloned, without them staying aggregated? They all come together to the other folder and I don't want that- thanks

    Can any one tell me how can I move to a different folder pictures, that I've cloned, without them staying aggregated? They all come together to the other folder and I don't want that… thanks

    There's more to it than that.
    Folders in Aperture do not hold Images.  They hold Projects and Albums.  You cannot put an Image in a Folder without putting it in a Project or an Album inside that Folder.
    The relationship between Projects and Images is special:  every Image must in a Project, and can be in only one Project.
    Images can be in as many Albums you want.  Putting an Image in an Album does not move it from the Project that holds it.
    You can make as many Versions from a Master as you want.
    What you want to do may appear simple to you, but it still much adhere to how Aperture works.  I still can't tell exactly what you are trying to do (specifically: Images don't live in Folders; moving an Image from a Folder is non-sensical).
    It can be very confusing (and frustrating) to get going with Aperture -- but it does work, and can be enormously helpful.  If you haven't, take a look at the video tutorials on Apple's Aperture support site.
    I feel as though I haven't helped you much -- but we need to be using the same names for interface items in order to get anything done -- and my sense is that you still haven't learned the names of the parts.

  • Archiving  file in different folder in sender file adapter

    Hi,
    I have a requirement in witch i have to pick 7 different file from seven different folder.
    for this I am using advance selection tab and defining all the other folder path.
    but my problem is I have to archive the different file in different folder .
    For exm..
    /folder1/file1.txt need to be archive in /archive_filder1/file1.txt
    /folder2/file2.txt need to be archive in /archive_filder2/file2.txt
    /folder3/file3.txt need to be archive in /archive_filder3/file3.txt
    can any one tell me that how to  define the dynamic  archive folder path??.
    regards,
    Navneet

    Hi Navneet
    In File Access parameters --> Target Directory
    Use this type of Directory name
    \XIDEV_STORES\%store%\sapoutbound
    here %store% will be changed accordingly
    e.g. if file will come for store 001 then this %Store% will be replaced by 001 and file will be placed in this 001 folder and if file will come for store 002 then this %Store% will be replaced by 002 and file will be placed in this 002 folder over FTP.
    For to achieve this Go to Advanced tab 
    For Variable Substitution check mark Enable
    Now speciofy the parameter values for Variable Name and Reference
    Under Vriable name specify = store
    Under Reference specify = payload:WP_PLU02,1,IDOC,1,EDI_DC40,1,RCVPRN,1     -
    You have to give full path name here that where this store variable is located into IDOC.
    Hope this example will help you
    Regards
    Dheeraj Kumar

  • How do I set a different folder than the Windows MyDocuments/Downloads folder? I do not use 'My Documents' at all, all my saved files go to other hard drives for storage, and I do not want to bother with the My Docs route. I used to have downloads set to

    I want to set a different folder from the My Documents/Downloads folder for Firefox to put everything I download, like I used to have it. I recently rebuilt my computer and reinstalled everything from WinXP to security software to Firefox, and I cannot find any options anywhere to set a different folder like I used to have it... with the same software, other than it being a newer iteration of Ff. So tell me, am I losing my mind so bad that I just can't remember how I did it before, or have things changed so much that what I want is no longer possible? Please, someone tell me how to set it to do what I want, I can't stand to have what I do on my computer dictated by programmers who only think that they know what people want. If that sounds a little angry, I apologize with the disclaimer that I suffer from Post Traumatic Stress Disorder and therefore cannot handle frustration... and this kind of thing frustrates me to the point of rage.

    Tools > Options - General tab = Downloads
    Set your preferences there.

  • Heap dump file - Generate to a different folder

    Hello,
    When the AS Java iis generating the heap dump file, is it possible to generate it to a different folder rather than the standard one: /usr/sap// ?
    Best regards,
    Gonçalo  Mouro Vaz

    Hello Gonçalo
    I don't think this is possible.
    As per SAP Note 1004255;
    On the first occurrence (only) of an OutOfMemoryError the JVM
    will write a heap dump in the
    /usr/sap/ directory
    Can i ask why you would like it in a different folder?
    Is it a space issue?
    Thanks
    Kenny

  • In Organise Bookmarks/Search I want to move a search result bookmark into a different folder, but it "copies" rather than "moves" - how can I "move" it?

    Having got a list of bookmarks as the result of a Search in "Organise Bookmarks", I want to move one of the resulting bookmarks to a different folder.
    If I move the bookmark into a folder on the left hand pane - it copies it.
    If I hold the shift key down and move it - it copies it.
    If I hold the control key down and move it - it copies it.
    If I hold both the control and shift key down, the icon does change from a "+" sign to an arrow, but - you guessed it - it still copies it.
    All I want to do is a simple move!
    I'm probably doing something daft. Please let me know what it is!
    I'm using Firefox 17.0.1 if that's of any relevance.

    Hello mara1618, go from Firefox button > Bookmarks, touch the folder and when expand all folder bookmarks, drag the bookmark you want to another folder.
    thank you

  • My download are going to a different folder. They usually went to a folder named 'Downloads' and now they go to a folder named 'Temp', Why is this?

    Usually when i download something it goes to a folder named 'Download', however, now they go to a folder named 'Temp'.

    Get info on the drive.  What format?  FAT drives may be behave erratically for heavy-duty use of the kind you are doing. It's okay to leave a flash drive FAT formatted for light use but for heavy-duty file transfer I think you can encounter issues.
    iTunes does not look at files directly.  It maintains a database (library.itl) of the files in its collection.  When you play a track it looks up where that file is located and goes and plays the file in that location.  If you manually move a file or folder used by iTunes that database is no longer correct and you get broken links ( ! ).  If you want to move files or folders with iTunes you have to let iTunes do it.  Since iTunes is organizing your library there isn't much flexibility in what you can do other than move the whole collection to a different folder by changing the media location preference in preferences.
    Lion - Disk Utility - https://discussions.apple.com/message/16925522 - repairing your drive using Disk Utility on Lion's recovery partition.

  • How to save camera image in different folder (other than Camera Roll) in Ios?

    I am developing an App where I am taking pictures from the Camera but all the pictures get stored in the Gallery. I would like to store all the pictures taken in this app to be stored in a different folder so that when users view the pictures in the app, it should show only the pictures taken using the app. Currently, all the pictures of the Gallery are being displayed which I do not want.
    I want to create a folder, store camera pictures taken using the app in this folder then display all the images of the folder in the app.
    Any suggestions would be appreciated.
    Thanks in advance.

    Hi,
    try freshplanet/ANE-ImagePicker · GitHub.

  • How to generate & publish  webhelp html files in different folder than default folder

    Hi All,
    I am new to robo help. I have a requirement to generate & publish webhelp html files in a different folder than default folder.
    Could anyone please tell me the steps to change the folder
    Thanks
    Rashmi

    You change the generate folder and filename in the first field on the first page of the wizard. It must be a folder on your hard disk.
    You change the publish folder in the last page of the wizard. Anywhere you like.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for

  • Why does HP India defaults on offers they make when they sell printers?

    I bought a printer on 1st July 2012. The date on the invoice was 07/01/2012 (in mm/dd/yyyy format). The service center at HP claimed that the date was "wrong" and they use that excuse to not give me the backpack that was part of the deal when I bough

  • Color Adjust Filter and Paint Bucket not available in CS3

    I recently noticed that Colors in the Filter menu is not available in my install of Illustrator CS3. I also noticed that the Paint Bucket tool is missing. Both appear to be in the Plug-ins folder in their respective folders (Illustrator Filters and T

  • It appears everybody loves the new Quick Look. I hate it. Maybe I'm wrong?

    One of my biggest gripes with Quick Look is the apparent inability to drag open the window and click through the images at their original size -- instead if the image is lower res than the size of the window it scales up and gets all pixelated. I LOV

  • Spotlight: Search in content working on substrings

    If you search for content with Spotlight, you have to type the search phrase from the beginning, i.e. searching for files containing the word homework you could search for home or homework but not for work. Capitalization is important. So homeWork ca

  • I get "medium write error" when trying to burn cds

    I tried to burn a playlist from iTunes and it burned one copy, then when I tried to burn a second copy my computer made alot of noise during the "initializing/finishing" stage, spit the cd out and said "medium write error" - i've tried another cd, an