pyth0n3 Posted January 23, 2011 Report Posted January 23, 2011 Overview:Transforma imaginile de tipul .bin in .iso E un front-end pt bchunk Feature:L-am facut in asa fel incat sa genereze automat un file image.cue , care de multe ori lipseste iar bchunk cere ca argument un file de tipul .cue pt a putea crea imaginea iso Daca fisierul .cue exista , bintoiso nu il va folosi ci va genera unul nou pt fiecare imagine Salveaza imaginile cu numele out01.iso in directorul in care vine executatPt a rula are nevoie de pachetul bchunk si python-tkDownload archive installer : http://tinyurl.com/6efbbl2#!/usr/bin/python#Date:22.01.2011#Purpose: Convert .bin to .iso ,command-line front-end tool#Author: pyth0n3#Blog: http://pyth0n3.blogspot.com/import os import Tkinter from Tkinter import * import tkMessageBoximport tkFileDialog,Tkconstants,collections root =Tk() def about(): tkMessageBox.showinfo(title=" Info: ", \ message="Convert .bin images to .iso\n \ Contact: python3aka@gmail.com ")def callback(): file_path = tkFileDialog.askopenfilename(title="Open image", filetypes=[("bin image",".bin"),("All files",".*")]) tkMessageBox.showinfo( "Info:", "This may take a while depends on image size \ Please press the OK button to start processing ...") image = file_path.split('/')[-1] filename = "/tmp/image.cue" file = open(filename,"w") file.write("FILE "+image+ " BINARY\n" ) file.write("TRACK 01 MODE1/2352\n" ) file.write("INDEX 01 00:00:00" ) file.close() var = 'bchunk -v ' + file_path +' '+filename + ' out' cmd = var os.system(cmd) tkMessageBox.showinfo( "finish", "Image converted succesfull")root.title('BIN TO ISO')root["padx"] = 40root["pady"] = 20 textFrame = Frame(root)Button(root, text='Open image to process',fg='green', bg='black',command=callback).pack(side= LEFT,padx=10,pady=10)Button(root, text='Exit',fg='green',bg='black',command=quit).pack(side= RIGHT,padx=10,pady=10)Button(root, text='About',fg='green',bg='black',command=about).pack(side= RIGHT,padx=10,pady=10)root.mainloop()#ENDDownload source code : wget http://sprunge.us/MSAb bintoiso.py Quote
adi003user Posted January 23, 2011 Report Posted January 23, 2011 thanks. foloseam un program de windows pana acum. Quote