Help withcalling Windows *.exe programs that require a Windows account

I am trying to use robocopy.exe (basically a better version of xcopy) to copy files from \\serverA\sahrename to \\serverB\\sharename from serverC running the java program. Here is my code:
Process p = Runtime.getRuntime().exec("robocopy \\\\serverA\\sharename \\\\serverb\\sharename *.*");This failes with an error code of 2(whatever that means). When I run the same command from the command line, it works fine.
robocpy.exe uses my login credentials to access the network share drives. The share drives are set up to give my user full access.
So the question is...
Can I run a Java program as a Windows user? I can't install my program as a Windows service because I need to run the program on demand, and not all the time.
Thanks!

I thought it was pretty clear that I was specificying a path: \\serverA\sharename This is a share path in Windows, and they do not have drive letters. Don't confuse a mapped drive with a share drive. A mapped drive is accessed using a drive letter such as Y:\dirname whereas a share is access by \\servername\sharename
This is from the robocopy doc
Examples:
:: Copy files from one server to another
ROBOCOPY \\Server1\reports \\Server2\backup *.doc /S /NPAs you can see, the only path specified is a share path.
I did take the advice of the other posters, and reported that it made no difference with a drive letter, it still failed.
Yes, I do know that my path is correct, because , again, like I stated in my post, it works on the command line. The same exact command works on the command line.
dcminter, does have a high post count give one the right to make unhelpful comments? Also, read my post closer next time before responding.

Similar Messages

  • Installation problem any program that requires Adobe Air

    Installation problem
    I just purchased a new HP Pavilion Laptop running windows 8
    If I try to install any program that requires Adobe Air I get a failure message that says
    "Sorry an error has occured
    The applcation could not be installed because the installer file is damaged.  Try obtaining a new installer  file for the applciation author"
    I have version 14.0.0.110 of Adobe Air Installed.  
    I have installed all widows updates.
    I have removed and re installed Adobe Air but the problem persists
    Very frustrating problem, any help or direction is appreciated

    I have a similar problem and a possible workaround. Take a look at my reply: Installing air applications returns error

  • My MacBook Pro will not open any application or program that requires internet, even though I am connected to the web.

    My MacBook Pro will not open any app or program that requires Internet, even though I am connected to the web. I recently installed Norton AntiVirus and think it may have changed a setting that I couldn't find. I uninstalled Norton and it didn't help. Every time I open Safari, iTunes or any other program that tries to connect to the Internet, it crashes. Strangely enough, Skype still works, but nothing else.
    I have OSx 10.6.8.
    I have tried erasing plists, and all the standard troubleshooting, ie resetting modem, restarting computer, reloading Safari from disk.
    Any help would be greatly appreciated. Thank you in advance.

    Change your router channel.  Sometimes this is all you will have to do.
    Power cycling the router.  Read the router's user manual or contact their tech support for instructions.
    System Preferences/Internet & Network/Network
    Unlock the padlock
    Locations:  Automatic
    Highlight Airport
    Click the Assist Me button
    In the popup window click the Diagnostic button.
    System Preferences/Network- Unlock padlock.  Highlight Airport.  Network Name-select your name.  Click on the Advanced button.  Airport/Preferred Networks-delete all that is not your network.
    Place a check mark next to "Remember networks this computer has joined."  Click the OK button and lock the padlock.  Restart your computer.
    http://support.apple.com/kb/TS1920 Mac OS: How to release and renew a DHCP lease
    No internet connection (wireless)
    Check to see if an extra entry is present in the DNS Tab for your wireless connection (System Preferences/Network/Airport/Advanced/DNS).
    Delete all extra entries that you find.
    Place a check mark next to "Remember networks this computer has joined."
    Other resources to check into:
    Troubleshooting Wi-Fi issues in OS X Lion and Mac OS X v10.6
    Netspot
    How to diagnose and resolve Wi-Fi slow-downs
    Pv6 troubleshooting
    Mac OS X 10.6 Help:  Solving problems with connecting to the Internet
    What Affects Wireless Internet?
    Solutions for connecting to the Internet, setting up a small network, and troubleshooting
    I uninstalled Norton and it didn't help.
    To properly uninstall Norton software follow these instructions - Locate Symantic Solutions folder inside the Applications folder at the root level of your HD, launch the Symantec Uninstaller application, select the Symantec AntiVirus Corporate, Norton AntiVirus & Norton AntiVirus Auto-Protect entries and click the Uninstall button. 
    Confirm your decision when prompted and then enter your administrator password in the space provided.
    Retart your computer & Norton should be gone for good.
    If the above does not work, download a copy of Symantec’s RemoveSymantecMacFiles removal utility.  This utility will launch Terminal & remove the Norton components.

  • Programs that require a network connection won't work because there is no virtual IP address available for this session.

    Programs that require a network connection won't work because there is no virtual IP address available for this session.  Per application IP virtualization is enabled.
    There are in fact available IP address's within the dhcp scope.  Before I dig to deep into root cause.. Could the problem be RDS CAL licensing running out, or isn't that not a symptom of my error message?

    Hi,
    Thank you for posting in Windows Server Forum.
    As per my research, there is no any issue related to RDS CAL licensing. Prior to the issue which you are facing, there are some basic setting which need to configure.
    Application Compatibility – Turn on Remote Desktop IP virtualization
    Some applications require a unique IP address, which is by default logically not the case if the application is running on RD Session Host. To solve this issue, Remote Desktop IP Virtualization is introduced. With this setting you enable the IP virtualization
    feature. When enabling this setting you need to specify if the virtual IP is provided per session or per program. When using per program you need to define the executable to which an IP address should be configured. Desktop IP virtualization also needs the
    configuration of the next setting.
    Application Compatibility – Select the network adapter to be used for Remote Desktop IP Virtualization
    When you need to use Remote Desktop IP virtualization configuring this setting is mandatory. You need to specify the IP address of the Network Interface Card which should be used for this feature. Besides the IP address you need also to specify the network
    mask using the slash notation, for example 192.168.77.201/24.
    Application Compatibility – Do not use Remote Desktop Session Host server IP address when virtual IP address is not available
    More information:
    Microsoft RDS Policies explained (Part 2)
    http://www.virtualizationadmin.com/articles-tutorials/vdi-articles/microsoft-hyper-v/microsoft-rds-policies-explained-part2.html
    Configuring Remote Desktop IP Virtualization II
    http://blogs.msdn.com/b/rds/archive/2009/07/15/configuring-remote-desktop-ip-virtualization-ii.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • I have a program that requires Java 6.  I am running 10.8.2, How do I remove Java 7 to run this program?

    I have a program that requires Java 6.  I am running 10.8.2, How do I remove Java 7 to run this program?

    Try going to the Oracle site - they did have a page showing how to remove Java 7 using the terminal program.
    I followed their instructions and it didn't work for me, but you may have better skills and luck than I.
    This was my starign point;
    http://www.java.com/en/download/help/mac_uninstall_java.xml
    Let us know if this works.

  • My Mac Pro has a 10.5.8 version, I need to upgrade to 10.6 to be able to upgrade to OS Lion and other programs that require 10.6 or newer

    My Mac Pro has a 10.5.8 version, I need to upgrade to 10.6 to be able to upgrade to OS Lion and other programs that require 10.6 or newer

    It's not your wording that's at issue. It's the incorrect information you provided. Go back and read my reply.
    I'm sorry but I can't help your mis-wording. I can only make sense from what you have written. Your location is the UK so I must assume English is your first language without other information to go by.
    If you wrote the same thing a hundred times in one day, then you'd use copy and paste, too. So don't insult those of us who do.

  • I have a program that requires cancel, details or continue. It appears to be stuck and will not let me slide to unlock or slide to close.  How do I restart the ipad?

    I have a program that requires cancel, details or continue. It appears to be stuck and will not let me slide to unlock or slide to close.  How do I restart the ipad?

    Hi there, welcome to the site,
    I have posted a link below which has instructions on how to do this. They are quite simple, so take a look.
    iPad not responding
    Regards,
    Nathan

  • I have a program that requires Java...which won't open...says it can't detect it...I've uninstalled and re-installed but still the same problem.

    I have a program that requires Java, but when I go to launch the program...the Java sign just keeps searching, but my computer says
    that it can't detect Java..I have uninstalled and reinstalled Java, and its updates...any ideas? I can open this program at school, but not on my Imac.

    Without an product info, such as OS, this is just a guess:
    MadMAC0 posted at https://discussions.apple.com/message/20107182?ac_cid=tw123456#20107182 that:
    Apple has posted (10/22/12) the approved solution for restoring the Java 6 plug-in:
    Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality.

  • What app do you use on an iPad to allow access to programs that require flash, such as Math XL?

    What app do you use on an iPad to allow access to programs that require flash, such as Math XL?

    Adobe has not made a version of Flash for the iPad.
    Kappy explains why. https://discussions.apple.com/message/19446567#19446567
    5 Flash Player Alternatives http://www.techshout.com/features/2011/01/flash-player-for-ipad-apps/
    Top 4 browsers supports flash player on iPad and iPhone
    http://mashtips.com/flash-player-ios/
     Cheers, Tom

  • HT5910 Help me find a program that will allow me to tag files with color over file name and not just a small dot that is not easy to see.

    Need help to find program that allows me to relabel files with a bold color that is easy to recognize and not just a small nearly invisible dot at the end of the line.

    That's one of the many features in the feature-packed "Finder Sustitiute" file brower program, Path Finder, by CocoaTech . It's extremely powerful, with enhanced searching, file list filtering, and batch file operations. It also has an amazing preview mode for most all file types. 

  • Help regarding with a program that calculates change for a cashier.

    I am seeking help for a java script or program that can answer my problem:
    Write a program that calculates change for a cashier. The program requests the cost of the item. The user then types in the cost. The program then outputs the cost of the item including the sales tax (use 6% as the sales tax value). The program next request and recieves the amount tendered by the customer. Finally, the program outputs a summary of all figures, including the amount of change due to the customer. (change . java)
    change . java has the following attributes and methods:
    double costs; doublegetCosts ( ) void setCost (double x)
    double tax; doublegetTax ( ) void setTax (double x)
    double payment; doublegetPayment ( ) void setpayment (double x)
    *rite another program that will have an instance of change . java. Call the file as cashier.java
    *Public Cashier {
    public void static main (string27argc
    change x ;
    x = new change ( ) ;
    * cashier . java will use the attributes and methods stated on change java via the instance of change inside cashier.
    Please I have no idea for java, I am student who really needs help on this. If anyone knows how to do this please reply to this topic!
    Thank you

    the correct way to get help in forums like this is to post
    the specific problem you have, along with what you have tried
    and details of the output you expect Vs the output you get.
    simply posting the assignment makes it look like just another
    "do my homework for me" plea - even though it may not be.

  • Need to run a program that requires windows... do not want to buy windows!

    We have been very happy Mac users for years now- recently I purchased some school software for my son (Switched on Schoolhouse) and it only runs in a Windows environment! I am so disappointed with this, but on further investigation saw that I could run windows ( I do NOT want to resort to this) just to run this ONE program!
    I saw somewhere that there are emulators out there that allow you to run this software on a mac without needing to install windows at all- they failed to mention which one they were using and I am very inexperienced about this and would love if somebody could point me in the right direction!

    Hi and welcome to Discussions,
    I concur with the recommendation of Crossover.
    A fairly new addition is Macindows http://www.pioneeringsoftware.co.uk/pages/products
    Since both offer time-limited trial versions, maybe try them for yourself to see which one better fits your needs.
    regards
    Stefan

  • Help with running programs that require admin rights to laptop

    We are not able to run java, flash, or shockwave on our laptops unless we
    log into the workstation first as an administrator. Is there a way to fix
    this so that the students do not have to log onto the workstation first as
    administrator?
    Thanks,
    Kathy

    Originally Posted by Kathy
    We are not able to run java, flash, or shockwave on our laptops unless we
    log into the workstation first as an administrator. Is there a way to fix
    this so that the students do not have to log onto the workstation first as
    administrator?
    Thanks,
    Kathy
    Hi Kathy, we have have a product that enables you to remove admin rights on XP/Vista by elevating ActiveX controls, apps, scripts etc Avecto - Eliminate Admin Rights, Implement Least Privilege

  • I use the browser Chrome OS Vista. I try to open a program that requires access to the microphone  but popup does not appear, I can not give permission to the program and can not start it .. can you help me?

    Can anyone tell me why not sign-up appears asking for permission?

    Chrome uses its own Flash Player. It's called PepperFlash, and it doesn't play well with NPAPI apps and pages, because it's a PPAPI plug-in.
    Go into your Chrome Settings. (chrome://settings in the address bar)
    Click "Show advanced settings" and go to Privacy.
    Click Content Settings...
    Check your Media settings and Unsandboxed plug-in access. Your camera should be allowed, and plug-ins should be too.
    If they are and it still gives you trouble, download the Flash Player Plug-in (All other browsers).
    Install it.
    Launch Chrome again.
    Type chrome://plugins in the address bar.
    Click the "+" for Details at the top right, and scroll to Adobe Flash Player.
    You'll see two (2) plug-ins listed; PepperFlash and the one you just installed.
    Disable PepperFlash.
    Close Chrome and relaunch it. This will force it to "fall back" on the standard plug-in which should work.

  • I have a program that requires a Java plugin version 1.6.0_17 can you tell me where to find it?

    I need this particular version, but have no clue how or where to find it. I am operating under Windows 7 currently. Can someone point me in the right direction?? Thanks in advance1

    You can download Java Plugin Version 1.6.0_17 (as well as many other versions old and new) by visiting 'File Hippo' at this link:
    [[http://preview.tinyurl.com/btg95oh|Java Oracle Plugins]]
    Please keep in mind however that the Firefox Java Plugin has blocked JRE versions below 1.6.0_31 or between 1.7.0 and 1.7.0_2. As of April 2012 some Firefox versions automatically block all Java plugins which are Java versions less than 1.6.0_31, therefore every user that has a problem and is running with a Demantra that supports Java higher than 1.6.0_19 can upgrade their Java plugin to 1.6.1_31. Demantra 7.3.0.2 and all versions of 7.3.1 support it.
    Anyone who has a problem while running on an older Demantra version that does not support Java versions newer than 1.6.0_19 cannot use Firefox with Demantra. Instead they can either use Windows Internet Explorer (IE) without a Java upgrade or they can upgrade their Demantra.
    If they upgrade to the latest Java version then the Demantra plugin will not work - not with Firefox and not with IE.
    If you still need additional help, you can find it at [[My Oracle Support.|My Oracle Support]] Oracle's one-stop online technical support portal offers a wealth of resources for customers.
    '''How to enable Java if it's been blocked'''
    In order to protect you, Firefox has stopped some versions of the Java plugin from running automatically because of security issues. However, you can still use Java on trusted sites if necessary. Find out more by visiting [https://support.mozilla.org/en-US/kb/how-to-enable-java-if-its-been-blocked Mozilla Support] Mozilla Support.

Maybe you are looking for

  • Use mobile hotspot to provide internet to Aiport Extreme?

    I just got a Sierra W801 mobile hotspot and want to use it as my internet for my home network. Right now it is tethered to my iMac via USB. It does not have any other ports, only wireless b/g and can only connect to up to 5 devices. I can think of tw

  • Exporting movie to idvd, titles cut off

    After searching other users problems w/this issue I've tried switching the movie aspect to 4:3 (standard), no luck. Title/captions that are in the upper left, lower right get cut off. In idvd you can use the tv safe area to help you avoid problems li

  • HELP ~ Does disputing credit reports really work?? Nervous!!

    Hi Guys,I'm working on my husband's and my credit.  I'm drafting a dispute letter found on the MY Fico site and well, I'm a bit nervous!   I'm hoping to get all the collections removed because of errors and the misrepresentation of reporting as Facto

  • Need to submit a program with a variant

    Hi all, This is my code i need to submit RSIRCCON program to this program with a variant . I have created a variant with a name "VARIANT1" . After excuting this program am getting an error message "VARIANT VARIANT1 does not exist " . Can any one help

  • BAPI or FM to create Vendor Master

    I need a BAPI or FM/API to create a vendor master.  Yes I know, there is BAPI_VENDOR_CREATE but it does not allow you to import any data.  Is there a BAPI/FM/API that creates a vendor master while allowing you to import data (like BAPI_MATERIAL_SAVED