Creating a file in a removable disk in runtime

Hi,
I want ti create a binary file in a removable flash card in run time. I am using win xp. this removable drive in in IDE channel as a master. there is no user interaction with the application.therefore how do i make sure the i am creating the file in the correct volume?

You should be able to detect if a given drive is removable by using Win32 API function GetDriveType (): you'll need to #include windows.h to your code.
On my systems it correcftly detects a USB stick.
Among Volume Management Functions there are several functions that may come in handy when you need to perform non-trivial functions on disks.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • Application cannot start because it cannot create needed files. Not enough disk space

    Hi,
        I have adobe director 11.5 and Macromedia MX 2004 versions installed in my machine. The projector created from the MX 2004 version used to work properly even after the 11.5 upgrade. I recently got the error  "Application cannot start because it cannot create needed files. Not enough disk space", whenever I run the projector. Has anyone come across this issue before?
    Thanks,
    Nandhini

    Where is the projector located?  Do you have read/write permissions in that folder?  This is a problem I have seen if I am running a projector on a network share where the projector will not be allowed to save files (temp files etc) in that folder.  Even if you don;t think it needs to save these files, it will come up with this error.  Try copying the file to your local machine and see if it works better.  If you are already running it on your local machine, and in a "safe" location within your user folder, then this is not the answer you are looking for and something else is going wrong.

  • When i try to publish my changes it gives me a msg saying "can't create the file "feed.xml" The disk may be damaged or full or you may not have sufficient access privileges" Not sure why its saying that or how to fix it

    Any help would be greatly appreciated! Thanks!

    Try the troubleshooting steps under "Fix iWeb" here...
    http://www.iwebformusicians.com/iWeb/iWeb-Tips.html

  • Will the Zen Micro removable disk work with a Mac Comput

    I know that certain macs have a USB port, so is it compatible with the ZM removable disk? Can I plug my ZM into the Mac via USB port, and transfer files through the removable disk function?

    Yes, the removable disk will work with the Mac.

  • Using The Removable Disk Opt

    Hey! I have a Creative zen Gb and I've turned 52Mb into a removable disk for storage and now I can't change it back to be 0Mb. I've deleted all the files in the removable disk and erased the free space but still it won't give me the option of reducing the size of the removable disk...
    Any ideas gratefully received.
    Oli'ver

    Extras->Removable Disk, then press *and hold* the Back button till a menu appears. Then choose 'Disable.

  • How can I remove files from the startup disk

    I am getting a screen when I am trying to quit saying   the "MAC OS X startup disk has no more space available for application memory"  by closing the windows and removing files from the startup disk will help.
    How do I do this?

    That error message is misleading. Your problem is excessive swapping of data between physical memory and virtual memory.
    That can happen for two reasons:
    You have a long-running process with a memory leak (i.e., a bug), or
    You don't have enough memory installed for your usage pattern.
    Tracking down a memory leak can be difficult, and it may come down to a process of elimination.
    In the Activity Monitor application, select All Processes from the menu in the toolbar, if not already selected. Click the heading of the  Real Mem column in the process table twice to sort the table with the highest value at the top. If you don't see that column, select
    View ▹ Columns ▹ Real Memory
    from the menu bar.
    If one process (excluding "kernel_task") is using much more memory than all the others, that could be an indication of a leak. A better indication would be a process that continually grabs more and more real memory over time without ever releasing it. Here is an example of how it's done.
    The process named "Safari Web Content" renders web pages for Safari and other applications. It uses a lot of memory and may leak if certain Safari extensions or third-party web plugins are installed. Consider it a prime suspect.
    If you don't have an obvious memory leak, your options are to install more memory (if possible) or to run fewer programs simultaneously.
    The next suggestion is only for users familiar with the shell. For a more precise, but potentially misleading, test, run the following command: 
    sudo leaks -nocontext -nostacks process | grep total
    where process is the name of a process you suspect of leaking memory. Almost every process will leak some memory; the question is how much, and especially how much the leak increases with time. I can’t be more specific. See the leaks(1) man page and the Apple developer documentation for details.

  • TS2167 i'm getting an error message.. can't create the file "header.jpg." The disk may be damaged or full, or you may not have suuficient access priveleges.

    I need to publish to a local folder on my desk top and I am getting this error message.
    can’t create the file “header.jpg.” The disk may be damaged or full, or you may not have suuficient access priveleges.
    Please help... I need to copy to a disk... it was working fine until I attached a big project, I tried to delete the project, but still not workng.

    Try the following:
    1 - delete the iWeb preference file, com.apple.iWeb.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iWeb's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iWeb folder (Snow Leopard and Earlier).
    3 - launch iWeb and try again.
    NOTE:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    OT

  • I have an hd movie on final cut pro x; i want to create an sd disk of that movie. compressor created 2 files: dolby.... and mpeg2. How do I get these files burned to disc to create my sd movie?

    I have an hd movie on final cut pro x; i want to create an sd disk of that movie. compressor created 2 files: dolby.... and mpeg2. How do I get these files burned to disc to create my sd movie?

    These are elementary streams and they would be used by DVD authoring apps that use them for reasons like foreign language capability. Examples would be DVD Studio Pro, Adobe Encore, Toast.
    The most straightforward way to burn your DVD is either to use the Share feature in FCP or the Batch Template feature in Compressor.
    If you can find a boxed copy of iLife (try Amazon), it should have iDVD as part of the suite of apps. iDVD offers far more complete authoring capability than FCP or C4. iDVD  doesn't work with elementary streams; you'd just drag in your HD movie and you'd be good to go.
    Good lluck.
    Russ

  • I keep getting write errors (-50) when I try to create new files or folders on my Gen 5 Airport Extreme USB disk.

    Write errors (-50) when I try to create new files or folders on my Airport Extreme USB disk. Restarting the Airport Extreme seems to solve the issue. Any idea why this occurring? It doesn't seem to be OS specific, meaning I can't write to the drive from a Windows PC or a MacBook Pro.

    Although, I would consider it rare, it is quite possible that this drive is just not 100% compatible with the AirPorts. Typically, in these cases, the AirPort will not even recognize the drive at all ... or it will, but not allow you to access it. I actually haven't come across a case where you can read but not write to a drive consistently or vice versa ... except from Windows-based computers. Sorry!

  • Disk Utility - Erase Free Space - Creating Temporary File Freezes

    BDAqua:  I tried responding to your reply to my original posting but I get an error message that I was not authorized to reply.  I logged out.  I can't find the original posting in my Activity so I approached from the link in my e-mail saying you had replied.  Now it says the area is restricted.  What's up with that?
    Rod
    Here's the original post:
    I used "Erase Free Space" with Disk Utility after trashing several files I no longer wanted on the hard drive or recovered.  I used  "Zero Out Deleted Files" option.  It took over 12 hours before an error message appeared "Your start up disk is almost full.  You need to make more space available on your start up disk by deleting files."   I thought that was what I was doing.  Disk Utility continued but got stuck on "Creating Temporary File."  I force quit Disk Utility after several more hours.  I had to manually shut down the computer because the restart command wouldn't work.  It rebooted and appears to be OK.   Evidently, this temporary file consumes significant amounts of disk space. This is an older iMac with 10.4.11 (18 GHz PowerPC G5) - I know, pretty old but I still have OS 9 on it and several files I need to extract before I trash it.
    1.  Should I do nothing?  The iMac seems to be working fine.
    2.  How do I know if this Temporary File exists and consuming space?  Spotlight doesn't find it.  Where is it?
    3.  Is my start up disk in fact almost full?  How would I know that?

    Here's what I tried to say in my response that I wasn't authorize to make:
    I can't seem to reply to your response BD . . . says I'm not authorize . . . so I'll try to reply to my original post.
    Thanks BD for your reply.  Here's the info on the drive:  1.3 TB capacity with 1,017 GB available.  Eventually I will recycle the computer at Best Buy who guarantees the hard drive will be erased.  I just want to get all my files off first.  I'll just do another Erase Free Space and see, as you suggest, if there are any files to be zeroed out.  Maybe there aren't any.  I've extracted most of what I want but am debating how to move the entire iPhoto library to an external drive so I can access it from my Mavericks machine.  Can I just drag and drop the iPhoto Library, or do I need to export it somehow?

  • Disk Utility - Erase Free Space - Creating Temporary File Freeze

    I used "Erase Free Space" with Disk Utility after trashing several files I no longer wanted on the hard drive or recovered.  I used  "Zero Out Deleted Files" option.  It took over 12 hours before an error message appeared "Your start up disk is almost full.  You need to make more space available on your start up disk by deleting files."   I thought that was what I was doing.  Disk Utility continued but got stuck on "Creating Temporary File."  I force quit Disk Utility after several more hours.  I had to manually shut down the computer because the restart command wouldn't work.  It rebooted and appears to be OK.   Evidently, this temporary file consumes significant amounts of disk space. This is an older iMac with 10.4.11 (18 GHz PowerPC G5) - I know, pretty old but I still have OS 9 on it and several files I need to extract before I trash it.
    1.  Should I do nothing?  The iMac seems to be working fine.
    2.  How do I know if this Temporary File exists and consuming space?  Spotlight doesn't find it.  Where is it?
    3.  Is my start up disk in fact almost full?  How would I know that?
    Thanks!

    Then I would not do any secure erasing. It's exceptionally time consuming and unnecessary. Before you take it in for recycling boot it from your OS X installer DVD. Do this:
    Drive Partition and Format
    1. Boot from your OS X Installer Disc. After the installer loads select your language and click on the Continue button.  When the menu bar appears select Disk Utility from the Utilities menu.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Apply button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    A one-pass Zero Data option is all that is required to prevent access to your erased files.

  • Publish error "Can't create the file "......."  The disk may be damaged...

    Here is the full message.
    Can’t create the file “ACRfull logo.jpg.” The disk may be damaged or full, or you may not have sufficient access privileges.
    I had this the other day too and I was able to get around it by changing two of the pictures; however, I took all of the pictures with my own phone and some of these are logos that are small. How do I fix this error message.
    I appreciate the help!

    Joshua ~ Welcome to the discussions. If simply re-starting iWeb doesn't help, this may:
    "Go to Finder -> HomeFolder -> Library
    Move entire folder "Caches" to desktop
    Restart iWeb and publish
    It may work now
    You can now delete "Caches" folder in desktop."
    More suggestions may be found by doing THIS.

  • I received this message on iWeb: Can't create the file "Mod_footer_bg.jpg." The disk may be damaged or full, or you may not have sufficient access privileges.

    I made some changes to my iWeb site, and when I try to publish it, I get the error message: Can’t create the file “Mod_footer_bg.jpg.” The disk may be damaged or full, or you may not have sufficient access privileges.
    What do I do now?

    Try the troubleshooting steps under "Fix iWeb" here...
    http://www.iwebformusicians.com/iWeb/iWeb-Tips.htm

  • Iweb - when I ask to publish my site ( using ftp) I am suddenly receiving this errorCan't create the file "logo.jpg." The disk may be damaged or full, or you may not have sufficient access privileges. Any ideas please

    Can’t create the file “logo.jpg.” The disk may be damaged or full, or you may not have sufficient access privileges.

    How much free space do you have on your hard drive?  What system and iWeb versions do you have?
    Try the following:
    1 - delete the iWeb preference file, com.apple.iWeb.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iWeb's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iWeb folder (Snow Leopard and Earlier).
    3 - launch iWeb and try again.
    NOTE: In Lion and later the Home/Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and press the Return key - 10.7: Un-hide the User Library folder.
    If you're running Mavericks or Yosemite  go to your Home folder and use the View ➙ Show View Options menu to bring the this window:

  • My iWeb Account wont update it says Can't create the file "mwmac_white.png." The disk may be damaged or full, or you may not have sufficient access privileges... This has never happend  I deleted other sources on website and still wont work? Suggestions?

    My iWeb Account wont update it says Can’t create the file “mwmac_white.png.” The disk may be damaged or full, or you may not have sufficient access privileges... This has never happend  I deleted other sources on website and still wont work? Suggestions?

    Welcome to Apple Support Communities.
    This is the image contained in the file causing the problem...
    I certain the original is contained in the Combo updates and on the OS disks.
    As a temporary fix, click on the image above to open it.
    Use Screen capture (Shift+Command+4) and click on the opposite corners of the image.
    It will be saved as a Screen shot 2011-mm-dd at hh:mm.png
    Right click on the filename in Finder and rename it to mwmac_white.png
    I'm not certain, but the file might need to be moved into the Documents directory in the Subdirectory named for the website name you are editing. That's where it is on my system, but I moved a bunch of files when I restored from Time Machine about 18 months ago.
    I also have many copies of mwmac.png, a separate copy one for each web page where the image appears in my website.

Maybe you are looking for

  • X220 sound crakling or completely not working

    Hi guys, I have a 3 months old X220 i5 sandybridge with Intel Wireless running windows XP sp3. The Conexant 20672 built-in soundcard had some problems already from the start with a it sometimes going silent all of a sudden or crackling. I updated to

  • Low resolution idvd's

    When I burn a dvd from Aperture the pictures are sharp and clear on my hi-def MacBook Pro 17"screen. When I burn a dvd through idvd it is not a picture I'd show anyone. I told at least 3, one to one instructors, I planned to duplicate dvds to sell. N

  • Add-On page will not display properly

    Using Firefox 28.0 and when I go to the Get Add-On tabs the page does not render correctly. I basically get plain text and hyperlinks. The other tabs work fine. Same thing happens when I attempt to open https://addons.mozilla.org/en-US/firefox/ in th

  • How to import a value from HCM process and forms to workflow?

    Hi Experts,     i am new to HRASR_DT T.Code , I had  designed a form in Form scenario and process in that T.code . I linked that process with workflow. i had the Employee Number field in Form , i want to IMPORT that employee number into my workflow c

  • Sad Ipod wont go away!!!

    My Ipod recently stop wor4king after I disconnected it from my computer. It now has a sad icon and switches from that to the black screen with the apple logo. what is their to do?