Unzipping a .ruf file
I've been trying to download an update for the firmware on my Kenwood car stereo. The downloaded file has a .ruf extension and the instructions from Kenwood's website tell you to unzip the file then burn it to CD. Unfortunately, I am having difficulty opening or unzipping the file and being a newbie to all things Mac-related I'm not sure what to do! Any help or advice would be most appreciated.
The downloaded file has a .ruf extension and the instructions from Kenwood's website tell you to unzip the file then burn it to CD.
If you are seeing .ruf at the end of the file name instead of .zip, then it may have already been unzipped and you should go to the next step.
Similar Messages
-
Problem in unzipping the zip files
Hi,
I have created a program to unzip the zip files. But when i try to zip it is creating the zipped files outside the folder where it is to be zipped.
what is wrong with my code.
if the zip file is migration.zip
if the path inside the zip file shows
and the path inside says this
/codebase/scripts/
it would create migration folder and create codebase folder outside the migration folder
what is wrong with my code
//Unzip the zip files to the folder with their name
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
// Getting the path to find the type of files
public class zipper implements FilenameFilter{
String ext;
public zipper(String ext)
this.ext="." + ext;
public boolean accept(File dir,String name)
return name.endsWith(ext);
public static void main(String args[]) throws IOException
try
String dir = "D:/a/";
File f2 = new File(dir);
FilenameFilter fn= new zipper("zip");
String ss[]=f2.list(fn);
for ( int j = 0; j < ss.length; j++)
System.out.println(" Extracting ...." + ss[j]) ;
String zipFile = dir + ss[j];
ZipFile zf = new ZipFile(zipFile);
Enumeration entries = zf.entries();
String directoryName = zf.getName();
directoryName = directoryName.substring(0, (directoryName.indexOf(":" + File.separator) + 2));
String folderName = zf.getName();
folderName = folderName.substring(0, folderName.lastIndexOf("."));
File file1 = new File(folderName);
//File file1 = new File(entries.getName());
file1.mkdir();
while (entries.hasMoreElements())
ZipEntry ze = (ZipEntry) entries.nextElement();
String path = directoryName + ze.getName() ;
String path1 = folderName + ze.getName();
//System.out.println(" : " + path);
if (ze.getName().endsWith("/"))
File file = new File(path);
file.mkdir();
continue;
//break;
BufferedReader bReader = new BufferedReader(new InputStreamReader(zf.getInputStream(ze)));
StringBuffer fileBuffer = new StringBuffer(" ");
String line ;
while ((line = bReader.readLine()) != null)
fileBuffer.append(line);
fileBuffer.append("\r\n");
//line = line + "\r\n";
//byte[] b = new byte[line.length()];
//b =line.getBytes();
//out.write();
String fileData = fileBuffer.toString();
File f1 = new File(path);
f1.createNewFile();
//FileOutputStream out = new FileOutputStream(folderName + "/" + ze.getName());
FileOutputStream out = new FileOutputStream(path);
long size = ze.getSize();
byte[] data1 = new byte[fileData.length()];
for (int i = 0; i < fileData.length(); i++)
data1[i] = (byte) fileData.charAt(i);
out.write(data1);
out.close();
bReader.close();
} catch (Exception e)
e.printStackTrace();
Thanks in Advance
AvinashString path = directoryName + ze.getName();
String path1 = folderName + File.separator+ ze.getName();
File f1 = new File(path); // pass path1 instead of path
f1.createNewFile();
FileOutputStream out = new FileOutputStream(path); // pass path1 instead of path -
Problem in Unzipping the zip file
Hi
I have created a program to unzip the zip files in the folder named after the zip file
it is working well well when u try to zip zip files put in a directory
i.e u create a folder name contents and put files into that and then zip it
but when u directly create a zip file , without putting in a folder
it creates the folder and zip the files outside the folder
Another problem is that with the path
for e.g. suppose the zip file name is contents and path should show
contents/filename.txt but there are some other files whose path shows
res/file.txt. In this case it creates a folder of res and put it outside the
folder with the name of zip file
I have pasted my code :
//Unzip the zip files to the folder with their name
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
// Getting the path to find the type of files
public class zipper implements FilenameFilter{
String ext;
public zipper(String ext)
this.ext="." + ext;
public boolean accept(File dir,String name)
return name.endsWith(ext);
public static void main(String args[]) throws IOException
try
String dir = "D:/";
File f2 = new File(dir);
FilenameFilter fn= new zipper("zip");
String ss[]=f2.list(fn);
for ( int j = 0; j < ss.length; j++)
System.out.println(" Extracting ...." + ss[j]) ;
String zipFile = dir + ss[j];
ZipFile zf = new ZipFile(zipFile);
Enumeration entries = zf.entries();
String directoryName = zf.getName();
directoryName = directoryName.substring(0, (directoryName.indexOf(":" + File.separator) + 2));
String folderName = zf.getName();
folderName = folderName.substring(0, folderName.lastIndexOf("."));
File file1 = new File(folderName);
//File file1 = new File(entries.getName());
file1.mkdir();
while (entries.hasMoreElements())
ZipEntry ze = (ZipEntry) entries.nextElement();
String path = directoryName + ze.getName() ;
String path1 = folderName + ze.getName();
//System.out.println(" : " + path);
if (ze.getName().endsWith("/"))
File file = new File(path);
file.mkdir();
continue;
//break;
BufferedReader bReader = new BufferedReader(new InputStreamReader(zf.getInputStream(ze)));
StringBuffer fileBuffer = new StringBuffer(" ");
String line ;
while ((line = bReader.readLine()) != null)
fileBuffer.append(line);
fileBuffer.append("\r\n");
//line = line + "\r\n";
//byte[] b = new byte[line.length()];
//b =line.getBytes();
//out.write();
String fileData = fileBuffer.toString();
File f1 = new File(path);
f1.createNewFile();
//FileOutputStream out = new FileOutputStream(folderName + "/" + ze.getName());
FileOutputStream out = new FileOutputStream(path);
long size = ze.getSize();
byte[] data1 = new byte[fileData.length()];
for (int i = 0; i < fileData.length(); i++)
data1[i] = (byte) fileData.charAt(i);
out.write(data1);
out.close();
bReader.close();
} catch (Exception e)
e.printStackTrace();
Thanks in Advance
AvinashString path = directoryName + ze.getName();
String path1 = folderName + File.separator+ ze.getName();
File f1 = new File(path); // pass path1 instead of path
f1.createNewFile();
FileOutputStream out = new FileOutputStream(path); // pass path1 instead of path -
how do Unzip a jar file?
You can unjar a file giving
" jar -xvf filename.jar " at the command prompt if u don't have a jar.exe please try using winzip/unzip..
ebistro -
Unzip multiple bzip files thru powershell
Hello there-
I have 50 directories. Each directory has 10 sub directories in which there are 300 bz2 files. I would like to unzip them thru bzip program. Is it possible to do so with powershell/batch/cmd line script?
Dir1>Subdir1>*.bz2
>Subdir2>*.bz2
>Subdir10>*.bz2
Dir2>Subdir1>*.bz2
>Subdir2>*.bz2
>Subdir10>*.bz2
Thanks,
BenHi,
To unzip files, I would like suggest you refer below code, those code is to find all current location zip files and unzip them to the current location:
$shell=new-object -com shell.application
$CurrentLocation=get-location
$CurrentPath=$CurrentLocation.path
$Location=$shell.namespace($CurrentPath)
$ZipFiles = get-childitem *.zip
$ZipFiles.count | out-default
foreach ($ZipFile in $ZipFiles)
$ZipFile.fullname | out-default
$ZipFolder =
$shell.namespace($ZipFile.fullname)
$Location.Copyhere($ZipFolder.items())
If you want to unzip many location files, we could use get-childitem to get all of them and saved in a variable.
For more details, please refer to the below link:
PowerShell script to unzip many files
http://www.techiebirdsnest.com/2009/01/powershell-script-to-unzip-many-files.html
Hope this helps.
Regards,
Yan Li
Yan Li
TechNet Community Support -
Unzip window jpeg files?
What are the steps to take to unzip incoming jpeg files? These jpeg files are sent from Windows based PC.
The UnArchiver
http://theunarchiver.googlecode.com/files/TheUnarchiver2.7.1.zip -
How can I unzip a zipped file with java ?
I presume you've read the API of [url http://java.sun.com/j2se/1.4.1/docs/api/java/util/zip/ZipFile.html]ZipFile?
-
I can't unzip the zipped disk 1 files for the installation of Oracle 9i database. I find no programme for the unzip of the files with the file extention .cpio
Hi Hugo,
1) Create directories to extract the files { say
Disk 1 , Disk 2 , Disk 3 }
2) cd Disk1
3) cpio -idmv < filename.cpio
or
cpio -idmv < filename.cpio.gz
Rgds,
Vishwanath U -
How do you unzip a downloaded file into PSE?
Whatever you may be talking about,
http://forums.adobe.com/community/photoshop_elements
might be a better place for the question. -
How to Unzip EBS software files into directory on linux
Hi,
I am trying to unzip the Software file which i 've downloaded from eDelivery on /u01 directory to /u01/Rstage/directroy
when i execute the command under /u01 directory in order to unzip all the zip under /u01 to /u01/Rstage directory. I get the following Error
unzip .zip -d Rstage/*
-bash: unzip: command not found
*[root@22 u01]# gunzip *.zip -d Rstage/*
gunzip: V32251-01.zip: unknown suffix -- ignored
gunzip: V32252-01.zip: unknown suffix -- ignored
gunzip: V32253-01.zip: unknown suffix -- ignored
gunzip: V32254-01.zip: unknown suffix -- ignored
gunzip: V32255-01.zip: unknown suffix -- ignored
gunzip: V32256-01.zip: unknown suffix -- ignored
gunzip: V32257-01.zip: unknown suffix -- ignored
gunzip: V32258-01.zip: unknown suffix -- ignored
gunzip: V32259-01.zip: unknown suffix -- ignored
gunzip: V32260-01.zip: unknown suffix -- ignored
gunzip: V32261-01.zip: unknown suffix -- ignored
gunzip: V32262-01.zip: unknown suffix -- ignored
gunzip: V32263-01.zip: unknown suffix -- ignored
gunzip: V32264-01.zip: unknown suffix -- ignored
gunzip: V32265-01.zip: unknown suffix -- ignored
gunzip: V32266-01.zip: unknown suffix -- ignored
gunzip: V32267-01.zip: unknown suffix -- ignored
gunzip: Rstage/ is a directory -- ignored
Does the above error mean the RPM of zip isn't there on linux or command syntax is wrong ?
Could you plz tell if its the right way to unzip all the files into /directory ?
Thanks & Regards
MZTry any of below two option:-
unzip ‘*.zip’ -- *.zip in single quotes.
or
through single shell command:-
for i in *.zip; do unzip $i; done
Thanks,
JD -
Does anyone know if you can unzip a .cab file in Mac OSX 10.5.8? I am trying to open an Excel spreed sheet template that was downloaded as a .cab file from office for mac website... thank you
Use Stuffit Expander, Download and install from here, make sure you download the correct version for your Mac OS:
Stuffit Expander Mac -
When I try to unzip a zip file that was FTP'd to my server I
get an error:
Ensure that the file is a valid zip file and it is
accessible. Cause : java.util.zip.ZipException: error in opening
zip file
I can open the zip file through windows with no issue so this
has to do with what CF uses to open the file. I also extracted the
files in the zip file and then created a new zip file on my own and
CF can unzip that file fine as well.
Does ftp'ing a file cause some kind of change with the file
that would cause the exception?jsg1000 wrote:
> When I try to unzip a zip file that was FTP'd to my
server I get an error:
>
> Ensure that the file is a valid zip file and it is
accessible. Cause :
> java.util.zip.ZipException: error in opening zip file
>
> I can open the zip file through windows with no issue
Did you open the exact file that was FTP'd to your server or
the initial
file ? FTP files can be transferred in 2 modes: ascii and
binary there
is a possibility that the files was transferred in ascii and
thus corrupted.
> Does ftp'ing a file cause some kind of change with the
file that would cause
> the exception?
It might be. Read about the ascii/binary mode for a ftp
transfer for
more info.
Mack -
Help:how to use java.util.jar to zip or unzip a binary file.
how to use java.util.jar to zip or unzip a binary file or a file contain native code.
It may help you to know how I add JARs
1. I open my Project (myProject)
2. I Mount the JAR to the FileSystem (like mypackages.jar = which includes com.mus.de.myClass.java)
3. I Mount the File to the FileSystem (like c:\..myfiles..\myProject)
3.1 I add the File to my Project
4. I select File | New -> Classes | Main
4.1 I typed "import com.mus.de.myClass.java" to refer to this package.
4.2 I called some of the public methods
thats it
Andreas -
Can someone help me for the following problem,
Iam downloading a zip file from the server to the client.i want to unzip and execute the .EXE file, which is inside the zip file through the java coding.can any one help me!
thanking youI think you can do all of this using the Java runtime interface which allows you to execute command line commands via Java code (ie, launching an EXE).
See http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
I don't believe there is a component of the Java API that allows you to unzip a zip file. But you could still accomplish this using the winzip command line support. See http://www.winzip.com/wzcline.htm in combination with the Java runtime. -
Unzip a .zip file programatically??
Hi all friends,
I want to unzip a .zip file programatically.For that if any one can give me some code then it will be very help full for me.
Thanks & Regards
Bikashthis thread has some code
http://forum.java.sun.com/thread.jsp?forum=31&thread=417611
asjf
Maybe you are looking for
-
Im only starting and cant work out how to give a black and white photo blue eyes
im a beginer and cant figer out how to give a black and white portrat photo blue eyes
-
Manual AntiAlias when using CPU-Mode
Hi there, when switching to CPU-Mode (which is faster in my case) all is fine, except the scaled images look very bad. I'm compiling with AIR 2.7 and I've read somewhere that cpu mode has no AntiAlias. Can I use some other method / pixelmanipulation
-
Hi everyone, How to display & sign in below statements such as "A & B" and "X & Y". Thanks. <mx:dataProvider> <mx:Array> <mx:Object label="A & B" data="1" id="MensClothing" subcategoryImage="assets/images/MensClothing.gif" /> </mx:Array> </mx:dataPro
-
Where can i find my iphone backup files?
where can I find the Iphone backup files?
-
I used to share contacts with my wife all the time. But now her iPhone will not accept the contacts I send her and it doesn't provide any error message. I have an iPhone 4 running 6.1.3 and she has an iPhone 3GS running 6.1.3. I open my contacts and