Getting folder free space in a Windows 2003 server with folder cuotas

Dear Friends:
First I have to request apologizes about my bad English.
I was wondering if the following could be done: stablish a folder cuota un Windows 2003 Server R2, and retrieve the folder free space with Java.
With the file.getUsableSpace, I can obtain the free space of the entire partition, but I'm only interested in a specific folder.
Is that possible?
Thanks in advance.
R. Camps.

Dear Andrew:
Thank you for your suggestion, but I know more or less how to configure the quotas over Windows folders. That is not a problem.
I will try to explain my problem in other words. Imagine a folder called "c:\myfolder", with a quota of 2Gb, in a hard disk with 250Gb of total space.
When I do:
File f=new File ("c:\myfolder");
long s=f.getUsableSpace();the method getUsableSpace returns 250Gb, not 2Gb. For me, it would be wonderful to obtain the free space of the quota value, not the free space of the partition.
Thank you very mucch for your attention.
R. Campos.

Similar Messages

  • Has anyone managed to get a 3TB dynamic disk on Windows 2003 Server?

    I just got a pair of new 3TB disks that I wanted to put on my Windows 2003 server enterprise x64 system, SP2, all updates installed.
    When I first tried to convert to dynamic, I got the error "The operation did not complete" as described in this KB article
    http://support.microsoft.com/kb/826823
    It says there is a patch, but there is not one for x64, just x86 and ia64
    I found another technet discussion here:  https://social.technet.microsoft.com/Forums/en-US/winserverfiles/thread/cb62238c-b3d0-4989-b45a-ae6de6701a7b?stoAI=10
    However its best suggestion is to use a product from AOMIE, but I tried that and it didn't even recognize the disk.  It also suggests that one needs a better version of diskpart.exe and to try to the 32 bit version.  Anyone have any experience
    with that?
    I also tried creating moving the disk to Windows 7 x64, making it dynamic there, but when I move the disk back to 2K3 it does not recognize it, and goes back to a 2TB partition.  I also saw something about needing a 512 block size for 2K3, but W7 does
    not allow anything smaller than 1K.

    Hi,
    During my research, if found the following artcle which also mentioned a 3TB disk should be supported in Windows 2003 SP1:
    Has anyone managed to get a 3TB dynamic disk on Windows 2003 Server?
    http://social.technet.microsoft.com/Forums/en-US/winserverfiles/thread/a720ae72-0c04-44dd-94c0-2e6aecce530e
    So I contact the author about this issue. He said it could be caused if your hard disk is a 512e drive as the 3TB drives on the market today are normally 512e drives.
    However manufacturers stopping identifying this, and if the controller is old, FSUtil will not able to identify a 512 drive but recognized it as a normal 512n drive.
    Thus please provide the drive model so we could search on manufacturer's website for exact information.
    Also please paste the screenshot in your reply which Satish mentioned if available.
    In addition, here is an article Robert provided:
    http://www.windowsitpro.com/article/what-would-microsoft-support-do/support-advanced-format-hard-drives-141584

  • After installing Crystal Reports XI on Windows 2003 server with one error..

    After installing Crystal Reports XI on Windows 2003 server with one error... REGSVR sapldap.dll error.  I had to regsvr it manually.  Crystal still didn't run.  Found out that Crystal Reports XI will not run until you change DEP to protect only windows program and services.  Thanks.

    Thank you for sharing your finding. Very much appreciated.
    The DEP is a known issue and it is documented in [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note.
    Crystal Reports XI was not compiled with the nx flag as it released before Windows XP Service Pack 2 or Windows 2003 Service Pack 1.
    As for the sapldap.dll. I'm not sure where this is coming from. I do not see this dll on my install, however it does come with the SAP portal integration kit. So I'm not sure if that is flying around somewhere on that server(?)
    Ludek

  • Running LabVIEW 7.1 on Windows 2003 Server with Terminal Services

    We are setting up a newtork based solution with LabView. I have looked for documentation on installing LV 7.1 on a Windows 2003 server to run the applications and then have destkops connect to it. Can this be done with a Terminal Services Access solution? Another words, if we were to purchase the LV Volume License Manager, can you install LV 7.1 onto a Windows 2003 server and run the application through TS across a 1GB backbone from the desktop, which makes the server do all the processing?

    On Fri, 29 Oct 2004 07:42:13 -0500, ITIQ wrote:
    > By running a session through Terminal Services you are NOT running
    > anything on the desktop it all runs on the server. So if the software
    > was installed on the server and you had the correct number of licenses
    > that you allow to connect through Terminal Services, would this not be
    > allowed under the EULA?
    Sorry for the delay. I'm surprised Philip didn't get back to us... Phil
    are you there? Based on his comments, I think he misunderstands your
    situation (no offense Phil).
    You and I are both talking about the same thing. You basically want a
    terminal server license. NI will not provide it. They told me (over the
    phone) to get a multi-seat license (MSL). IMO, that's unacceptable. I
    expect a LV license taylored specifically for thin client networks. A
    multi-seat license is for -->installing<-- on multiple machines. It
    conforms to a totally different set of rules. One big one, an MSL assumes
    that you intend to run LV locally to interact with DAQ hardware. Since
    this won't be done with the thin client, you shouldn't have to pay for it.
    > I am not sure if the question is if the license is valid or not, I am
    > first just trying to figure out if you can even install LV on a Windows
    > 2003 server and run it through a Terminal Services Session.
    Since you are talking about a Microsoft operating system, I would say this
    cannot be done without some additional/costly junk installed.
    Here's another option. If the people you're supporting don't have any
    platform dependent things like ActiveX in their LV applications, you
    should consider using a Linux-based terminal server. I know for a fact it
    works.
    I've assisted in setting up a network like this before:
    * One Linux terminal server with LabVIEW for Linux (Full Dev)
    * One WinXP box on the network with LabVIEW for Win (Prof Dev)
    * 5 cheap thin clients
    They developed LabVIEW source code on the thin clients and then compiled
    packages on the WinXP box for distribution to their customers. The WinXP
    was only used for compiles so they just hopped on when necessary. The
    eventual plan is for the thin clients to simply open a RemoteDesktop
    (using RDP) terminal session and do the compiles from there. I'm not sure
    how to do that yet... on the Windows side.
    > I see the comments on calling VIs through LV. I am a Network Engineer
    > not a LV Developer, so unfortunately I do not know what a VI is. All I
    > am looking to do is run low end PCs with LV if I have to, but use the
    > server as the workhorse to process all sims etc.
    Phil must have thought you needed a LV application to access the front
    panel controls of another LV application running on a remote machine. The
    VI server is handy in that area but useless in your case.
    Hey, you wanna hear about cheap network infrastructure? We bought our
    thin client boxes for $15 each! Go to ltsp.org if you want more info on
    configuring Linux as a terminal server.
    You, and anyone else, can also email me at gnu_voodoo [at] netzero [dot]
    com for questions/comments.

  • Connecting to a Windows 2003-Server with a MacBook

    Hi guys!
    I'm planning on buying a MacBook anytime soon. The main purpose of this investment is work at school. Therefore I have to ensure that everything works perfectly, otherwise I would have to buy a Windows notebook (in fact not the kind of decision I wanna make).
    We have a Windows 2003-Server and every other pupil can easily connect to this server with a Windows XP machine wirelessly. They can use printers, surf the Internet and use all the network harddrives (like F: for everyone; P: for projects were only certain groups have access to certain folders; and Z: your home-directory where only the very user has access).
    I need to make sure 2 things:
    a) When I connect to the network via Airport, does the system ask me for my account, so I can have (or have not) access to files I am entitled to?
    b) Does everything work fine under normal condition?
    I am aware that something could happen nobody could have forseen, but as the MacBook is a bigger investment than a € 700 windows crapbook, I would like to make sure that everything should work seemlessly.

    Thanks Jay, It now auto log's in but it's still not acting like a networked drive - when saving an attachment etc I still can't save direct to the server as it doesn't appear in the listing.. I need to save to desktop or doc's then manually drag it into the server... this is a pain...
    Any further ideas.

  • (Very Ergent)R12 on windows 2003 server with itanium processor...

    Hi,
    Is it possible.
    Processor : Itanium 2(64bit)
    OS : Windows 2003 server for itanium (don't know 32/64bit)
    http://www.microsoft.com/servers/64bit/itanium/overview.mspx
    ERP: R12 for windows(32bit)
    Is it possible with these combination
    Thanks & Regards,
    Shankar

    Duplicate thread (please post only once):
    Is it possible?
    Re: Is it possible?

  • Where to get java 1.4.2 for Windows 2003 Server x64?

    Hello, I am installing Netweaver 7.0 SR3 on Windows Server 2003 Standard x64 running on a Xeon 5100 which I believe is i386 64-bit. I tried to use the JDK 1.4.2 which is pointed to by sapnote 941595. However, this appears to be for AMD and will not install. SAPinst will not accept the 32-bit version of that JDK either. Could you please tell me where I can get the correct version of the JDK?  Also, as an experiment I tried using the latest 64-bit version 1.6 for my machine and SAPinst got a couple stops past the ABAP import before it failed with a Java error. Is there a way to completely uninstall everything and start over? Thanks - Chris Piret

    Hi,
    With the links from note 941595, you cannot download release 1.4.2_13.
    I had to use this link
    https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=j2sdk-1.4.2_13-amd64-JPR@CDS-CDS_Developer
    that I got from this forum.
    This JDK download is a mess and I think, we, the customers, pay or what seems to be bad relationship between SAP and SUN.
    IMHO, the JDK should be included in the installation box.
    I get the database software in the box, why not the JDK ?
    Regards,
    Olivier

  • I am replacing a Domain Controller (Windows 2003 Server) with a 2012 box. Can I have the Certificate authority exist in both locations during the process?

    Can you have the same Certificate Authority exist on both boxes while I work to get the 2012 up and running fully? Will it impact the users in any way or cause problems?

    > Can you have the same Certificate Authority exist on both boxes while I work to get the 2012 up and running fully?
    no. You have to uninstall CA role before you uninstall Domain Controller role from existing server.
    this is why it is not recommended to keep CA role on domain controllers.
    Vadims Podāns, aka PowerShell CryptoGuy
    My weblog: en-us.sysadmins.lv
    PowerShell PKI Module: pspki.codeplex.com
    PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
    Check out new: SSL Certificate Verifier
    Check out new:
    PowerShell File Checksum Integrity Verifier tool.

  • Space Problem in G: - after NW2004s SR1 installation on Windows 2003 server

    HI Friends,
    I have installed NW2004s SR1 on Windows 2003 server with Oracle 10g database successfully. My server has sufficient harddisk space as follows.
    C: 9.6GB
    G: 24GB
    H:64GB & I: 73GB.
    RAM is 6GB
    While installing NW2004s i have defined a paging size on C: 400MB-1600MB and
    i have set the option as System Manageble on other drives G, H& I drives. I did not get any Swap space problem while installing.
    During installation I have chosen G: drive to store MirrorlogA, MirrorlogB, Oraarch, OriglogA, OriglogB folders of Oracle for redolog archives,.Total size of all these folders is 17.4 GB
    G: drive has one more folder Program files which is of 155KB  and no other files exist in it.
    But My system says that I am running out of Space on G: drive and free space available now is only 44MB.
    My question is where has the rest 5GB of space gone? Is it consumed as a part of Paging file which i have set on this drive as System manageble??
    I have set the same option on other drives too i..e H & I. But i am not facing any space issues for these drives.
    What could be going wrong?? Please suggest me how to correct this
    Thanks
    mv_d

    898118 wrote:
    Hi All,
    I am trying to face some problem to install oracle 10g database on windows 2003 server with service pack 2. Once I start to installation it give me an error "Error in writing to directory 'c:\documents and settings\administrator\local settings\temp\orainstall2004xxx'. Please ensure that this directory is writable and has at least 45MB of disk space. Installation cannot continue"
    I double-insured that there is enough disk-space and I am also in the Administrators-Group.
    Please guide me for the above problem although I have done oracle 9i database installation with the same configuration.
    Regards
    Muhammad ShoaibOracle really doesn't like to be installed into directories with spaces in their names.

  • Mac G5 reports a windows 2003 server has only 3.4 megs when it has 534 megs

    Hello, We use a Windows 2003 Server. We have several macs connected to that server. 1 of these macs shows the windows network share as having only 3.4 megs free. The other macs show the windows share having 500 megs free. The server share does have 500megs free.
    Why would this one mac report that there are only 3.4 megs free?
    Thank you in advance.

    We have narrowed down the problem and found the culprit.
    The issue is only repeatable on 10.4.x (we used 10.4.11 for testing, but it may affect earlier versions as well)
    10.4.11 Local folder created with trailing space in the name, then copied to the Windows 2003 server = loss of security tab on this folder
    10.4.11 existing folder on the server has a trailing space added to the folder name = loss of security tab on this folder
    10.4.11 existing folder on the server has the trailing space REMOVED from the end of the folder name = security tab returns with permissions in tact
    10.5.x Local folder created with trailing space in the name, then copied to the Windows 2003 server = no problem
    10.5.x existing folder on the server has a trailing space added to the folder name = no problem
    10.5.x existing folder (created under 10.4.11) with trailing space in the folder name has the space removed = Error code 43, unknown error occured
    Also interesting is that the illegal characters for Windows \ / * : ? " | in the folder name prevent the folder being copied to the Windows 2003 server in 10.4.11, but are allowed in 10.5.x - all expect the : which is an illegal character in OS-X as well. None of these illegal characters cause issues on the Windows 2003 server as they are simply translated to a space.
    The solution would be either as AJ mentioned to purchase Thursby AdmitMac or to upgrade all the users to 10.5.x (which I'm sure would make Apple happier!)

  • Windows 2003 server loses security tab for folders created in OS X

    We have a centralised storage system that is running on a Windows 2003 cluster. This server has folders for each department so they can store colaborative work. They can create their own folders and files within their departments folder.
    When files are created using a Mac on this service and then the folder properties are viewed under Windows XP or 2003 the security tab seems to be missing. NTFS permissions still exist on the folder as items beneath that are inherriting permissions still have those inheritted permissions applied to them, but the security tab has gone.
    This can also mean that Windows users cannot see these folders and therefore the whole idea of a collaborative storage server is lost.
    We have investigated this issue as best we can so far and tried copying folders onto the server with whitespace at the end of the folder name to see if this was the problem, it does not appear to cause the issue.
    We have also tried copying folders up to the server from a mac using invalid characters \ / * ? " | were all tried, on the server the symbol is simply substituted with a space and the folder works correctly.
    We have tried copying a folder with space at the end of its name and a file within to the server and this also works correctly.
    The only common factor seems to be that a lot of the folders with a missing security tab have a single space at the end of the folder name, however this does not seem to cause the issue.
    One way around the problem is to use the subinacl.exe tool at the command prompt as the server administrator to regain ownership of the folder and then delete it, however this is not a solution for folders that contain data. This workaround was from the microsoft article http://support.microsoft.com/kb/320081 in step 6.
    If anyone has any idea what may be causing this on the Mac side it would be good to know.

    We have narrowed down the problem and found the culprit.
    The issue is only repeatable on 10.4.x (we used 10.4.11 for testing, but it may affect earlier versions as well)
    10.4.11 Local folder created with trailing space in the name, then copied to the Windows 2003 server = loss of security tab on this folder
    10.4.11 existing folder on the server has a trailing space added to the folder name = loss of security tab on this folder
    10.4.11 existing folder on the server has the trailing space REMOVED from the end of the folder name = security tab returns with permissions in tact
    10.5.x Local folder created with trailing space in the name, then copied to the Windows 2003 server = no problem
    10.5.x existing folder on the server has a trailing space added to the folder name = no problem
    10.5.x existing folder (created under 10.4.11) with trailing space in the folder name has the space removed = Error code 43, unknown error occured
    Also interesting is that the illegal characters for Windows \ / * : ? " | in the folder name prevent the folder being copied to the Windows 2003 server in 10.4.11, but are allowed in 10.5.x - all expect the : which is an illegal character in OS-X as well. None of these illegal characters cause issues on the Windows 2003 server as they are simply translated to a space.
    The solution would be either as AJ mentioned to purchase Thursby AdmitMac or to upgrade all the users to 10.5.x (which I'm sure would make Apple happier!)

  • Problem Oracle 10g database Installation on Windows 2003 Server

    Hi All,
    I am trying to face some problem to install oracle 10g database on windows 2003 server with service pack 2. Once I start to installation it give me an error "Error in writing to directory 'c:\documents and settings\administrator\local settings\temp\orainstall2004xxx'. Please ensure that this directory is writable and has at least 45MB of disk space. Installation cannot continue"
    I double-insured that there is enough disk-space and I am also in the Administrators-Group.
    Please guide me for the above problem although I have done oracle 9i database installation with the same configuration.
    Regards
    Muhammad Shoaib

    898118 wrote:
    Hi All,
    I am trying to face some problem to install oracle 10g database on windows 2003 server with service pack 2. Once I start to installation it give me an error "Error in writing to directory 'c:\documents and settings\administrator\local settings\temp\orainstall2004xxx'. Please ensure that this directory is writable and has at least 45MB of disk space. Installation cannot continue"
    I double-insured that there is enough disk-space and I am also in the Administrators-Group.
    Please guide me for the above problem although I have done oracle 9i database installation with the same configuration.
    Regards
    Muhammad ShoaibOracle really doesn't like to be installed into directories with spaces in their names.

  • Installing problem on Windows 2003 Server 64 bit

    Dear All,
    I'am trying to install XE onto a Windows 2003 Server 64 bit.. The installation process ends without any errors but the database itself seems not to start.
    I tried several hints that have been mentioned here within the forum. But none of them worked. While experimenting I saw that there is not a single registry entry of Oracle within HKEY_LOCAL_MASCHINE\Software .
    Is there a possiblity to set those needed registry entries manually? Is there a script for that purpose?
    Thank you very much for your help!
    Regards
    Matthias

    Hi,
    thank you for your reply. As 32bit programs should run under Windows 64bit I thought the XE should run under 64bit, too.
    The installation of XE itself seems to finish without any errors. But within the log files it can be read that the database has not started up due to a out of memory problem. This causes many log entries within all other logfiles as no database could be created.
    The out of memory problem might be the same as within Advice on running XE on a small virtual Linux host ("Virtuozzo") because I am using a virtual windows 2003 server with "Virtuozzo", too.
    At this time I am on discussing the issue with the provider. Maybe I will get a dedicated server with Windows Server 2003 64bit. Hopefully the XE could be installed on the 64bit Windows Server because 32bit dedicated servers are rare.
    Best regards
    Matthias

  • JVM crashes on Windows 2003  server

    HI
    I am running my java application program on Windows 2003 server. with the jre 1.4.2_03. but some how my java.exe gettting closed coz JVM crashes.
    is it b'coz of the jre version conflict with Windows 2003 server?
    is it a bug of jre1.4.2_03?
    Plese help me
    with regrads
    Jobin John

    HI
    im sure that JVM crashes,coz the next restart of mt
    Windows Server i am getting as java.exe closed
    problem with JVM.dll..If the VM crashes then there will be no VM.
    If the VM exits due to an unhandled throwable there will be no VM.
    If the VM exits due to a normal exit there will be no VM.
    If the VM does not exit (none of the above) then there will still be a VM.
    There is no case in which the last one would be referred to as a "crash".
    If your VM isn't exiting and you want it to exit then you should write your code such that it does in fact exit.
    Without more info than given no one can determine why your app isn't exiting but one usual reason is because you have a thread that hasn't terminated.

  • Windows 2003 Server Mounts as a Package. Why?

    This is a weird one. Y'all tell me how its even possible.
    At work, we have a Windows 2003 Server-based server. For the Mac's, we have two shared folders. Now, one of our Macs is a finely aged 800mhz G4 Quicksilver running 10.3.9. It has recently developed a problem. It thinks that one of the two shared folders that it logs into is a Package (as in a folder that has been turned into a single-click application). When you mount that folder, it has the correct icon, but instead of displaying its contents when you double-click it, it displays a dialog box that says "Item "FIRST SHARED FOLDER" is used by Mac OS X and cannot be opened." Looking at its Info pane, you find the shared folder is described as description of "Package" instead of "Volume".
    Please note that the other shared folder from the server works correctly, and that the other Mac's on the network, running everything from Mac OS 9 to Tiger have no problems with the server at all.
    PM G4 800mhz (Quicksilver), 640mb RAM   Mac OS X (10.3.9)   Connected via ethernet to a Windows 2003 Server with Appleshare/Mac Services activated

    Hi,
    Thanks for your post.
    According to the blog:
    http://blogs.technet.com/b/srinathv/archive/2014/09/17/prerequisite-and-support-matrix-microsoft-migration-accelerator-for-azure.aspx
    The following Operating Systems could migrate to Azure:
    Windows Server 2008 R2 (64 bit), R2 SP1 (64 bit) - Web, Standard, Enterprise, Datacenter editions. 
    Windows Server 2012 (64 bit), R2 (64 bit) - Standard, Datacenter, Essentials editions.
    It seems like there is no Windows server 2003. So i am afraid that it is not supported.
    Regards.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Maybe you are looking for

  • I can no longer minimize my dreamweaver window.

    Hi there, I'm not 100% sure if this question has already been answered on this site because I didn't get a chance to skim through all the posts. Anyway, up until a couple days ago I can no longer minimize my dreamweaver window. Now, I am not talking

  • Will photos app updated to permit add caption to picture like the iphoto before ios 8 kill it?

    Will Photos app be updated soon to permit add caption to picture like the iPhoto before ios 8 kill it? I used thad feature and now I don't now how can I do. thanks

  • Not connected to oracle

    hai all, i given the java coding as follows public static void main(String args[])           Connection con=null;           try                Statement st;                ResultSet rs;                String driver="sun.jdbc.odbc.JdbcOdbcDriver";    

  • BlackBerry bold 9700 hard lock

    I have a BlackBerry bold 9700 that needs to be unlocked. It's teling me to enter the Service Provider MEP code, I put more than 10 Times MEP Code wrongly. Now the phone is not accepting any SIM and I used up all 10 goes. What do I do now? i shall be

  • Cold backup with different dbname

    Hello, It's maybe a simple question but i want to move a database to a different server but also change the dbname. Can somebody tell me how to do it? We work with 9.2.0.5 Thanks in advance.