Loading [MathJax]/extensions/Safe.js

Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: TUTORIAL: Directory Structure: Resolving Problems  (Read 1523 times)

0 Members and 1 Guest are viewing this topic.

Bonez

  • Arsch Spa
  • Modder
  • member
  • Offline Offline
  • Posts: 241
  • F#*! It...Let's RIDE...
TUTORIAL: Directory Structure: Resolving Problems
« on: March 17, 2013, 08:42:55 PM »

Here's a nifty trick.

In Windows click the Start button>Search Programs and Files: cmd.exe
The DOS command prompt pops up and should be at  C:\Users\Your Name>

There are a couple of ways to get where you need to go from here.
1.) If your game is installed on the C: drive then: cd.. command will move you up one level in the current directory, repeat (up arrow) to get to C:\


2.) If you installed your game on a different drive, at the command prompt enter your drive letter like so: E:

Now , no matter which method you used above, at the command prompt type: CD  "Path to your installed IL-2 root folder"
Do NOT use quotation marks around your path.

Here's an example of method 1.) and 2.) combined from my machine:
C:\Users\Thomas>cd..
C:\Users>cd..
C:\>D:
D:>cd TEST TOTALMOD_SAFE TO DELETE
D:\TEST TOTALMOD_SAFE TO DELETE>

Now we're at the root of the installation and here's the nifty trick: We're going to create a text file that lists the entire structure of this root folder and all sub directories and their files. ALL of them.

There is one command to create the file and several switches which can be used to control what information is included.
To get ALL info use: dir>dir.txt (you can name it anything you want. It just has to be a .txt file.)

Switches:

 D:\TEST TOTALMOD_SAFE TO DELETE>dir>IL-2 Tree.txt /o gives you the list of the root only like so:
Code: [Select]
Directory of D:\TEST TOTALMOD_SAFE TO DELETE

03/17/2013  07:14 PM    <DIR>          #_Enable_UP3.0
03/17/2013  08:23 PM    <DIR>          .
03/17/2013  08:23 PM    <DIR>          ..
03/17/2013  07:25 PM    <DIR>          bin
03/17/2013  07:25 PM    <DIR>          DGen
03/17/2013  07:24 PM    <DIR>          ForceFeedback
03/17/2013  07:24 PM    <DIR>          GSData
03/17/2013  07:24 PM    <DIR>          i18n
03/17/2013  07:24 PM    <DIR>          Intros
03/17/2013  07:24 PM    <DIR>          lib
03/17/2013  07:24 PM    <DIR>          Missions
03/17/2013  07:24 PM    <DIR>          NGen
03/17/2013  07:24 PM    <DIR>          PaintSchemes
03/17/2013  07:26 PM    <DIR>          Quicks
03/17/2013  07:22 PM    <DIR>          records
03/17/2013  07:22 PM    <DIR>          samples
03/17/2013  07:21 PM    <DIR>          Training
03/17/2013  07:21 PM    <DIR>          Users
10/14/2006  09:13 PM        17,031,407 Aircraft Guide.pdf
12/11/2003  03:56 PM               871 bldconf.ini
03/17/2013  07:26 PM             5,446 conf.ini
01/31/2003  01:58 PM                 0 console.cmd
09/17/2004  02:50 PM           343,046 Controls.pdf
09/26/2004  06:58 PM            12,790 DeviceLink.txt
05/01/2005  08:21 AM         1,396,736 DGen.exe

So you get directories (<DIR>) in the root, file create date, time stamp, size (in bytes) and name in a nice Orderly list but this isn't completely alpha sorted. It lists directories at the top and then files of the current directory below that, in alphabetic order. PLUS, it only outputs the directory you are in.

D:\TEST TOTALMOD_SAFE TO DELETE>dir>IL-2 Tree.txt /n looks like this:
Code: [Select]
Directory of D:\TEST TOTALMOD_SAFE TO DELETE

03/17/2013  08:31 PM    <DIR>          .
03/17/2013  08:31 PM    <DIR>          ..
03/17/2013  07:14 PM    <DIR>          #_Enable_UP3.0
10/14/2006  09:13 PM        17,031,407 Aircraft Guide.pdf
03/17/2013  07:25 PM    <DIR>          bin
12/11/2003  03:56 PM               871 bldconf.ini
03/17/2013  07:26 PM             5,446 conf.ini
01/31/2003  01:58 PM                 0 console.cmd
09/17/2004  02:50 PM           343,046 Controls.pdf
09/26/2004  06:58 PM            12,790 DeviceLink.txt
03/17/2013  07:25 PM    <DIR>          DGen

This is sorted by Name.

D:\TEST TOTALMOD_SAFE TO DELETE>dir>IL-2 Tree.txt /s Outputs the entire directory tree from top to bottom.

Here's a truncated but comprehensive example:
Code: [Select]
Volume in drive D is SG_1
 Volume Serial Number is E067-F6DA

 Directory of D:\IL-2 Sturmovik UP3RC4 DBW

03/15/2013  12:07 AM    <DIR>          #DBW
03/15/2013  12:07 AM    <DIR>          #DBW_1916
03/14/2013  07:10 PM    <DIR>          #UP#
03/17/2013  09:27 PM    <DIR>          .
03/17/2013  09:27 PM    <DIR>          ..
02/14/2012  02:23 PM    <DIR>          bin
03/08/2013  05:27 PM    <DIR>          Client Patches
02/14/2012  02:23 PM    <DIR>          DGen
02/13/2012  04:55 PM    <DIR>          Documentation
03/08/2013  05:27 PM    <DIR>          ForceFeedback
03/08/2013  05:27 PM    <DIR>          GSData
03/08/2013  05:27 PM    <DIR>          i18n
03/08/2013  05:27 PM    <DIR>          Intros
03/12/2013  02:15 PM    <DIR>          jsgmemods
02/14/2012  02:23 PM    <DIR>          lib
03/13/2013  10:58 PM    <DIR>          Missions
03/09/2013  09:12 PM    <DIR>          MyScreenShots
02/14/2012  02:22 PM    <DIR>          NGen
02/14/2012  02:23 PM    <DIR>          PaintSchemes
03/11/2013  03:15 AM    <DIR>          Quicks
03/15/2013  12:25 AM    <DIR>          records
02/14/2012  02:23 PM    <DIR>          samples
03/11/2013  04:25 PM    <DIR>          SAS Modact 3 Documentation
03/15/2013  12:07 AM    <DIR>          SAS_DBW
03/08/2013  05:31 PM    <DIR>          Training
03/08/2013  05:31 PM    <DIR>          Users
10/14/2006  10:13 PM        17,031,407 Aircraft Guide.pdf
03/14/2013  06:46 PM               908 bldconf.ini
03/11/2013  07:15 PM             7,969 conf.ini
03/15/2013  12:51 AM                 0 console.cmd
09/17/2004  03:50 PM           343,046 Controls.pdf
02/23/2013  06:21 AM             1,612 dcg.ini
09/26/2004  07:58 PM            12,790 DeviceLink.txt
05/01/2005  09:21 AM         1,396,736 DGen.exe

<SNIP>
            175 File(s) 12,811,195,552 bytes

Directory of D:\IL-2 Sturmovik UP3RC4 DBW\#DBW

03/10/2013  01:02 PM    <DIR>          #_UV3
03/09/2013  06:08 PM    <DIR>          #DBW_6DOF NormalMouse by PAL
03/09/2013  06:08 PM    <DIR>          #DBW_6DOF XYMouse by PAL
03/11/2013  05:24 PM    <DIR>          #DBW_6dofTrackIR_ClassFiles
03/09/2013  06:08 PM    <DIR>          #DBW_CirXs_POVMoD
03/09/2013  06:08 PM    <DIR>          #DBW_Ecran Wide for 4.101
03/09/2013  06:08 PM    <DIR>          #DBW_Forgotten Countries Full
03/09/2013  06:08 PM    <DIR>          #DBW_FX_Small Collection
03/09/2013  06:08 PM    <DIR>          #DBW_HakenCross Disabler
03/09/2013  06:08 PM    <DIR>          #DBW_MissionPro Combo by PAL
03/09/2013  06:08 PM    <DIR>          #DBW_MyScreenshots as TGA v2.0
03/09/2013  06:08 PM    <DIR>          #DBW_Small_Font_Mod 4 FMB Maps
03/15/2013  12:07 AM    <DIR>          .
03/15/2013  12:07 AM    <DIR>          ..
03/10/2013  03:46 AM    <DIR>          0_0_Plutonium_Universal_Max_Effects_V1
03/10/2013  01:45 AM    <DIR>          00_Guncam_Tracers
03/09/2013  06:08 PM    <DIR>          00_PAL6DOFNormalMouse
10/12/2010  04:15 PM    <DIR>          00_PALMiniMapV2.3
03/15/2013  12:07 AM    <DIR>          00_PAL-MissionProCombo
03/10/2013  04:39 PM    <DIR>          24Bit Skins
03/13/2010  01:17 AM    <DIR>          AirfieldTexturesPAL
02/01/2012  04:12 AM    <DIR>          MapMods
03/09/2013  06:47 PM    <DIR>          SAS_ Ecran_Wide_4101
03/14/2013  08:00 PM    <DIR>          SAS_SmallFX_Collection
02/01/2012  04:12 AM    <DIR>          -Smoketrails for Mg17,131.Browning303
02/01/2012  04:12 AM    <DIR>          STD
03/11/2013  04:25 PM    <DIR>          XTD
03/11/2013  04:34 PM           404,484 ~wrapper.cache
               1 File(s)        404,484 bytes

 Directory of D:\IL-2 Sturmovik UP3RC4 DBW\#DBW\#DBW_6DOF NormalMouse by PAL

03/09/2013  07:57 PM    <DIR>          #DBW
03/09/2013  06:08 PM    <DIR>          #DBW_1916
03/09/2013  06:08 PM    <DIR>          .
03/09/2013  06:08 PM    <DIR>          ..
03/09/2013  06:08 PM    <DIR>          documentation
               0 File(s)              0 bytes

 Directory of D:\IL-2 Sturmovik UP3RC4 DBW\#DBW\#DBW_6DOF NormalMouse by PAL\#DBW

03/09/2013  07:57 PM    <DIR>          .
03/09/2013  07:57 PM    <DIR>          ..
               0 File(s)              0 bytes

 Directory of D:\IL-2 Sturmovik UP3RC4 DBW\#DBW\#DBW_6DOF NormalMouse by PAL\#DBW_1916

03/09/2013  06:08 PM    <DIR>          .
03/09/2013  06:08 PM    <DIR>          ..
03/09/2013  06:08 PM    <DIR>          00_PAL6DOFNormalMouse
               0 File(s)              0 bytes

 Directory of D:\IL-2 Sturmovik UP3RC4 DBW\#DBW\#DBW_6DOF NormalMouse by PAL\#DBW_1916\00_PAL6DOFNormalMouse

03/09/2013  06:08 PM    <DIR>          .
03/09/2013  06:08 PM    <DIR>          ..
07/16/2010  12:14 AM               805 65A9E2D846D578F2
07/16/2010  12:14 AM            18,911 6EABC2640E2C18C4
07/16/2010  12:14 AM               846 AED23A24CF06FFE0
               3 File(s)         20,562 bytes


Etc and so on for the whole tree.

Now, when someone is having trouble understanding directory structure of a successful install, one can simply use DOS to show them their entire directory structure via a text file instead of trying to explain it. The full "IL-2 Tree.txt" DOS created for the above example is 2406kb, created in 2 seconds via DOS. Man I love DOS.

For more advanced options and other useful switches, at the command prompt type: help dir or visit Microsoft TechNet Command Line Reference.
 
And finally, if you want a text file showing ONLY directories & sub-directories but NOT FILES in those directories and without the time stamps/dates/sizes, et cetera, use a /b (for BARE list) and an /ad switch also, as shown here: dir>IL-2 Tree.txt b/ad/og/s. (A for Attribute. D for Directory)

Recommended initial command usage for 'debug' purposes: dir>IL-2 Tree.txt /b/ad/og/s
Example:
Code: [Select]
D:\IL-2 4.07m BARE\bin
D:\IL-2 4.07m BARE\DGen
D:\IL-2 4.07m BARE\ForceFeedback
D:\IL-2 4.07m BARE\GSData
D:\IL-2 4.07m BARE\i18n
D:\IL-2 4.07m BARE\Intros
D:\IL-2 4.07m BARE\lib
D:\IL-2 4.07m BARE\Missions
D:\IL-2 4.07m BARE\NGen
D:\IL-2 4.07m BARE\PaintSchemes
D:\IL-2 4.07m BARE\Quicks
D:\IL-2 4.07m BARE\records
D:\IL-2 4.07m BARE\samples
D:\IL-2 4.07m BARE\Training
D:\IL-2 4.07m BARE\Users
D:\IL-2 4.07m BARE\bin\hotspot
D:\IL-2 4.07m BARE\DGen\de
D:\IL-2 4.07m BARE\DGen\du
D:\IL-2 4.07m BARE\DGen\fi
D:\IL-2 4.07m BARE\DGen\fr
D:\IL-2 4.07m BARE\DGen\gb
D:\IL-2 4.07m BARE\DGen\hu
D:\IL-2 4.07m BARE\DGen\ja
D:\IL-2 4.07m BARE\DGen\pl
D:\IL-2 4.07m BARE\DGen\ra
D:\IL-2 4.07m BARE\DGen\ro
D:\IL-2 4.07m BARE\DGen\ru1
D:\IL-2 4.07m BARE\DGen\ru2
D:\IL-2 4.07m BARE\DGen\ru3
D:\IL-2 4.07m BARE\DGen\sk
D:\IL-2 4.07m BARE\DGen\UN
D:\IL-2 4.07m BARE\DGen\US
D:\IL-2 4.07m BARE\lib\applet
D:\IL-2 4.07m BARE\lib\cmm
D:\IL-2 4.07m BARE\lib\ext
D:\IL-2 4.07m BARE\lib\fonts
D:\IL-2 4.07m BARE\lib\images
D:\IL-2 4.07m BARE\lib\security
D:\IL-2 4.07m BARE\lib\images\cursors
D:\IL-2 4.07m BARE\Missions\Campaign
D:\IL-2 4.07m BARE\Missions\Net
D:\IL-2 4.07m BARE\Missions\Single
D:\IL-2 4.07m BARE\Missions\Campaign\DE
D:\IL-2 4.07m BARE\Missions\Campaign\DU

<SNIP>

In 27 keystrokes, via DOS, you've created an easy to follow listing of pure directory structure which is much more economical than typing 150 words in a post trying to explain it.
Logged
ASUS M3N-HD/HDMI | AMD Phenom X4 9850 Black Edition 2.5GHz OC 10% | 8GB DDR2 6400EL Series Patriot RAM | NVIDIA GeForce 8800 GTS 640MB
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 25 queries.