Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 11:00

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



important

Discussion on important within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2015
Posts: 6
Received Thanks: 0
important

suppose there is harddis drive that contain of 3 partitions c,d & e

I want search file that called games.txt in that partitions.

I need command that say
if search =0 not found in all partitions then show message

this pc does not contain games file
boy15 is offline  
Old 08/30/2015, 16:43   #2
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
And whats so hard on selecting a good topic name for that? "important" doesn't give a single clue about what you want to do.

Also the task you described is on basic AutoIt level. You should manage to do it yourself if you've learned the basics. Search _FileListToArray in the documentation.
alpines is offline  
Old 08/31/2015, 17:49   #3
 
mlukac89's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 473
Received Thanks: 104
Try this

Code:
#include <Array.au3>
#include <File.au3>
#include <AutoItConstants.au3>

Global $DT_ALL = "ALL", $aArray = DriveGetDrive($DT_ALL), $file = "test.txt"

If @error Then
    ; An error occurred when retrieving the drives.
    MsgBox(0, "Error retrieving the drives", "Error : " & @error & ", Extended : " & @extended)
Else
    For $i = 1 To $aArray[0]

        $aFileList = _FileListToArrayRec($aArray[$i] & "\", $file, $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_NOSORT, $FLTAR_FULLPATH)

        If Not @error Then
            _ArrayDisplay($aFileList, "FileList for " & $aArray[$i])
        EndIf



    Next

EndIf
mlukac89 is offline  
Reply


Similar Threads Similar Threads
[Rules] [WICHTIG/IMPORTANT] Sektions-Regeln | Section-Rules | Important Stuff
08/18/2011 - Last Chaos - 0 Replies
gerSkip to the English Part!http://www.elitepvpers.com/images/us.pngLiebe ElitePvPers, hiermit verkündet die Moderation der Last Chaos Sektion die neuen, bzw. zum Großteil alten Regeln, an die sich jeder zu halten hat. Im Grunde steht manches davon schon in den Board & Signature Rules, doch wir möchten die auf die Last Chaos Sektion bezogenen wichtigen Regeln hier direkt noch einmal hervorheben. Bitte beachtet und befolgt folgende Regeln. Verhaltet euch gegenüber anderen respektvoll....
[IMPORTANT] Installation funktioniert nicht!!! [IMPORTANT]
08/18/2011 - WarRock - 4 Replies
#Edit Funzt Nabend Die Installationsdatei lässt sich nicht ausführen! Was kann ich tun?
[IMPORTANT] Alles über Viren [IMPORTANT]
03/23/2011 - Wolfteam - 7 Replies
Hey e*pvp, Ich denke es ist an der Zeit, falsche Aussagen zu korrigieren. Dies gilt bezüglich folgender Topics: - Über das Aussortieren von Viren | Eine (hoffentlich anregende) Kritik - Allgemeine Infos über Viren etc. - Schutz vor Viren (!) Protection against viruses (!) Gliederung:



All times are GMT +1. The time now is 11:01.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.