Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: how to check for file type in a folder
Post: RE: how to check for file type in a folder

(Sep-15-2018, 01:26 PM)DeaD_EyE Wrote: First you create rootFolder twice, which is not the problem. The last line just print all elements, because they are not an instance of ZipFile nor RarFile. Th...
SoulsKeeper General Coding Help 4 4,973 Sep-15-2018, 02:40 PM
    Thread: how to check for file type in a folder
Post: how to check for file type in a folder

Hello, I want the script to go through the entire folder and only list the files which are neither Zip or Rar files but when I use this code, it just goes through the entire folder listing all the fi...
SoulsKeeper General Coding Help 4 4,973 Sep-15-2018, 08:47 AM
    Thread: Help extracting comment data from multiple zip files
Post: RE: Help extracting comment data from multiple zip...

(Sep-09-2018, 12:42 PM)snippsat Wrote: (Sep-09-2018, 12:21 PM)SoulsKeeper Wrote: solved it by using the the other slash(/)You had it right in first post then you forgot r. Then C:\U will give unic...
SoulsKeeper General Coding Help 10 6,162 Sep-10-2018, 10:33 AM
    Thread: Help extracting comment data from multiple zip files
Post: RE: Help extracting comment data from multiple zip...

(Sep-09-2018, 12:12 PM)Axel_Erfurt Wrote: Don't post images, better post the output (copy in cmd and use Insert output from toolbar) try 'C:\\Users\\user\\Desktop\\archives' or 'C:/Users/user/Desk...
SoulsKeeper General Coding Help 10 6,162 Sep-09-2018, 12:21 PM
    Thread: Help extracting comment data from multiple zip files
Post: RE: Help extracting comment data from multiple zip...

(Sep-09-2018, 11:11 AM)Axel_Erfurt Wrote: try import os import unicodedata zipfiles = [unicodedata.normalize('NFC', f) for f in os.listdir(u'C:\Users\user\Desktop\archives')]
SoulsKeeper General Coding Help 10 6,162 Sep-09-2018, 11:18 AM
    Thread: Help extracting comment data from multiple zip files
Post: RE: Help extracting comment data from multiple zip...

(Sep-09-2018, 11:05 AM)Axel_Erfurt Wrote: does the folder C:\Users\user\Desktop\archives exist? indeed
SoulsKeeper General Coding Help 10 6,162 Sep-09-2018, 11:06 AM
    Thread: Help extracting comment data from multiple zip files
Post: RE: Help extracting comment data from multiple zip...

(Sep-09-2018, 10:56 AM)Axel_Erfurt Wrote: import os from zipfile import ZipFile zipfiles = os.listdir('C:\Users\user\Desktop\archives') for zfile in zipfiles: ...i get this Error maybe it's beca...
SoulsKeeper General Coding Help 10 6,162 Sep-09-2018, 11:02 AM
    Thread: Help extracting comment data from multiple zip files
Post: Help extracting comment data from multiple zip fil...

I need to extract the comment Data which you can usually see on the side after opening a Zip or a Rar file, I want to extract it into a list on a .txt file this is what i got so far import os os.li...
SoulsKeeper General Coding Help 10 6,162 Sep-09-2018, 10:26 AM
    Thread: how to increment all file names in a folder
Post: RE: how to increment all file names in a folder

(Sep-09-2018, 06:43 AM)Skaperen Wrote: are the file names just numbers like "12345678" or do they partly have numbers like "data2018"?All the files in the folder got the exact same name which is a p...
SoulsKeeper General Coding Help 5 6,058 Sep-09-2018, 06:47 AM
    Thread: how to increment all file names in a folder
Post: how to increment all file names in a folder

how do i create a short script to change all file names in a folder with an increment? is there a guide or a simple rule? want to use it as a practice for coding with python i am a beginner
SoulsKeeper General Coding Help 5 6,058 Sep-08-2018, 11:33 AM
    Thread: Creating Disassembler for a bin file(total beginner)
Post: Creating Disassembler for a bin file(total beginne...

Hello, I have a reverse engineering assignment which I need to understand the Stack data structure and thus find a flag within a Bin file The problem is, there is not one disassembler that can give m...
SoulsKeeper Homework 1 2,460 Sep-04-2018, 03:20 PM
    Thread: what happened here?(noobie)
Post: RE: what happened here?(noobie)

(Sep-02-2018, 01:02 PM)SoulsKeeper Wrote: trying to understand what is happening in this structure 1. did 0A, 03, and 7F get poped out? if so why were they replaced by 82 2. also how does divide ma...
SoulsKeeper Bar 4 3,040 Sep-02-2018, 03:32 PM
    Thread: what happened here?(noobie)
Post: RE: what happened here?(noobie)

(Sep-02-2018, 01:34 PM)Gribouillis Wrote: May be it has something to do with the fact that 82 divided by 2 gives 41 with a remainder of 0. why do you get the remainder?(sorry for stupid question sti...
SoulsKeeper Bar 4 3,040 Sep-02-2018, 01:37 PM
    Thread: what happened here?(noobie)
Post: what happened here?(noobie)

trying to understand what is happening in this structure 1. did 0A, 03, and 7F get poped out? if so why were they replaced by 82 2. also how does divide makes sense here? with 00 41 ;>| Push...
SoulsKeeper Bar 4 3,040 Sep-02-2018, 01:02 PM
    Thread: difference between Instruction Pointer and opcode in a Stack data structure
Post: RE: difference between Instruction Pointer and opc...

(Sep-02-2018, 12:26 PM)Larz60+ Wrote: The instruction pointer is a value usually stored in a dedicated register. The register has to be set to the memory location of the first 'op code' of the code....
SoulsKeeper Bar 3 2,995 Sep-02-2018, 12:30 PM
    Thread: difference between Instruction Pointer and opcode in a Stack data structure
Post: difference between Instruction Pointer and opcode ...

Hi, trying to learn code and i have an assignment in stack data structure, so I'm reading about everything that is in the assignment but they mention both Instruction pointer and opcodes and i can't...
SoulsKeeper Bar 3 2,995 Sep-02-2018, 07:41 AM
    Thread: which command line to use here
Post: RE: which command line to use here

(Sep-01-2018, 11:28 AM)j.crater Wrote: I don't know how to find a flag / secret code in gif file. However I am not sure this is a Python question. Or if the answer lies in the code you posted, its a...
SoulsKeeper General Coding Help 7 3,735 Sep-01-2018, 11:55 AM
    Thread: which command line to use here
Post: RE: which command line to use here

(Sep-01-2018, 09:58 AM)j.crater Wrote: You are right, I didn't even look at your code close enough to see it requires arguments - two of them, third is optional. First is path to the file. Second is...
SoulsKeeper General Coding Help 7 3,735 Sep-01-2018, 11:10 AM
    Thread: which command line to use here
Post: RE: which command line to use here

(Sep-01-2018, 08:24 AM)j.crater Wrote: Hello, open a terminal window (command prompt if you are on Windows). Write "python main.py" and press enter. That is if you navigate the terminal to location ...
SoulsKeeper General Coding Help 7 3,735 Sep-01-2018, 09:52 AM
    Thread: which command line to use here
Post: which command line to use here

hi guys i need to execute this file but don't know which command line to use could you help me figure it out and maybe tell me how to look for it myself so i wont have to bother you Thanks! main.py:...
SoulsKeeper General Coding Help 7 3,735 Sep-01-2018, 07:13 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020