Mapping Drive using Java

Hi All
currently I'm using windows scripting to map a drive. However, I would like to change to using java program to map a drive. Is there any method or class that I can use to map drive???

That applies to sreepriyar's first half of the
question. The last half, " which runs as awindows
service?" can be answered with a google search.
http://www.google.com/search?q=java+windows+service
No, he asks how to map a drive and use in a java
program which runs as a windows service. That
indicates that he already has a program that runs as
a service? So the answer is still the same as the one
given before?
/KajI can see how the question could be read that way. The question is ambiguous and only sreepriyar could clarify it.
The reason I interrupted the question the way I did is because I was give sreepriyar the benefit of the doubt, even though we seem to have a large percentage of inept posters. The all should read something like http://perl.plover.com/Questions.html before posting their first question.
Funny thing is, even if sreepriyar where to clarify the question at this point, even if he meant it the way you interrupted question, to save face which way do you think sreepriyar would now say he meant the question? :)
In this case sreepriyar should have stated:
I read Peter-Lawrey response, but I want to make it a Windows Service. I search for it on the web but there are a bunch of different products that may work. Product A, B, C (with links). Has anyone used the products? Which do you feel is best?

Similar Messages

  • Mapping drive using GPO does not obey to Item-level targeting

    Dear all,
    We are mapping drive using Item-level targeting based on security group (User Configuration > Preferences > Windows Settings > Drive Maps) with the following settings:
    Action: Replace
    Run in logged-on user's security context: <Checked>
    Item-level targeting: <Checked>
    So if user is member of Group_X then he/she will have drive X mapped on his computer.
    Problem now is that (even if reconnect is unchecked), drive will stay mapped when we remove a user from this group.
    Is this the normal behavior ? did I missed something ?
    or even worst, imho, should I add a new drive properties which would say to delete the drive if user does not belong to the relevant group ?
    -> double targeting query for a single drive
    -> what's the point of Replace / Reconnect then ?
    Thanks in advance for your opinions!
    /behd
    [EDIT: Forgot to specify Win2008R2 AD, Win7 Pro clients but doubt that it'll be of any interest for this case]

    Drive mapping should not remain after you remove the user from the group.
    What I suspect is, that at first, the "reconnect" was checked then the user got the policy and tattooed the reconnect value. after that it doesn't matter that "reconnect" was removed.
    Try the following:
    Logon with test user, make sure no drive mapping exist (disconnect if necessary).
    Create a new policy with drive map - make sure reconnect is not checked, and apply it for the test user.
    Make sure no other drive mapping policy exist for that user.
    Login with the test user, make sure drive was mapped.
    Log off that user, remove it from the group, wait for AD replication and log on again (sometimes another log off \ log on required).  
    Please take a moment to Vote as Helpful and/or Mark as Answer where applicable. Thanks.

  • How to create  and hide a drive using java?

    I want to ask how to create a temporary drive/ or a drive by allocating some space of existing drives(eg allocating some space of C: Drive such as 5mb for storing files on the new drive that has been created) and then i want to hide that drive .So Please can anyone Explain me how to do that.

    Iam saying to all of you iam not blaming to anyone even java. And my harddisk is not currepted or damage by using that. My harddisk is working properly. But i don't know why all of you think that i am blamming to someone but iam asking some question which need to be answered.
    I am clearing all of you i am a student and iam creating an project in java for that i need this. I also want to add File/Folder lock on that project. This technique i have seen in folder lock 6 software that they use hidden drive to store files. Thats why iam asking that how to apply this technique using java.
    And plz plz read this carefully and answer me to solve my problem.

  • N:1 Mapping Possible using Java Mapping?

    All,
    Is it possible to do a N:1 mapping using Java Mapping?
    If yes , how?
    Reason for this question is that the execute() of the Java Mapping is going to take the source / request message as the InputStream . In the case of N:1 mapping , as we have multiple messages , how will they be send to the InputStream? Will both the messages be sent combined into the InputStream? Will the MESSAGES tag be embedded into the input stream?
    Regards,
    Bhavesh

    Hi @ll;
    i try the same.
    to conduct a java mapping with 2 input structures that fills one target structure.
    This mapping is part of a Integrationprocess.
    I tested the mapping at the Integration Repository (Interface mapping) with the structure given by henrique and it works fine without any error.
    At runtime this structure looks like this (different prefix)
    <?xml version="1.0" encoding="UTF-8"?>
    <sxi:Messages xmlns:sxi="http://sap.com/xi/XI/SplitAndMerge">
         <sxi:Message1>
              <YOURXML1>...</YOURXML1>
         </sxi:Message1>
         <sxi:Message2>
              <YOURXML2>...</YOURXML2>
         </sxi:Message2>
    </sxi:Messages>
    As I put it in the Integrationprocess unfortunately a strange error arises.
    The trace Workflow-Protocoll shows following error.
    <Trace level="2" type="T">Call method execute of the application Java mapping com.endress.infoserve.xi.mapping.MergeConfigStore_IdocOrder </Trace>
    <Trace level="2" type="T">Java mapping com/endress/infoserve/xi/mapping/MergeConfigStore_IdocOrder completed. (executeStep() of com.endress.infoserve.xi.mapping.MergeConfigStore_IdocOrder </Trace>
    <Trace level="1" type="T">Parsing error after multi mapping.Expected Message<i> instead of IDOC </Trace>
    I can't make head nor tail of it.
    what´s the mistake?
    can anybody please help me?
    Thanks in advance
    Kind regards

  • Retriving all records in the value mapping cache using java

    Hi,
    Is there a way to retrieve all records assuming I properly maintain some values in the value mapping using java? I know and I tried retrieving already using XIVMService.executeMapping but it seems that I can retrieve only 1 value at a time.
    For instance, in the value mapping cache I have the following:
    Agency         Schema         Value                Context
    SENDER       KEY              0001&ABC        http://xyz.com/ECC/ZTABLE
    SENDER       KEY              0003&           http://xyz.com/ECC/ZTABLE
    SENDER       KEY              0004&DEF        http://xyz.com/ECC/ZTABLE
    RECEIVER     RESULT           Hello           http://xyz.com/ECC/ZTABLE
    RECEIVER     RESULT           World           http://xyz.com/ECC/ZTABLE
    RECEIVER     RESULT           Hi              http://xyz.com/ECC/ZTABLE
    Is it possible to retrieve all values under the column Values assuming I know the value Agency, Schema and Context columns using a java program? If yes, can you point where I can find such an example code or if you are pointing to http://help.sap.com/javadocs/NW04S/current/pi/index.html please provide a sample code on how this can be done.
    Many thanks.

    Hi,
    Have you seen this weblogs by Prasad recently:
    /people/prasad.illapani/blog/2007/03/08/performance-tuning-checks-in-sap-exchange-infrastructure
    /people/prasad.illapani/blog/2007/04/20/performance-tuning-checks-in-sap-exchange-infrastructurexi-part-ii
    Also are you doing multiple lookups or a single lookup? If you are using multiple lookup for multiple fields which has the same logic then try to use global variables.
    ---Satish

  • Mapping Drives using a PIX501 and vpn client

    We have a 501 and are using cisco vpn client. We have a Windows 2000 and a windows 2003 server on the network we are connecting to. We use windows authentication when we logon the vpn. We are mapping drives on both servers onto the client. The mapped drives on the 2000 server are visable to the client. The mapped drives on the 2003 server are not even when we try to remap. We have Routing and Remote Access enabled on the 2003 server but still fail to map the drives (or ping the 2003 server). Can anyone out there shed any light on our problem. Thanks

    Start with this link which gives a number of examples on how to configure a VPN client with the VPN 3000 -
    http://www.cisco.com/en/US/tech/tk583/tk372/tech_configuration_examples_list.html#anchor22
    Jon

  • XI Mapping Programs Using Java

    Hello all.  This is my first posting, hopefully it's not a stupid question.  Basically I'm having terrible problems trying to build a mapping program in NWDS.  I can't seem to find the mapping jar file which contains the interface I need to implement in my java class.  Actually, I'm not even sure which interface to implement, there's conflicting versions.  I'm on the NW PI 7.1 version.
    So far I've had someone look for aii_map_api.jar on the server which is supposed to contain a StreamTransormation interface which I can implement.  That was not successful.  I also tried looking on the sap marketplace for this jar file, but finding something out there is like finding a needle in a haystack.  So no luck on that front.
    After that I found another help article here : http://help.sap.com/saphelp_nwpi71/helpdata/EN/bd/c91241c738f423e10000000a155106/content.htm indicating that the jar files for mapping should already be installed in NWDS.  Unfortunately my install does not have the SAP_XIAF folder.  So now I'm stuck and I'm hoping someone here can point me in the right direction.
    Do I need to get a different install of NWDS?  If so what version?
    Can I just download some jar files from the server or the marketplace?  If so, which files?
    Thanks very much,
    Kevin

    Kevin,
    There are few options to get them. They already discussed in this thread:
    aii_map_api.jar
    http://wiki.sdn.sap.com/wiki/display/XI/Where%20to%20get%20the%20libraries%20for%20XI%20development
    If you dont have the options to get these let me know ur id so that somebody can send them to you.
    Regards,
    ---Satish

  • How do you download images from a web server to your hard drive using java?

    Can anyone help me with this? The only methods that i have found that are remotely useful are getContent() andgetContentType().
    But all the code I've fouund and studied doesnt say anyone about downloading images. What do I need to be looking for to acheive this?

    You have a URLConnection to the img URL right?
    Open that connection's input stream (URLConnection.getInputStream or something like that, look it up in the Javadoc API: http://java.sun.com/j2se/1.4.2/docs/api/)
    Once you have that stream, you can read its bytes to your heart's content, and write them to a file as you wish.

  • How to find cd rom drive in windows and unix platform using java program

    Hi,
    I am having the requirement of finding the cd rom drive
    using java program. I do not know the label and which
    one is the cd rom drive. also I want to know how many
    cd rom drives are there on my system. I want the solution
    for windows and unix platforms.
    If have any suggestions please mail to [email protected]
    Deepak

    Ughhh.. I had the same problem with multi platform file-system detection
    First off - Unix.
    Do you know for sure you have all your drives mounted?? This could be a big problem because java will not see unmounted drives... So you can scour thru your /etc/fstab to find out which drives are available... or you can mount all and show roots... (Yuck!)... You've got timeouts and all sorts of things to worry about...
    I would then shy away from the java.io.File.listRoots() on unix and rely on parsing your fs file. If a user would like to see the medium in the drive. Do a Runtime.exec and mount the drive, then you can grab the filesystem by wrapping it in the java.io.File object. ( NOTE - this will hold well for your NFS mounts as well which might be buried under other FS. So you now have detection for that as well. ) Labels are also noted in this file. Let me know if you don't know the difference between mtab and fstab....
    Second - Winders.... Corney but I love saying that.
    The listRoots is a good solution. As others have said CD-ROMS will not be writable. Use a combination of getName and getPath to decipher the label and mount point.
    Hope this helps!

  • Batch file from java class fails to copy from mapped drive

    I've some problem for a bacth file which XCOPY several files from folder to folder. If the source folder is a mapped network drive and I run the batch it works.
    But it fails with this error "Invalid drive specification" if I run it from within the java class. Everything is correct from the BATCH point of view as it works when I run it directly.
    I use Process p = Runtime.getRuntime().exec(command);where command is: "cmd /c C:\\just_for_test.bat".
    The batch file is:
    XCOPY /E G:\tmp\CD0005_Multi\*.* C:\Temp
    RD /S /Q G:\tmp\CD0005_Multi
    EXIT
    where G: is the mapped drive.
    Any ideas?
    Thanks.

    I used a batch-file to copy the specified files that looked like this in the end:
    net use s: \\192.168.200.7\e$ <passw> /USER:administrator
    s:
    COPY "S:\Temp\xxx.txt" "C:\Temp\xxx.txt"
    c:
    net use s: /deleteWhat happens is that i make a new mapped-connection to the harddrive
    and ending it after the copying-process is finished... Simple thingie.
    But, if you still want to copy the files through your program, do this:
    net use s: \\192.168.200.7\e$ <passw> /USER:administrator
    s:
    java myProgram
    c:
    net use s: /delete

  • When using a personal dropbox account, is it possible to use the mapped drive without downloading all my dropbox files to my hard drive as well?

    When using a personal (not business) dropbox account on my mac book pro, is it possible to use the mapped drive only?  Currently I have dropbox mapped to my computer but it is also saving a redundant copy of the data on my hard drive.  My goal is to pull, edit and save files on the mapped drive only without having a redundant back up of all my dropbox files on my computer wasting valuable storage space.   Any advice out there?  Thanks in advance for your help!

    I don't believe that is accurate, but maybe I am missing something (I am not a Windows user).
    Looking at 2 explanation of how to map a Dropbox as a drive…
    http://lkeng.org/wp/?p=147
    https://www.youtube.com/watch?v=5d8uvseVr5A
    Both of those are linking to the 'local copy' of Dropbox. It is not a true 'network' drive as far as I can see (it still requires the local copy on the PC).
    Another video suggests using another service to mount the Dropbox, but that is not using Dropbox anymore, it is going through Otixo…
    https://www.youtube.com/watch?v=FAIpm2qmglU
    Dropbox does not provide easy to use URL's to mount as a network disk so I don't think this is possible on OS X.
    Dropbox's forum has this too…
    https://www.dropboxforum.com/hc/communities/public/questions/202133795-How-to-ma p-dropbox-as-a-network-drive-on-Mac?loca…
    You may need to examine the Windows computers carefully - if they have Dropbox installed & running then all the files are stored on the local machine in addition to the 'mapped drive'.
    It looks to me like people are 'redirecting' the local copy to appear like a remote disk just so they can address that path on other machines - each PC is being setup the same. You could create aliases on OS X, but it doesn't help move files off the machine.
    Hopefully someone else will contradict me, but I don't think this is how Dropbox works.

  • XSLT Mapping : RFC Lookup using java helper class

    Hi All,
    I am doing RFC Lookup in xslt mapping using java helper class. I have found blog for the same (http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/05a3d62e-0a01-0010-14bc-adc8efd4ee14) However this blog is very advanced.
    Can anybody help me with step by step approach for the same?
    My basic questions are not answered in the blog as:
    1) where to add the jar file of the java class used in xslt mapping.
    I have added zip file of XSLT mapping in imported archived and using that in mapping.
    Thanks in advace.
    Regards,
    Rohan

    Hi,
    Can u please have look at this in detail , u can easily point out yourself the problem...
    http://help.sap.com/saphelp_nw04/helpdata/en/55/7ef3003fc411d6b1f700508b5d5211/content.htm
    Please observe the line,
    xmlns:javamap="java:com.company.group.MappingClass
    in XSLT mapping..
    The packagename of class and class name and XSLT namespace should be matching...
    Babu
    Edited by: hlbabu123 on Sep 29, 2010 6:04 PM

  • How to display Map for viewing in browser using Java

    I am fidning a solution for displaying political maps in browser using Java technology.
    Is ther anybody with a solution.
    Waiting for your respone.
    Regards
    Mithun

    palanithendral wrote:
    Hi,
    Our application using in English, German, Franch and chinese.You have several different idioms in your application and have not accurately identified where the actual problem is. You have all of the following
    -database
    -http
    -excel
    -excel in http
    -display on the target computer
    The first step with these sorts of problem is to identify where the problem actually occurs.
    String chineseCharacter=""; // chineseCharacter like &#38263;&#38271;&#29248;&#24202;&#26481;&#19996;&#24447;&#20315;. This chinese data coming from oracle database..A good theory. Now explain how you proved that that is what is coming from the database.
    After export the data to excel show the result for 長长牀床東东彿佛.As another example. Presumably you are referring to what the browser on the target computer displays. Your theory is that that computer and that browser (together) will display the correct information if they had the correct data. How did you prove that?

  • 1:n Transformation using JAVA Mapping Scenario

    Hi Frnds,
    I done a scenario using 1:n Transformation Scenario using XSLT,Graphical Mapping.
    But i want to develop scenario Using JAVA Mapping.
    Can anybody done the same scenario using JAVA Mapping share the links..
    Regards,
    Raj Sekhar

    You can use SAX parser for this
    firstly create a StringBuffer sb object which will store our target output
    when startDocument() gets called append the xml declaration in this method
    sb.append("<?xml version=\"1.0\" encoding=\"utf-8\" ?>");
    sb.append("<Root>");
    next for the Test element you have your startElement() method called which will contain the name of your source tag i.e Test
    for this , you will need to set a variable boolean isTest to true which was initialised as a false value.
    in the characters method you will get the value present in this tag.
    test the variable isTest for true value.
    if it is true then append the following
    sb.append("<Test1>"name"</Test1>"); //name is the buffer passed in characters method
    sb.append("<Test2>"name"</Test2>");
    sb.append("<Test3>"name"</Test3>");
    at the end your endelement() will be called
    here reset the value of isTest to false.
    in your endDocument()
    sb.append("</Root>");
    lastly convert to byte[] and then to outputStream format
    Edited by: Progirl Progirl on Jul 4, 2008 2:00 PM

  • RFC Lookup using Java Mapping program - Examples

    Dear Experts,
    I am working on a scenario which is using 1:N mapping. For deciding the target message I have to use RFC Lookup to call the backend ERP system and there are 2 ERP systems involved in this integration. As I am using Java Mapping and never did a RFC Lookup in Java. I kindly request you to give me some examples which I could use for my RFC calls in my Java Mapping. Simple example will do.
    Client is adamant to use Java mapping, I could achieve this easily using XSLT or Graphical Mapping.
    Advance Thanks,
    Pradeep

    Hello,
    why don't you use Extended Receiver Determination Defining Extended (Dynamic) Receiver Determination - Integration Directory - SAP Library?
    What you can do is create a Message Mapping between your source message and Receivers message type. In this message mapping you can use your RFC to generate the target message.
    For example, lets say we have the function ZFM_GET_INTERFACE_INFO used to generate the List of Receivers given a source message. You could create a Message Mapping as below:
    In this case, the RFCLookup box look as below:
    The receiver determination configuration would look as follows:
    Afterwards, you will need two specific message mappings for the two ERP systems.
    Summarizing, you'll need:
    1.- A Message Mapping: Source Message to Receivers Message Type (This one uses the RFC Lookup)
    2.- A Message Mapping: Source Message to Target Message for ERP 1
    3.- A Message Mapping: Source Message to Target Message for ERP 2
    In Integration Directory you'll have 1 Receiver Determination(Source system, Target System determined Dynamically) and 2 Interface Determinations (Source System to ERP1, Source System to ERP2), etc.
    I hope you find it useful.
    Regards!

Maybe you are looking for

  • Automatic Clearing not done in Production Run

    Hi, There is strange case in automatic clearing. When I am executing the transaction F.13 in test run it is showing a clearing date but when i am executing in production run it is not generating the clearing document. The message I am getting is as f

  • IDOC, created via BAPI-CALL?

    Hey experts, I´m looking for a way to identifiy, if an IDOC has been created via a asynch. BAPI-Call or if it is a usuall IDOC. Can anyone help me? Thx a lot! Oliver

  • Axis scaling in labwindows for excel graph

    I'm plotting an excel scatter graph onto my user interface with activeX controls. I have tried to use the SetChartAxisAttribute function from Excel Report to set the minimum values on the graph and specify the exact type of graph that I want, but the

  • 1/2 Street Address unsupported in reminder Locations

    I live at a 1/2 Street Address.  For example: "55 1/2 Anywhere St.".  This is my address in contacts on 10.8 and iCloud.  When I try to set a location based reminder to remind me when I am "Home" my address is read as "2 Anywhere St.".  Everything be

  • No internet and error on startup

    Received an update to the Razor yesterday 24DEC12, after which I could no longer connect to my home WiFi internet connection. Shows single strength from router at EXCELLENT , as soon as I turn the phone wifi connection on it drops to POOR shows "conn