Problem with deleting files !!
I want to delete file, but for some extensions it is not possible, how can I delete all files?
I use
myFile.delete();
How about the return value from your delete call, is it "true"? What happens when you try to delete the file via your OS? Why do you seem to think that this behavior is specific to certain file extensions? Which extensions are you having trouble with?
Sorry for all the questions. Just as a guess, I think the most common reason for a delete call not to work on a Windows box is because the file is in use by some other program - an editor, or maybe a web server. Trying to delete the file via the OS might give you a better idea of why it's not deleting.
good luck
Lee
Similar Messages
-
Problems with deleting files to the trash
I cant delet files to the trash. The only option is to delet permanently.
"The file wil be deleted immediately, are you shure you want to proceed?"
(bad translation from norwegian)
can anyone please help me?
-w-W, Welcome to Apple Discussions.
Choose your Home folder and "Get Info" (command-i). Under "Ownership & Permissions" be sure you have "Read & Write" privileges. Under "Details", be sure you are the owner.
-mj
[email protected] -
Problem with deleting files from new Zen St
I recently bought a Zen Stone and today needed to delete some files. Did this from Windows (like with my Zen Nano), but this did not free any space on the Stone.
Went to browse files (albums) on Stone and found several names that did not show up in either a Windows Explorer or Media Lite search.
Apparently when I deleted the old files, they did not actually get deleted (guess I have to use Media Lite to do this)
Any suggestions as to how to remove these files without reformatting?Hi,
Do you expect anyone to read that? Please use code formatting when you post code. See the formatting tips:
http://forum.java.sun.com/help.jspa?sec=formatting
Kaj -
Problems with deleting files i have tried all please help
my problem is I already delete all the files form my ipod mini and reset it several times the problem is the ipod mini is a 4GB but I have no files on it a my free space is of 2.3GB and I don't know what to do so I can use all the memory again because I already delete everything and still the memory acts like if there was music or files on it.
help pleasegustavo,
Restore the iPod to factory settings. -
Hi, the problem of deleting files / videos seeds desktop to go into Terminal and then sudo rm-rf ~ /. Trash Pohangina the answers I've had e of someone in her forum but when I write procedures line in Terminal as the Krever my password and it can not write anything there, I write but nothing comes and my problem is not löst.När I want to delete the movie / video image Frin desktop still arrive Finder wants to make changes.Type your password to allow this. But even that I type my password file / video is left I need help in an easier way or another set-even those on the terminal that I can not type my password to solve the problem Regards Toni
If you want to preserve the data on the boot drive, you must try to back up now, before you do anything else.
There are several ways to back up a Mac that isn't fully working. You need an external hard drive to hold the backup data.
1. Boot from the Recovery partition or from a local Time Machine backup volume (option key at startup.) Launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.”
2. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, boot the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
3. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data. -
Problem with URL File download
Hi every one i am facing a problem with URL File read Technique
import java.awt.Color;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
public class JarDownloader
boolean isSuccess = false;
public JarDownloader(String url)
downloadJar(url);
public boolean isDownloadingSuccess()
return isSuccess;
private File deleteExistingFile(String filename)
File jarf = new File(filename);
if(jarf.exists())
jarf.delete();
return jarf;
public static void main(String args[]){
new JarDownloader("url/filename.extension");
private void downloadJar(String url)
try
URL jarurl = new URL(url);
URLConnection urlc = jarurl.openConnection();
urlc.setUseCaches(false);
urlc.setDefaultUseCaches(false);
InputStream inst = urlc.getInputStream();
int totlength = urlc.getContentLength();
System.out.println("Total length "+totlength);
// If the size is less than 10 kb that means the linkis wrong
if(totlength<=10*1024)throw new Exception("Wrong Link");
JFrame jw =new JFrame("Livehelp-Download");
JPanel jp =new JPanel();
jp.setLayout(null);
JLabel jl = new JLabel("Downloading required file(s)...",JLabel.CENTER);
jl.setBounds(10,10,200,50);
jp.add(jl);
JProgressBar jpbar = new JProgressBar(0,totlength);
jpbar.setBorderPainted(true);
jpbar.setStringPainted(true);
jpbar.setBounds(10,70,200,30);
jpbar.setBackground(Color.BLUE);
jp.add(jpbar);
jw.setContentPane(jp);
jw.pack();
jw.setResizable(false);
jw.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
jw.setLocationRelativeTo(null);
jw.setSize(220,150);
jw.setVisible(true);
int readlngth=0;
int position=0;
byte[] readbytes = new byte[totlength];
while(totlength-position > 0)
readlngth = inst.read(readbytes,position,totlength-position);
position+=readlngth;
jpbar.setValue(position);
File jarf = deleteExistingFile(filename);
jarf.createNewFile();
//FileWriter fwriter=new FileWriter(jarf,true);
FileOutputStream fout = new FileOutputStream(jarf,true);
DataOutputStream dout = new DataOutputStream(fout);
dout.write(readbytes);
dout.flush();
dout.close();
inst.close();
jw.setVisible(false);
jw.dispose();
isSuccess=true;
}catch(Exception ex)
isSuccess=false;
}From the above code i received the total length of the PAGE content (i.e here url is a file) when i tried to find the size of that file it return -1.
please help meI think the real problem is that you don't check the return value from read (it's probably less than data.length indicating an incomplete read). Isn't there a readFully somewhere?
-
SFTP MGET of large files fails - connection closed - problem with spool file
I have a new SFTP job to get files from an FTP Server. The files are large (80mg, 150mg). I can get smaller files from the ftp site with no issue, but when attempting the larger files the job completes abnormally after 2 min 1 sec. each time. I can see the file is created on our local file system with 0 bytes, then when the FTP job fails, the 0 byte file is deleted.
Is there a limit to how large an ftp file can be in Tidal? How long an ftp job can run?
The error in the job audit is Problem with spool file for job XXXX_SFTPGet and an exit code of 127 (whatever that is).
In the log, the error is that the connection was closed. I have checked with the ftp host and their logs show that we are disconnecting unexpectedly also.
Below is an excerpt from the log
DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.055 : Send : Name=SSH_FXP_STAT,Type=17,RequestID=12
DEBUG [SSH2Channel] 6 Feb 2015 14:17:33.055 : Transmit 44 bytes
DEBUG [ChannelDataWindow] 6 Feb 2015 14:17:33.055 : Remote window size decreased to 130808
DEBUG [PlainSocket] 6 Feb 2015 14:17:33.071 : RepeatCallback received 84 bytes
DEBUG [SSH2Connection] 6 Feb 2015 14:17:33.071 : ProcessPacket pt=SSH_MSG_CHANNEL_DATA
DEBUG [SFTPMessageFactory] 6 Feb 2015 14:17:33.071 : Received message (type=105,len=37)
DEBUG [SFTPMessageStore] 6 Feb 2015 14:17:33.071 : AddMessage(12) - added to store
DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.071 : Reply : Name=SSH_FXP_ATTRS,Type=105,RequestID=12
DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.071 : Send : Name=SSH_FXP_OPEN,Type=3,RequestID=13
DEBUG [SSH2Channel] 6 Feb 2015 14:17:33.071 : Transmit 56 bytes
DEBUG [ChannelDataWindow] 6 Feb 2015 14:17:33.071 : Remote window size decreased to 130752
DEBUG [PlainSocket] 6 Feb 2015 14:17:33.087 : RepeatCallback received 52 bytes
DEBUG [SSH2Connection] 6 Feb 2015 14:17:33.087 : ProcessPacket pt=SSH_MSG_CHANNEL_DATA
DEBUG [SFTPMessageFactory] 6 Feb 2015 14:17:33.087 : Received message (type=102,len=10)
DEBUG [SFTPMessageStore] 6 Feb 2015 14:17:33.087 : AddMessage(13) - added to store
DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.087 : Reply : Name=SSH_FXP_HANDLE,Type=102,RequestID=13
DEBUG [SFTPMessage] 6 Feb 2015 14:17:33.087 : Send : Name=SSH_FXP_READ,Type=5,RequestID=14
DEBUG [SSH2Channel] 6 Feb 2015 14:17:33.087 : Transmit 26 bytes
DEBUG [ChannelDataWindow] 6 Feb 2015 14:17:33.087 : Remote window size decreased to 130726
DEBUG [PlainSocket] 6 Feb 2015 14:17:33.118 : RepeatCallback received 0 bytes
DEBUG [SFTPChannelReceiver] 6 Feb 2015 14:17:33.118 : Connection closed: (code=0)
ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 : Disconnected unexpectedly ( [errorcode=0])
ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 : EnterpriseDT.Net.Ftp.Ssh.SFTPException: [errorcode=0]
ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 : at EnterpriseDT.Net.Ftp.Ssh.SFTPMessageStore.CheckState()
ERROR [SFTPMessageStore] 6 Feb 2015 14:17:33.118 : at EnterpriseDT.Net.Ftp.Ssh.SFTPMessageStore.GetMessage(Int32 requestId)I believe there is a limitation on FTP and what you are seeing is a timeout built into the 3rd party application that tidal uses (I feel like it was hardcoded and it would be a big deal to change but this was before Cisco purchased tidal) there may have been a tagent.ini setting that tweaks that but I can't find any details.
We wound up purchasing our own FTP software (ipswitch MOVEit Central & DMZ) because we also had the need to host as well as Get/Put to other FTP sites. It now does all our FTP and internal file delivery activity (we use it's api and call from tidal if we need to trigger inside a workflow) -
On Windows 8.1 RTM, the SkyDrive metro client shows a message that "Files can't be uploaded because there's a problem with a file or folder." and lists one particular file. When I installed the PC, I have switched then Access all files offline
option to On.
The file resides in a directory I have deleted from the disk. When attempting to get rid of this "problem" (as there are no hints nor UI available) I have manually checked that the directory does not exists on the disk any more, as well as deleting
the directory from cloud storage using a web browser. However, the message is still there.
Restarting the computer several times nor keeping it idle for a significant amount of time did not help.
How to get rid of that "problem" / how to fix it?Hi
Let’s try to redirect the skydrive folder and sync again to see what’s going on:
1. Open regedit and find following key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\SkyDrive
2. Change “UserFolder” to another location.
3. Open the SkyDrive Metro app to confirm your files and new directory.
Then check the issue again.
Regards,
Kate Li
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Have a problem with deletting a folder that has 100+'s folders in it that are locked. Please help.
Put the folder into the trash - go to the Finder menu and hold down the alt key whilst selecting Empty Trash.
I've never tried this with a folder full of locked files, but it certainly works with a single locked file.
Hope that helps! -
Problems with .ARW files and auto toning
problems with .ARW files and auto toning
let me try to explain this because this has happened in past and never found a way to resolve but i lived with it
now that I have a Sony A7R the problem is more serious
Firstly i take pride it making the picture happen all in camera, i use DRO lvl 5 to get enough light, like when i'm shooting at dusk. DRO its like doing HDR but in a single file, it lightens the darks. in my camera i'm happy with results
but when I upload them to lightroom, they come out near black.
allow me to explain
lets say I import 100 images
i double check my preferences and everything is UNCHECKED when it comes to importing options, there is no auto toning, nothing.
as the images import i see a preview in the thumbnail which looks fine.
i double click on one to enlarge it, hence leave grid view.
for a brief 1 or 2 seconds, i see the full image in all its glory but than lightroom does something funny, it darkens the image
one by one as it inspects each image, if it was a DRO image it makes it too dark.
to make this clear, the image is perfect as it was in the beginning but after a few seconds lightroom for some reason thinks it needs to correct it.
how to prevent lightroom from doing this, i want the image exactly as it is, why must lightroom apply a correction>?
i think it has to do something with interpreting the raw file and lightroom applies its own algorithm.
but here is what i dont get.....before lightroom makes the change i'm able to witness the picture exactly as it was taken and want it unchanged..
now i have to tweak each file or find a profile for it which is added work.
any ideas how to prevent lightroom from ruining my images and just leave them as they were when first detected...
there are 2 phases...one is when it originally imports and they look fine
second is scanning each image and applying some kind of toning which darkens it too much.
thanks for the helpsorry thats the auto reply message from yahoo email.
i've disabled it now
thing is, there is no DRO jpg to download from the camera
its only ARW. so my understanding is when i use DRO setting, the camera makes changes to the ARW than lightroom somehow reads this from the ARW.
but then sadly reverts it to no DRO settings.
because i notice if i take normal picture in raw mode its dark but if i apply dro to it, it comes out brighter, yet when i d/l the image from camera to lightroom, which is an ARW - there are no jpgs. lightroom decides to mess it up
so in reality there is no point in using DRO because when i upload it lightroom removes it.
is there a way to tell lightroom to preserve the jpg preview as it first sees it.
its just lame, picture appears perfect...than lightroom does something, than bam, its ruined,.
what do i need to do to prevent lightroom from ruining the image? if it was good in the first place. -
Problems with compressing files with right hand click. it does not work.
Problems with compressing files with right hand click.
I am using the compress function in the Mac OS (File > Compress XX) from time to time. Today it does not work anymore. OS 10.5.6
I get a message: The content list cannot be created for compressing.
I tried it with files and folders and keep getting this message. Anybody any idea as to how to fix thisThanks I love my macbook!!!!
I also got further problems such as copy-paste not working etc.
so I fixed it just this morning by running Applejack 1.5 and am back up running noticing your post.
thanks for helping though! -
Hi,
Iam facing with one problem.I have one swing interface through which I can upload files(back end servlet programme).Now I can upload all types of file but problem with image file it uploading perfectly that means size of the uploaded file is ok but its format damaged.It can not be open.My backend servlet programme is ok coz i tested it with html form it is working perfectly.Problem with swing interface.Plz guide me where I done a mistake.Below r my codes:-
ImageIcon Upload=new ImageIcon("images/Upload.gif");
Button=new JButton(Upload);
Button.setToolTipText("Upload");
Button.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
int returnVal = fc.showOpenDialog(ActionDemo4.this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
String aa=file.getAbsolutePath();
textArea3.append(aa);
textArea2.append("Local URL:");
long l=file.length();
try
byte buff[]=new byte[(int)file.length()];
InputStream fileIn=new FileInputStream(aa);
int i=fileIn.read(buff);
String conffile=new String(buff);
String str1=textArea10.getText();
url = new URL ("http://127.0.0.1:7001/servletUpload?x="+str1);
urlConn = url.openConnection();
urlConn.setDoInput (true);
urlConn.setDoOutput (true);
urlConn.setUseCaches (false);
urlConn.setRequestProperty("Content-Type","multipart/form-data;boundry=-----------------------------7d11e410e500f2");
printout = new DataOutputStream (urlConn.getOutputStream ());
String content ="-----------------------------7d11e410e500f2\r\n"+"Content-Disposition: form-data;"+"name=\"upload\"; filename=\""+aa+"\"\r\n"+"Content-Type: application/octet-strem\r\n\r\n\r\n"+conffile+"-----------------------------7d11e410e500f2--\r\n";
printout.writeBytes(content);
printout.flush ();
printout.close ();
Best Regards
BikashThe errors are here:
byte buff[]=new byte[(int)file.length()];
InputStream fileIn=new FileInputStream(aa);
int i=fileIn.read(buff);
String conffile=new String(buff); (conffile is a String object containing the image)
and here:
String content ="-----------------------------7d11e410e500f2\r\n"+"Con
ent-Disposition: form-data;"+"name=\"upload\";
filename=\""+aa+"\"\r\n"+"Content-Type:
application/octet-strem\r\n\r\n\r\n"+conffile+"--------
--------------------7d11e410e500f2--\r\n";
printout.writeBytes(content);conffie is sent to the server but
it's non possible to treat binary data as String!
Image files must be sent as byte[] NOT as String ...... -
What is the exact problem with this file?
Hi all,
There is an old form , which was not in use from many days.
Now when we tried to run the form, i got the error saying "FRM-40734:Internal Error:Pl/SQL error occured.", in the login form.
When i tried to open the fmb file in Oracle Forms Builder 6i, i got the following error:
FRM-10102: Cannot attach PL/SQL library d2kwutil. This library attachment will be lost if the module is saved., but the fmb file got open.
The login button has the following code:
DECLARE
UNAME VARCHAR2(30);
--USER_ID PARAMLIST;
V_USER APUSERMA.USER_NAME%TYPE;
V_PASSWED APUSERMA.USER_PASSWD%TYPE;
BEGIN
select user_CD INTO :GLOBAL.USER_ID from apuserma
where user_CD = :TI_USER_NAME AND user_PASSWD = :IT_USER_PASSWD
AND SYSDATE BETWEEN USER_VALID_FRM AND USER_VALID_TO;
:global.user_id := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
:global.compname := :compname;
compnm(:compname);
--USER_ID := CREATE_PARAMETER_LIST('USER_id_NAME');
call_form('Forms\MAIN_SCREEN',hide,DO_REPLACE);
exception
when no_data_found then
MESSAGE('Incorrect Username or Password. Please Re-Enter');
message(' ');
RAISE FORM_TRIGGER_FAILURE;
END;
EXIT_FORM;
When i tried to compile, i got error saying ,
Error 201 at line 10, column 28
identifier 'WIN_API_ENVIRONMENT.READ_REGISTRY' must be declared.
I am not getting to know What is the exact problem with this file?
Help me with this please.
Thank You.
Oracle forms builder 6i.
Oracle 9i.Vijetha wrote:
I also want to know what is the use of win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername') ??
What does it do??
If i comment the following line , will it be a problem??
:global.user_id := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
Because i commented the above line & compiled, so it is not giving any error now.
So please tell me what win_api_environment.read_registry does??
it's read windows registry value. So, no problem if you comment it.
Thanks -
Problem with Receiver File adapter
Hi
I have a problem with receiver file FTP adapter, while writting file in target folder, connection is failing, after retries, it writting file again. How to avoid this situation, is there any way to write the leftout part in the file.
VSHi
Thank u all, Problem is solved, i changed write mode to Over write existing file. It is working fine.
VS -
Has anyone had a problem with TapMedia File Manage installed on iPhone 5? I reported a WIFI functionality problem to the developer and asked for support. Instead the company has been very unprofessional by name calling me instead of logically evaluate and troubleshoot the problem
Hi AKE1919,
Welcome to the Support Communities!
The following information should help you with this:
How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
http://support.apple.com/kb/HT1933?viewlocale=en_US
Cheers,
Judy
Maybe you are looking for
-
Hi Experts, I have written few lines of code in "HTML_TOP_OF_PAGE" sub routine. This subroutine I am using in ALV. like below... CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = G_REPID I_CALLBA
-
Hi For past year or so my mac book has been getting gradually worse. Spinning wheel, and overheating, last night I had trouble just getting it to start in Safe Mode (been using the on/off button a lot lately!) Problem may be related to media - iMovie
-
ORA-00976: Specified pseudocolumn or operator not allowed here
Hi, After 11gR2 upgrade we got error in insert statement. INSERT INTO SDE_TBL_FLEXTRIMSITROUT (BRANCHCD, SOURCECD, CURRENTNO, BATCHNO, DEPTCD, CCY, INITIATIONDATE, AMOUNT, ACCOUNT, ACCOUNTBRANCH, TXNCD, DEBITCREDIT, LCYEQUIVALENT, EXCHRATE, VALUEDATE
-
RALPH - I know this is redundant... but
My uncle has an 800 meg eMac. We've always connected just fine, with good speed. He's just changed from DSL to cable. I can connect with him, and his picture is good, but he starts out at 15 and drops to 1fps in about 10 seconds. I tried giving him P
-
Adobe Premiere Pro Help | Color correction and adjustment
This question was posted in response to the following article: http://helpx.adobe.com/premiere-pro/using/color-correction-adjustment.html