Network Folder Mount

hi,
can I mount a folder in windows by JAVA
i mean when my java program executes it creates a folder mapped to some network drive or even to a local volume for the time being
if possible plzz send me code refferences / code
cheers,
Yasir.

Hi,
I should have wrote
new
File("\\\\MachineName\\shareName\\rootDir\\Your/Folder
/here".mkdirs();Have you tried it ?
new File("C:\\foo/bar").mkdirs();should create 2 directories into C: (foo\bar).
In java, under windows, you can use \\ or / as a path
separator.
The best practice is to use File.separator instead of
\\ or /.
Please read this :
http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.h
tml#mkdirs()
Hope this help.
--Marc (http://jnative.sf.net)
Plz do not write to me on my sourceforge account for
problems that do not involve jnative.hi,
its not working
actually plzz get an eye on the problem one again
actually i want to have a folder in my pc which is created and become a mount point (like network drive mapping in windows) for some network share
File("\\\\MachineName\\shareName\\rootDir\\Your/Folder /here".mkdirs();
i m using this code as
File("\\\\10.10.21.5\\wallpapers\\d:\\mymount").mkdirs();
( does it mak sense !!)
now 10.10.21.5/wallpapers is network share name
and d:/mymount is my local drive folder
but this programe dont fulfill my objective
hope u hav got the problem
do u hav solution??
Yasir.

Similar Messages

  • Mapping a windows network folder.. Almost there! Just one step...

    Hi, everyone! I have written an applescript to automatically mount a windows network folder on my Mac right after startup. Only, I just made as far as mounting the computer and I still have to choose the right folder to mount. I just miss one final step to do it fully automated.
    This is what I have for now:
    tell application "Finder"
    try
    mount volume "smb://MICSGROUP;FRONTIER:[email protected]"
    end try
    end tell
    But then I still have to choose if I want the windows D drive or E drive or C drive, or any shared folder on that drive...
    What should I add in this script to automatically mount the right folder on a D drive? For example the folder "D/pictures" I tried a lot of combinations, but none thusfar work..
    Any ideas?
    Thank you!
    G5 dual 2.0   Mac OS X (10.3.9)  

    Hi,
    try this :
    mount volume "smb://MICSGROUP;FRONTIER:[email protected]/pictures"
    you may use the dns name of the server instead of its IP
    regards,
    Didier.

  • Help. Can't see Volume in My Network folder!!!!!!

    Hi all,
    I have a 7 G5s and 1 G4 computer, of which I upgraded to 10.4 from 10.3.9. I have updated all OS to 10.4.6. I have 2 small hubs with which I network the computers and 2 printers.
    All but 1 G5 can see and access the Public folder of each computer. In each of the Public folder, I have a FULL ACCESS folder, to which you can read and write, along with the default Drop Box.
    I have a problem with one of the G5s, when I try to connect to the *problem computer* from another G5, I cannot see the VOLUME in the *SELECT THE VOLUMES TO MOUNT* window. I can see the problem computer in the *My Network* folder, but not the VOLUME when I connect. *+I had no problems before I upgraded.+*
    From the troubled computer, I can see and connect to all other computers on the network. I have not changed any settings on this or any of the other computers. Actually, I have no problem with none of the other computers, of which all can copy files between each other.
    Has anyone ever seen this problem? It's really wierd since only one computer has the problem and all were upgraded the same time.
    Please help.
    Thanks in advance
    Willis

    Several things you can try on that one G5...
    Repair Permissions, (good idea after any upgrade).
    Try from the Finder's Go Menu, Connect to Server, then type in afp://ip.of.other.g5
    In Finder>Preferences, toggle off the Sidebar>Show Network Icon, reboot and tirn it back on.
    More to try, but let's see if any of these help.

  • Can't see Volume in My Network folder!!!!!!

    Hi all,
    I have a 7 G5s and 1 G4 computer, of which I upgraded to 10.4 from 10.3.9. I have updated all OS to 10.4.6. I have 2 small hubs with which I network the computers and 2 printers.
    All but 1 G5 can see and access the Public folder of each computer. In each of the Public folder, I have a FULL ACCESS folder, to which you can read and write, along with the default Drop Box.
    I have a problem with one of the G5s, when I try to connect to it from another G5, I cannot see the VOLUME whenever I double click on the computer name and select Guest or Registered User. I can see the problem computer in the My Network folder, but not the VOLUME when I connect.
    From the troubled computer, I can see and connect to all other computers on the network. I have not changed any settings on this or any of the other computers. Actually, I have no problem with none of the other computers, of which all can copy files between each other.
    Has anyone ever seen this problem? It's really wierd since only one computer has the problem and all were upgraded the same time.
    Please help.
    Thanks in advance
    Willis

    Hi,
    Whether I use GO Menu or select the Mac from the NETWORK icon in the sidebar, I cannot see any Volume in the "Select a volume to mount" window.
    Thanks again

  • Moving Home Folder to Windows XP Network Folder

    How does one move the home folder on a Mac to a network folder located on a Windows XP host? I think it is accomplished using Netinfo, but I tested it on my 13" Macbook and the Macbook will no longer login. Detailed instructions would be appreciated.
    Also, I read that it is possible to cache the home folder so that when the network location is not available, the home folder contents are still available - syncing is perfomormed when network is again available. How is this accomplished or is this only available when OS X Server is on network?
    Thanks
    17" Macbook Pro 2.16GHz   Mac OS X (10.4.7)  

    I don't have a solution that directly addresses your question, but between two Macs, it is possible to have a user account on one OS X client machine mount a folder on a second OS X client machine during login and use that as the "home" folder.
    On the machine where the folder resides, the folder must be set up as "share point", the name of the share may have to match the name of the user's "home" folder on the user's end, and the username and password to access the share point have to match the username and login password of the user account.
    On the client side, the user's entry in the "NetInfo" database has to have an additional property added to it (the 'home_loc' property), containing the url to the share. The presence of this property tells the login process that the "home" folder may not be a simple folder, and for example, is used by "Filevault" to get the system to automatically mount the filevault disk image before actually logging the user in. For an AFP share, the value of the 'home_loc' property looks something like this:<pre><homedir><url>afp://xx.xx.xx.xx/sharename</url><path></path></homedir></pre>It might be worth a try to see if something similar works with an SMB share. However, if the share is unavailable for any reason, it likely won't be possible to log in to the account at all.
    Of course, if the windows share is already mounted (and there are ways, though I don't know them, to have a windows share mount automatically at startup for example), then the process would be much simpler - just change the user's 'home' property to the path to the folder on the mounted share.
    I have no idea about the offline caching question.

  • HP LASERJET PRO 200 MFP M276NW - Can't scan to Network Folder

    Hi there,
    The scan to email works but not the scan to Network Folder. I have tried a lot of things but I give up. 
    I have given permissions to all and after share a folder it appears as shared... but does not work. 
    The OS is Windows 7. Hope you can help me with this because I will use a lot the scan to shared folder option.
    Thanks in advance,
    Fran

    Hi skile88,
    Welcome to the HP Forums, I hope you enjoy your experience!
    I understand you are unable to setup the scan to network.
    I will be happy to help you.
    It is usually a issue with the Network Path for the network folder created.
    Create a folder anywhere on the computer.
    Right click the folder and left click properties, select the Sharing tab, click the Share button, select who you want to share the folder with or everyone. On the same Sharing tab copy  the Network Path. (example \\envy1730\users \Envy\desktop\networkfolder
    In the embedded web server for the printer go to the Scan tab, select network folder setup, paste in the path for the network folder. Go through the wizard.
    If those steps don't work then follow steps 1, 2, 3, to resolve this issue to try and get the network folder and path.
    Step one: Make sure that the computer user account is password protected.
    1.Click the Windows icon, then click Control Panel.
    2.Click User Accounts, then select the account you used to log into the    computer.
    3.Click Change your Windows password, then find the user account you used to log into the computer.
    •If the user account is password protected, continue to the next step.
    •If the user account is not password protected, click Create a password for your account to create a password, and then continue to the next step.
    Step two: Define the network location
    1.Click the Windows icon, then click Control Panel.
    2.Click Network and Sharing Center.
    3.In the View your active networks section, click Public network under your network name. The Set Network Location window opens.
    4.Select Home Network or Work Network, then click Close.
    Step three: Make sure that the network sharing and discovery options are correct
    1.Open the Network and Sharing Center window.
    2.Click Choose homegroup and sharing options.
    3.In the Share libraries and printers section, select Documents.
    4.In the Other homegroup actions section, click Change advanced sharing settings.
    5.In the Advanced sharing settings window, make sure that the following network options are turned on:
    •Network discovery
    •File sharing
    •Public folder sharing (read and write access)
    •Password protected sharing
    6.Click Save changes.
    7.Your computer network is now successfully set to complete the Scan and Fax to Network. Folder or Digital Fax to Network Folder Wizard.
    I believe that this will provide a resolution to your issue. Thank you.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Scan To Network Folder Fails Post Install of Firmware Due To Password No Longer Being Passed

    The scan to network folder has been working for over a year on my OfficeJet Pro 8600 Plus to a file share in a QNAP NAS. HP CLP1CN1435AR firmware was applied to the printer in Dec 2014. Upon my first need to use the scan to network folder feature in 2015 I find that it no longer works. Attempts to validate the once working scan setup failed. Though a variety of tests I have determined that the password entered into the web server on the printer is NOT being passed as part of the logon credentials to the QNAP.
    I tested every possible combination going back to ground zero and starting fresh with multiple new user ids, passwords, network shares, 8 character user names, simple passwords, IP or hostnames in the network path, requiring SSL or not, etc. With each test, I validated that I could sign on directly to the NAS and that the user ID was authorized to change files in the network share. With each fail, I validated the logs in the router and in the NAS that traffic looked normal and it was the sign on credentials were the reason the NAS rejected the sign on. The only thing that worked was a guest ID from the NAS which does not HAVE a password. Any requirement for a password during the sign on to the NAS will not be honored or satisfied by the new firmware.
    This is an egregious error - something that should have never made it out of even the first level of testing within HP. I would love to inform HP about this discovery but alas, my printer is 2 DAYS out of warranty so the forum is well the only voice with HP that I have.
    Now I have to set up an unprotected area of my NAS by giving the gest account access which means that anyone who plugs a network cable behind my firewall gets to see the scanned information. Now I am very sorry I applied the firmware. Now I am getting to be sorry that I bought this and another HP printer despite being a customer for years.
    I would love some help from HP but not going to put out for an extended warranty or pay for phone support for something that I have easily and clearly tested to be a problem with the new firmware.
    If anyone has figured a way around this, please let me know. Hopefully it will help focus someone else who is experiencing the same problem. Network configurations can differ, ect but I am pretty sure the rash of posts in the last couple of months about the scan to network folder feature have the fail to pass the password error as the root cause.
    Unhappily & insecurely scanning to a very public folder share until then. Information that is vulnerable regardless of how brief of a moment until it is moved off the share is still vulnerable information. It’s not something I can live with for the long term.

    Hi @Road_Trip ,
    I have brought your issue to the attention of an appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publically post ( serial numbers and case details).
    If you are unfamiliar with how the Forum's private message capability works, you can learn about that here.
    Regards,
    George
    I work for HP

  • Scan to network folder will not work for Yosemite

    Scan to network folder, which is supposed to allow the unit to scan and save to a shared directory on a remote computer, does not work in Yosemite,  though it will work on Macs sporting earlier OS on same network. 
    HP personnel have indicated that HP does not support Apple Mavericks. One can only assume then that it will not work on Yosemite either
    Yet these units are still being sold to be used with Apple OSX.
    Please resolve HP's position.  If these units will not function properly under Mavericks and Yosemite, please explicitly say so.  The scan to network feature should not have anything to do with any OS issue, and it is much more likely that the issue is faulty HP firmware.
    If these units are supposed to fully function under Mavericks and Yosemite,  please provide substantive resolution of the many many problems users have experienced.
    The Scan to Network feature is what makes using these units viable as scanners. The fact that this works poorly at best, and not at all on any recent Apple OS, is simple acceptable

    IT IS OFFICIAL
    HP Case Manager has indicated that HP is abandoning Scan to Network Folder starting with Yosemite as OS security constraints present issues with using its current transport.
    Of course this took an hour of double talk and fiddling about before the admission was forthcoming...
    Shall we count the days until that information actually shows up in the forums?

  • Problem creating a link to a network folder

    I am working with a SharePoint 2010 site. Due to not being able to utilize SharePoint Designer, I am limited to editing the site by first navigating to the SharePoint site and then selecting edit page from the site options menu.
    I have a table setup and there are two cells within the table that I want to have linked to different network folders. The first cell has 'operations brief' in it, and after researching how to establish a link to a network folder, I learned that I could
    do it by inserting a link and pointing to file://servername. In this situation, I highlighted the text and then selected insert and link from address option. I typed in
    file://Y:\Operations%20Brief\2013 into the URL field. After saving the site, I tested the link and it successfully opened the network folder.
    I then followed the same procedure for another network folder named Quick Reference Card. The only difference between the operations brief folder and the quick reference card folder is that the quick reference card folder has parentheses and numbers - Y:\(8)Library\Quick
    Reference Card (QRC). I am not understanding why when I view the site out of editing mode, I can click on the operations brief folder and have it open. When I click the Quick Reference Card link, nothing happens. The text appears as a hyperlink -- it's in
    blue and is underlined.
    I've removed the link and re-added it several times, only to get the same result. I can't figure out why one link works, and why another one doesn't even though I'm sure I created the second link the same way I created the first link.

    Hi,
    I have followed the same procedure what you followed, it is working as expected and both the links are working fine.  The following is the HTML SOURCE from the content editor web part.  Please verify your HTML source from the content editor part.
    <p>​</p>
    <p>Welcome to Operations folder <a href="file:///Y:/Operations%20Brief/2013">Operations</a></p>
    <p><a href="file:///Y:/(8)Library/Quick%20Reference%20Card%20(QRC)">Quick Reference card folder</a>&#160;</p>
    <p>&#160;</p>
    <p>&#160;</p>
    <p>&#160;</p>
    <p>&#160;</p>
    To view the content editor web part content -> click on Edit Web part -> 
    And also you can try replacing 
    Encoded characters for "(" with %28 and ")" with %29
    http://www.w3schools.com/tags/ref_urlencode.asp
    **Please don't forget to mark as answered and helpful

  • HP LaserJet Pro 200: Scanning to Network Folder on windows server 2012 - can't find folder

    I have searched everywhere and tried every suggested solution with no luck.   Hence this post.
    I have an HP Laserjet Pro 200 on our small company network (domain).   We use windows server 2012 as our domain controller and as our file and print server.
    There is a shared folder on the windows server that is shared read/write with everyone on the domain.
    I can access the shared folder from any computer on our network.
    However, when trying to setup the scan to network folder capability,  the HP web interface always comes back that it can't find the network folder.
    I have tested that it will work on our network if I want to scan to a shared folder on any of the other computers on our network (other than the main server).
    So it appears to be some sort of security / firewall issue with our server, perhaps ?
    Does anyone have any suggestions on how to troubleshoot this issue?   Is there any technical documentation on how a server environment needs to be changed to allow this to work ?   (BTW,  this used to work,  about a week ago and nothing changed except for installing the latest HP laserjet drivers on the windows server. 
    Thanks for any suggestions.
    Todd

    I have searched everywhere and tried every suggested solution with no luck.   Hence this post.
    I have an HP Laserjet Pro 200 on our small company network (domain).   We use windows server 2012 as our domain controller and as our file and print server.
    There is a shared folder on the windows server that is shared read/write with everyone on the domain.
    I can access the shared folder from any computer on our network.
    However, when trying to setup the scan to network folder capability,  the HP web interface always comes back that it can't find the network folder.
    I have tested that it will work on our network if I want to scan to a shared folder on any of the other computers on our network (other than the main server).
    So it appears to be some sort of security / firewall issue with our server, perhaps ?
    Does anyone have any suggestions on how to troubleshoot this issue?   Is there any technical documentation on how a server environment needs to be changed to allow this to work ?   (BTW,  this used to work,  about a week ago and nothing changed except for installing the latest HP laserjet drivers on the windows server. 
    Thanks for any suggestions.
    Todd

  • Publish report as PDF to a network folder

    I'll take a chance and post this query here. We have been using Discoverer for 9+ years, against Oracle Financials. Most of our users are not that computer savy, and would rather have the report in a simple PDF or HTML format, delivered to their network folder, that they can look at for their budget information. What tool should person use to accomplish this?

    Hi,
    We can send reports in PDF format to a network folder using Interactive Reporting 9.3.1. Here is how I did it few months ago...
    1.From your server, map the external drive to your server. \\rio.company.com\winserver\hypreports
    2. Have a Domain account, example 'Hyp system' in MS Active Directory just for this purpose. Note: This account should have 'write' privilege to the folder created on network drive.
    On the server, Hyperion services have 'Log On As' type 'Local System'. Change 'Log On As' type to your domain account
    3.
    1) create a output directory 'ODTest' as physical resource with path \\rio.company.com\winserver\hypreports\
    2)import the 'file as job' in Interactive Reporting
    3)add a schedule with action 'Export' and choose the output directory
    Let me know if you have any questions.
    regards,
    Usha

  • Print Oracle report into a network folder

    Hello,
    I was trying to print an Oracle report in PDF format to a network folder. I can do this directly from the url by pasting the url below on the browser, but when I try to do the same from a database trigger, I get "Rep 51002 bind to report server failed" error. I would appreciate any help that you can provide.
    Here is my code
    DECLARE
    req utl_http.req;
    resp utl_http.resp;
    value VARCHAR2(1024);
    BEGIN
    req := utl_http.begin_request('http://appserver.biosys.com/reports/rwservlet?server=rptserver&module=QueryIDResponse.rdf&userid=testuser/pwd@oracledb&destype=file&desformat=pdf&desname=c:/Query_Response_Report/245237new.pdf&P_QUERY_ID=123457&P_SERVICE_ID=6&P_SITE_ID=12501');
    utl_http.set_header(req, 'User-Agent', 'Mozilla/4.0');
    resp := utl_http.get_response(req);
    LOOP
    utl_http.read_line(resp, value, TRUE);
    dbms_output.put_line(value);
    END LOOP;
    utl_http.end_response(resp);
    EXCEPTION
    WHEN utl_http.end_of_body THEN
    utl_http.end_response(resp);
    END;
    Thanks
    Sani

    Thank you so much for your help. I used event driven pulishing and needed to install SRW package on my infra database and it is working good now.
    One thing I am struggling with sending pdf reports to another server. I could create a pdf at runtime, but needed to send to another server for storage. I could set up the desname parameter to store the pdf in the same report server by using the following code
    PORTAL.srw.add_parameter(myPlist, 'DESNAME', 'c:\Report\abcd');
    but to store in a different server I don't know how to do that. Any help would be appreciated
    Thanks

  • How to delete the photos in network folder while deleting photos in iPhoto?

    Hi,
    How to delete the photos in network folder while deleting photos in iPhoto?
    I have emptied the iPhoto Trash but the photos in network folder are still not deleted.
    In iPhoto Preferences, Advance, Importing, I have UNCHECKED "Copy Items to iPhoto Library."
    http://img.photobucket.com/albums/v432/philipcs/Screenshot2009-10-26at120221AM.p ng
    Please help. Thanks.

    iPhoto is a relational database management program and manages only items that it controls - items within its library - it does not and will not do anything with any photo that is not in the library except to delete photos from cameras after import - and this is not recommended
    You are running a referenced library and it is not recommended - it makes deleting photos more difficult as you are seeing, it makes importing photos more difficult and it makes replacing or upgrading hardware much more difficult
    LN

  • Can Lightroom references files in a network folder? And can multiple people all share a Lightroom catalog?

    I would like to use Lightroom 5 at work to organize and manage photos. There are 10 people that consistently access the photos and videos. All of the photos and videos are on a network folder/drive. Is it possible for all 10 people to have a copy of Lightroom on their computers and then have a single catalog that all of the computers references? I guess the first question is whether Lightroom can references files on a network folder (if not than my first question isn't really relevant). If it is possible, what happens if two people (or more) have Lightroom open at the same time? Does that cause problems with the database? Please let me know if there is some way to make this work. Thanks..

    Photos can be stored on Network Drives.
    Catalog files cannot be stored on Network drives, and there is no way to allow multi-user access.
    If you need multi-user access, you might want to consider software that allows multi-user access, such as Daminion. (Note: I am not endorsing Daminion, as I have never used it. I simply state that it claims to have a feature you are asking about)

  • Laserjet pro 200 color mfp m276nw network folder setup on PC Windows 7

    I am trying and trying and trying to setup my Network Folder Setup and I either get the message that there is an error with the file path or an error with my username. 
    I DO NOT have a password for my username. 
    I have copied and pasted the file path \\OWNER-PC\Scanning
    The file is definately set-up for sharing and all permissions are enabled. 
    I am not putting in a PIN at this time.
    Can anyone help me to setup this network folder?
    This question was solved.
    View Solution.

    Hi @Username57 ,
    I understand that you are having issues setting up the network folder. I will certainly do my best to help you.
    I have provided a document with the steps for setting up the scan to network folder.
    Scan From the Control Panel (Including Scan to Email, to a PDF, and to a Network Folder) for HP Lase...
    It is usually a issue with the Network Path for the network folder created.
    Create a folder anywhere on the computer.
    Right click the folder and left click properties, select the Sharing tab, click the Share button, select who you want to share the folder with or everyone. On the same Sharing tab copy the Network Path. (example \\envy1730\users \Envy\desktop\networkfolder
    In the embedded web server for the printer go to the Scan tab, select network folder setup, paste in the path for the network folder. Go through the wizard.
    If those steps don't work then follow steps 1, 2, 3, to resolve this issue to try and get the network folder and path.
    Step one: Make sure that the computer user account is password protected.
    1.Click the Windows icon, then click Control Panel.
    2.Click User Accounts, then select the account you used to log into the computer.
    3.Click Change your Windows password, then find the user account you used to log into the computer.
    •If the user account is password protected, continue to the next step.
    •If the user account is not password protected, click Create a password for your account to create a password, and then continue to the next step.
    Step two: Define the network location
    1.Click the Windows icon, then click Control Panel.
    2.Click Network and Sharing Center.
    3.In the View your active networks section, click Public network under your network name. The Set Network Location window opens.
    4.Select Home Network or Work Network, then click Close.
    Step three: Make sure that the network sharing and discovery options are correct
    1.Open the Network and Sharing Center window.
    2.Click Choose homegroup and sharing options.
    3.In the Share libraries and printers section, select Documents.
    4.In the Other homegroup actions section, click Change advanced sharing settings.
    5.In the Advanced sharing settings window, make sure that the following network options are turned on:
    •Network discovery
    •File sharing
    •Public folder sharing (read and write access)
    •Password protected sharing
    6.Click Save changes.
    7.Your computer network is now successfully set to complete the Scan and Fax to Network. Folder or Digital Fax to Network Folder Wizard.
    One user on another post had to do the following:
    There was a problem in the "advanced sharing settings window". They turned it off, the option which is after the 128 encryption, I mean the "password protected sharing".
    Please let me know the outcome.
    Happy New Years!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

Maybe you are looking for