How delete a file

hi all
i use developer 6i on windows 2000 advanse server.
i want to delete a file that is in specific path on my hard disk (through my form in runtime).
in my form i use this command
HOST('DEL d:\filename.txt ');
but it doesn't work.
how could i do that?
thanks in advance
shoja.

and the second way without this line
Without? It's very strange. I will probably check this.
The following is just my opinion. I might be wrong. (Sorry for my English :) ):
If you read the OS documentation, you would find out that there are 2 types of commands in OS:
1. Internal command. It is a command which executes by "command processor". COMSPEC environment variable contains a name of the command processor.
2. External command. It is a command which is represented by external file (A file with .EXE, .COM, .BAT extensions).
Names of command processor are different in Win95 and NT. If you want to execute Internal commands, you should execute a command processor with '/c' switch. You should use COMMAND.COM in Win95/Win98 and you should use CMD.EXE in WinNT/Win2000. In both version you could use the COMSPEC environment variable to get the correct name of a command processor.
P.S. Also, you could use d2kwutil library (you can download it from metalink.oracle.com. Maybe you can dowload it from otn.oracle.com too). It works faster than DEL command, because you don't need to run (and load) any external programs.

Similar Messages

  • Yosemite on MacBook Air - Third time installed, now will not be startup disk.  Disk Utility says OK. Disk Warrior says 375 pages of bad .plist files.  How delete plist files?

    Yosemite on MacBook Air - Third time installed, now will not be startup disk.  Disk Utility says OK. Disk Warrior says 375 pages of bad .plist files.  How delete plist files?
    What does "Accessibility" mean?

    Had the same problem, finally realized that the FileVault Encryption was struck at 19%. Speed back up to normal after I disabled FileVault using terminal command - sudo fdesetup diable
    To check whether the FileVault is the culprit, go to System Preferences --> Security & Privacy --> FileVault to see if encryption is in progress.. For me the blue bar was less than a quarter with status 'estimating time remaining'..
    Then open Terminal and type in: sudo fdesetup disable
    It will then ask for the admin password (to be it asked twice), then it was disabled... Back to normal life again..
    Here is my terminal log for reference:
    Last login: Tue Oct 21 23:05:13 on console
    Gowthams-MBP:~ asgowtham$ fdesetup status
    FileVault is On.
    Encryption in progress: Percent completed = 18.80
    Gowthams-MBP:~ asgowtham$ fdesetup status
    FileVault is On.
    Encryption in progress: Percent completed = 18.80
    Gowthams-MBP:~ asgowtham$ fdesetup status
    FileVault is On.
    Encryption in progress: Percent completed = 18.80
    Gowthams-MBP:~ asgowtham$ sudo fdesetup disable
    Password:
    Enter a password for '/':
    ..fdes.
    FileVault has been disabled.
    Gowthams-MBP:~ asgowtham$ fdesetup status
    FileVault is Off.

  • How delete a file in mac os x?

    How delete a file in mac os x with a keyboard key? In windows would be removed whit delete.
    Thanks.

    Finally a solution that makes sense!  I can't seem to make it work though. Here's what I've done so far:
    Went to system prefs > keyboard > keyboard, checked "use F1, F2, etc.. as standard function keys.."
    Went to keyboard shortcuts > Application Shortcuts, clicked on "+"
    Selected  "Finder", entered "Move To Trash" (no ") and F12.
    Tested it.  It  opened the dashboard instead.
    Went back to "keyboard shortcuts", found F12 already assigned to open the dashboard, unchecked it.
    Tested again.  After a short "beep", the last file in the folder became highlighted.  That's it.
    Tried with F1. Same thing. Changed "Finder" to "All applications". Same thing.  "Help" doc was useless.
    I can't figure out what I'm doing wrong.  If you do, please let me know.  Thanks a lot.
    (Note: there is no check box next to the shortcut I created)

  • How delete music files from iPad Air mini

    I recently connected my new iPad to my husband's iMac trying to transfer some music files: unfortunatly iTunes automatically downloaded all the music files.
    Now, how can I delete this files or many of them???
    Thanks for your help.

    Connect to iTunes again and un-check the songs you don't want. Then re-sync

  • How delete podcasts files in ipad.

    I am not able to delete downloaded  files from podcasts

    If you are used to a Windows computer and now have an iPad, you might be thinking the same thing.  iOS doesn't want you to worry about files on your iPad, so everything is run through the apps themselves.
    If you need a bit more control of your files, you might like FileManger Pro, it's 4.99, but it will manage them through Dropbox, iCloud, etc.  Everything is now run throught the cloud usually, which means you might have to pay for Cloud Storage with a Apple device.  Hence cloud storage is popular these days, and also dangerous if you know a little about hacking. 
    Here are your file management options through another app you download with the App Store,
    Best File Management with iPad, iPhone:  http://bit.ly/X2KPHb
    Now if you do have a Windows, or a Mac Computer, plug it into your USB on your computer and install iTunes Software.  It will lManage your files through the iTunes Software.  First on iTunes go to your iPad button on the top right, then click on your Menu where it Says Apps, and manually control the Files from there.
    Dropbox is a helpful for a lot of this and the File Manger Pro will integrate the file management there, so it's worth the 4.99 for that option too, it also integrates with the iCloud and other Cloud option you may have.
    Here is my Blog, I hope to write more posts like this in the future.
    Sorry if it loads a little slow, hit refresh F5.
    Catalyst Web Designs Blog:  http://bit.ly/10eW92Q

  • How DELETE song file...won't allow me!?

    Imported songs from my husband's iPod into my pc. Cannot delete songs! Info is greyed out (cannot edit, etc). Says it might be write-protected. Used Windows Explorer and directly deleted file, but now there's an exclamation point next to file in iTunes. How do I COMPLETELY delete these song files!?

    There was a recent iTunes bug that prevented deleting. For now, just leave it in your library with the exclamation point. Next time you restart Windows, try again to delete it and it just may work. It did for me.

  • How to delete when file in use by the finder?

    I have two files in my trash which won't delete. I get the error that they are being used by another program. Holding down option, using secure empty trash, using the terminal method of deleting the trash.. none of them work.
    So I did the terminal command: lsof /path-to-file and found out it was being used by Finder. I don't think I can exactly quit the Finder process in Activity Monitor.. so how can I get these files out of my trash?

    Thanks. Unfortunately, when I quit finder and try to delete the files in the trash by the following command:
    sudo rm -rf ~/.Trash/*
    It tells me "Directory not empty". Argghh..
    I feel like I've tried everything. Can someone give me some other suggestions? Thanks

  • How to delete a file from application server?

    Hi gurus,
    i want delete a file from application server . can any one tell me the BAPI/Fm .
    thanks in advance

    See the replies of the thread;
    How to delete  File from the Application Server,ABAP
    But i can smell something fishy in both  The specified item was not found. and The specified item was not found. style of posting questions. Also both of you have similar questions in your profile....
    Hmmm, Mods have to take care of the Rest...
    Regards
    Karthik D

  • How do you delete .pdf files?

    How do you delete pdf files from android Adobe Reader?  I  can delete the files, how do I
    delete the file name from the Adobe Reader file list, especially duplicate file names.
    someone  please help me. this will have to be done from  within the Reader, I  think. ?

    The full instructions are here: http://learn.adobe.com/wiki/display/readermobile/Android+FAQ.
    Ben

  • Question:  why isn't how to delete a file available.

    How come you have to search for the information on how to delete a file from Adobe Reader.   This should be in the instructions on how to use with how to download.  Does anyone agree?

    If it is a system file and even if the file is corrupted, it cannot be deleted.
    Try reinstalling phone software using Nokia suite if the phone supports Nokia suite and an USB port.
    -------------------If this post helped you, click on accept as solution.------------------
    -----------------------------Appreciate by clicking on white star.----------------------------

  • How do I delete a file from Reader?

    How do I delete a file from Adobe Reader?

    Files are not kept "in" Adobe Reader, but on your local disk, or at Acrobat.com
    Do you want to delete entries from the "recent" file list?

  • How do I delete a file from the Adobe Reader for iOS?

    How do I delete a file from the Adobe Reader for iOS?

    Read this:
    http://forums.adobe.com/thread/1012973?tstart=0

  • How can I delete a file from Adobe Acrobat Reader DC?

    How can I delete a file from Adobe Acrobat Reader DC?

    What operating system do you use? Where do you store the files?

  • How to delete a file from adobe reader on a Acer tablet

    I no longer require some pdc files in Adobe Reader.  How do I remove

    You can delete files in either of the two ways:
    1. Go to the documents tab in the File Browser -> long press on the pdf file that you want to delete - > delete the file
    2. Go to the documents tab -> Click on the Edit button in the top bar -> select the check boxes next to the files that have to be deleted -> Click on the trash icon in the top bar to delete the file.
    Hope this helps.
    Thanks.

  • How do i delete Older files from the directory before create a new file?

    Hi,
    How do i delete older files in a particular directory,
    the senorio is count the number of .txt files in a directory and delete the older files if file count is more than 10. (if i add 11th file the very first file has to be deleted)
    i have written the code to count the files and delete , but it is deleting all the files instead of older file
    public class ExtensionFilter implements FilenameFilter {
      private String extension;
      public ExtensionFilter( String extension ) {
        this.extension = extension;            
      public boolean accept(File dir, String name) {
        return (name.endsWith(extension));
    public class FileUtils{
      public static void main(String args[]) throws Exception {
        FileUtils.deleteFiles("c:/countfile/", ".txt");
      public static void deleteFiles( String directory, String extension ) {
        ExtensionFilter filter = new ExtensionFilter(extension);
        File dir = new File(directory);
        String[] list = dir.list(filter);
        File file;
        if (list.length == 0) return;
        for (int i = 0; i < list.length; i++) {
          //file = new File(directory + list);
    file = new File(directory, list[i]);
    if ((list[i]).length()>=10)
         System.out.print(file + " deleted : " + file.delete());
    Thanks,
    Jamin Rosina                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    What your code is doing now, is deleting all filenames that are longer than 10 characters.
    Your problem lies in the line:
    if ((list).length()>=10)

Maybe you are looking for

  • Row Level Security - Data filter - Roles Variable Not working in OBIEE 11.1.1.7.1

    Hi all, Previously, we were using OBIEE 11.1.1.5.0 and we were able to assign users to application roles by using the initialization block to assign the ROLES session variables. 1. My USER_SECURITY table in Oracle database: USER_NAME | USER_ID | ROL

  • Are my iPhone pictures on my Mac now?

    When I open iPhoto  I look the top left and I see gray bar with headings Library, Recent, Shared, and Albums going down the left hand side and sub headings like Events, Photos, Faces, Places, etc. I do not see recent pictures in the Library > Photos

  • Write Back Error OBIEE 11g

    I am facing the following error massege in writeback funtionality. I checked the value ,connection pool,writable,read/write permissions but not resolved the issue. "An error occurred while writing to the server. Please check to make sure you have ent

  • Security issue in OBIEE

    We have Dashboard 'AAAAA' where all the reports to this Dashboard are coming from Shared folder 'bbbbbb' .Do i have the previlege to hide the shared folder 'bbbbbb' to all the users and give access only to Dashboard 'AAAAA'. In general users want to

  • Third-Party Travel Planning with Amadeus E-Travel

    Hi all, I've just started to work with my client and Amadeus on implementing the third party travel planning functionality for integration between ECC (ERP 6.0 EHP6) and AeTM (the Amadeus e-Travel Management booking tool). I was wondering if anyone h