Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Solve Beginner Batch File Problem for Windows App

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 381
    Answer it

    So i've got multiple exercises to do in I have absolutely no idea how to make this script : 

     

    The script must create a file named files.txt and display its contents. The file must contain all the names (only) in the %windir%\system32 directory that meet the following conditions: - the file name is 4 letters and its extension is .com (ex: mode.com) - the 2nd letter of the file name is "i" and its extension is .dll (ex: windows.dll)

     

    Only thing I have right now is :

     dir /b %windir%\system32 > files.txt 

    which works but I have no idea how to add the conditions.

 0 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: