How to write program to list the system directory(content of pc)

how to write a program that will display all the folder n directory of the pc like:
+My Computer
+c:
+d:                                                                                                                                                                                                                                       

Copy this line and save it in a file named "dirlist.bat":
for %%* in (%1) do dir /b %2 %1To use it, change to the directory it's in and at the command prompt type
dirlist directory [/s] directory is the name of the directory that you want listed.
/s is optional and will list the contents of all subdirectories also.
(You didn't say it had to be Java - use the right tool for the job)

Similar Messages

  • How to write program for handling  script ?

    In script i have 2 pages.
    In first page i have constant windows and variable windows.
    In second page i have main window.
    How to write program for this?

    Hi
    You need to write a driver program. You need to use open form, then write_form to write data into various windows and then close_form to close.
    As you don't want main window in the first page first try out just by having the window in the second page; i guess system will take care of it. As all other windows filled and if u start writing data in the main it'll go for next page.
    If doesn't work have the window on the first page with the least hight and write a command
    IF &SYST-PAGE& EQ 1
        NEXT-PAGE.
    ENDIF.
    Then in the second page you can have the main window hight as per your requirement.
    Here is an example
    (1) Get customer data
      TABLES: scustom, sbook, spfli.
      DATA: bookings like sbook...
      select * from...
    (2) Open form
      CALL FUNCTION 'OPEN_FORM'
        EXPORTING
          DEVICE = 'PRINTER'
          FORM = 'S_EXAMPLE_1'
          DIALOG = 'X'
        EXCEPTIONS
          others = 1
    (3) Print table heading
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          ELEMENT = 'HEADING'
          TYPE = 'TOP'
          WINDOW = 'MAIN'
          FUNCTION = 'SET'
    (4) Print customer bookings
      LOOP AT bookings WHERE
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT = 'BOOKING'
            TYPE = 'BODY'
            WINDOW = 'MAIN'
      ENDLOOP
    (5) Close form
      CALL FUNCTION 'CLOSE_FORM'
    Regards
    Surya.

  • How to conf  in Hyperion, so the system couldn't login with the same user

    Hai.....
    how to configure in Hyperion, so the system couldn't login with the same user id in different machine ? (could you please provide me with detail step by step ? )
    rgds
    uka fp

    fane_j wrote:
    Sally R. wrote:
    Someone gave me a suggestion to go to the terminal and type in the following:
    ls /Users/Shared/.*.so
    This was published on MacWorld's site, and it's not a very good tip. Try this instead
    ls -la /Users/Shared/*.so
    Turns out I was wrong about that. Somebody else suggested something even more complicated and got this reply:
    By bastion
    Fri Feb 24 08:49:05 PST 2012
    PeterSParker said
    Your terminal statement has an extra "." in it that prevents it from working.
    Also, you should add the options -alR to show what is happening, and to search subdirectories.
    The revised command looks like this:
    ls -alR /Users/Shared/*.so
    The above is completely wrong. The command as shown in the article is appropriate.
    The "." is not extra and doesn't prevent the command from working. It's specifying that you're listing files that start with a period and end with ".so" with anything in between being matched.
    Because you're explicitly searching for things that start with "." you don't need the -a flag.
    Because you only care about simple existence and not any metadata you don't need -l.
    Because the files of interest are installed in /Users/Shared directly, and not subfolders thereof, you don't need -R.

  • Error occurred while getting a schedule list.The system cannot find the fil

    Hi all,
    If i open the "packages shedule status".I am getting error like  "Error occurred while getting a schedule list.The system cannot find the file specified".How to fix this issue?.Anyone have idea please share.
    Thanks in advance
    AD

    Hi Venkii,
    This kind of error message is usually fixed by deleting all entries in tblSchedule table and in tblScheduleHist table in SQL, and then deleting all schedules in the Scheduler server (Control Panel --> Scheduled Tasks)...
    Hope it will help...
    Kind Regards,
    Patrick

  • How to delete a company in the system?

    Hi all,
            i am create three companies in the same B1 system. Now i just want to know how to delete one company from the system?
    thanks,
    Suresh Yerra.

    Hi Rajesh,
                  It's very simple.
    1. login to SQL Server
    2. In the databases u can find the three companies
    3. delete the particular company database from the SQL databases.
    Let me know if u have any queries regarding this?
    Thanks,
    Suresh Yerra.

  • How to install ftp service on the system?

    OS: SuSE Linux Enterprise Server 8
    How to install ftp service on the system?
    How to check and modify to use it?
    I am not able to use FTP.
    Regards,
    D

    Rohit,
    If its about installation/Deployment of Agent- then its through SDM,
    'configuration' can be manual or Atuomatic:
    Manual-> refer the installation Guide which digesh has mentioned -(from page 20).
    Automatic- Its through Diagnostics Setup through Solman -(Its bit easy).
    Thanks,
    Jagan

  • How to add new fields to the system form (Ex.expenses to a/r invoice form)

    hi
    can any one tell me how to add new fields to the system form (Ex.expenses to a/r invoice form)
    i want to add expenses field to system a/r invoice form and connect data base also.
    i used the code of samples\11.system form manipulation(vb.net) but i'm not able to get it....so can any one help with code or concepts.
    reply soon plz..
    thankQ

    If I understood you correctly, you are just trying to add new fields to the invoice form and then use them in your form. you should first go and add the field to your tables, which you would do by going to Tool --> User Defined Fields --> Manage User Fields. There are different documents or categories given. For ex. for invoices, Sales Orders you would add your field under the Marketing Documents. If you want the field to be just one per invoice, add it to the Title, otherwise if you want a field per invoice or Sales Order line, add it to the Rows section. Once you have done that then you can just create a edit box or drop down to represent the field and set the datasource for that to your field. If you want example code to do that, let me know.

  • How to write two item in the same line?

    In the smartforms,how to write two item in the same line?
    eg
    1   *************                                    2  *****************
    3  **************                                   4  ******************
    5  ***************
    Anyone got any idea to do this.
    Thanks in advance

    Hi,
    In the smartform the main windows is 20cm.I use the table output my data.Because the output is two item in same line,I define two rows in the table line type.
    Question:
    Should I define the table width 20cm?
    In the main area of table , should I define two folders and each of folder include a line? The second item I had already defined as Append Directly,but the item 1 and item 2 don't in the same line.
    Regards

  • We need how to copy macro logic in the system

    Hi Experts,
    we need how to copy macro logic in the system, we have some macros in my friend system,  i need how to copy macro logic , can u send me elaborate.
    Regards,
    BABU

    I'm a bit uncomfortable with you've wanted to do especially you and your friend has a different system (unless its a sister company/industry). If this would be the case you can copy your friend's macro with the help of your basis team to transport them in one system to another.
    if the case is different organization, I'm not sure if that is possible since no industry have same requirements but i may suggest the links below for your reference on how to copy the Macro into external system. Hope the document is relevant to your issue.
    [http://help.sap.com/saphelp_scm41/helpdata/en/82/2101fac5288f4d8c7be7c20e604a8f/frameset.htm]
    Cheers!

  • How to make every account in the system login automatically?

    How to make every account in the system login automatically when Mac OS X startup?
    Thanks!

    I can see one way to do it. You'll need to install a script in each user account, and have it set as a login item for each user. Let's imagine you have three user accounts. Each user in Mac OS X has a UID number. Normally your first user has the UID of 501, the second one will be 502 and so on...
    You can determine the UID by running the following AppleScript while logged in on each user:
    do shell script ("ID")
    This'll return a long block of text, but right at the start you'll see the UID number. Let's assume your three users have the UIDs 501, 502 and 503. We begin with 501.
    Create the following script and save it as an application while logged in as 501. Note that the password you're entering is the password for UID 502. Also note that the forum system is creating line breaks where there shouldn't be any. The long "do shell script" line should be one line.
    delay 5 --This delay allows time for login to complete, but it may not be necessary.
    try
    do shell script "/System/Library/CoreServices/Menu\\ Extras/User.menu/Contents/Resources/CGSession -switchToUserID 502"
    delay 5 --This delay could be shorter or longer, depending on how fast your machine is.
    tell application "System Events"
    keystroke "password for 502" --the password for UID 502
    keystroke return
    delay 1
    end tell
    on error
    display dialog "Unable to switch user."
    end try
    Open System Preferences, go to Accounts, click "login items" and drag your script (saved as an application) to the login items window.
    You basically repeat this process for each user account, modifying the script so it switches to the next user.
    This isn't ideal, because your passwords will be stored in the scripts, and each user could open the scripts and learn the passwords of the other users on that machine.
    I picked some of this up from a discussion over at the Macworld forums:
    http://hints.macworld.com/article.php?story=20031102031045417
    Message was edited by: The Preacher
    Message was edited by: The Preacher
    Message was edited by: The Preacher

  • How Can One Run Only In The System Administrator ( ie root ) ?

    Upon creating a System Administrator ( ie root ) in Command + R , of course after Clean Installing OS X ML with my own specific Apple Verified Account ,
    i have the Log In screen from a startup , either Safe Boot or a Boot , and i have my own specifc Apple Verified Account , plus the Other... ,
    which the Other... of course is the System Administrator ( ie root ) .
    How Can One Run Only In The System Administrator ( ie root ) ?
    Is there a way in Terminal with sudo su to make it work ?
    Shall i just always log in with Other... System Administrator ( ie root ) , and just forget the my own specific Apple Verified Account ?

    As of EHP3, you could still install some EHP components. On an ERP 6.00, you could just push SAP_APP to 6.03 and move on. Now if you want another component in your system with an EHP4 version, you can't have some components at EHP3 and some at EHP4. You would install EHP4 for the new component you desire updated and part of the work will be to also update SAP_APP to 6.04.
    EHP4 is an UPGRADE process, with shadow instance & all the joy of an upgrade process. You can either run ressource minimized or downtime minimized. In resource minimized, the shadow instance runs on the same server as the main instance. Downtime minimized allow to run the shadow instance on a separate / new server. Anyway you go, you will always have a "Downtime Phase" when you bring back the updated components from the shadow instance toward the real production one.
    As with any UPGRADE project, the benefits of installing EHP4 for your business has to weighted against the downtime cost.
    Our tests so far on small systems (few data, few users, 120GB database) show ~3 days process from EHP3 to EHP4 (all components) with a downtime phase of about 22 hours using the "resource minimized" path, i.e. shadow & main instance on the same server (4 CPUs, 16GB RAM). Until you give a try at your Sandbox or DEV systems, you won't have realistic figures for your environment.
    Good luck!

  • How to update content types enheriting from the System Page Content type

    After importing a design package I found out that my content types was missing some columns. I could add the missing columns to my "page" and "Article Page" site content type. When adding the exisiting columns I could choose to update
    everything that inherits from this type:
    This is working. However I still miss 2 columns in the "Page" Content type:
    1. Rollup Image
    2. Hide physical URLs from search
    If I roll back my dev environment I can see that these are inherited from the "System Page" content type which is not editable. The columns are in the "System Page" content type but They are gone in "Page" content type that
    should inherit the columns.
    So how do I update these?
    Thanks

    Hi Alex,
    Thank you for replying. I totally agree with you regarding not to modify the OOB content types. The content types I have created/modified is also my own "new" content types.
    However the designpackage import messed up the OOB content types somehow so I'm only trying to get back to the state before the import. The only thing I see is still missing is the two previously mentioned columns in the "page" content type.
    Do you have any other suggestions in how to get back to the "OOB State"?
    Thank you
    Update: this is my page content type. It's not set to read only so it should update the last two missing columns from its parent (system page content type) right?

  • Need report to list the system name, client status, client version, OU name info for a particular collection of systems

    Hi Friends,
    Need report to list the system name, client status, client version, OU name info for a particular collection of systems.
    Please help as it would be appreciated much as i am not familiar with creating custom reports in SCCM. Thanks.
    Regards,
    Thangaraj

    Select v_R_System.Name0, v_R_System.Client_Version0, v_RA_System_SystemOUName.System_OU_Name0,
    case when v_R_System.Client0 = '1' then 'Client is Installed'
    else 'Client Not Installed'
    end as 'Client Status'
    FROM v_R_System JOIN v_RA_System_SystemOUName ON v_R_System.ResourceID = v_RA_System_SystemOUName.ResourceID WHERE System_OU_Name0 LIKE '%HR'
    John Marcum | Microsoft MVP - Enterprise Client Management
    My blog: System Center Admin | Twitter:
    @SCCM_Marcum | Linkedin:
    John Marcum

  • How many people can be on the system with a 512 K connection in BPC 7 MS

    Hi,
    It appears that BPC uses a large piece of the band width and more than one computer and user with a 512 K connection using BPC will not work.How many people can be on the system with a 512 K connection? -BPC 7 ms version.
    Thx
    PLN

    I would like to precise more things regarding the network.
    I did a case study for one customer and really to have good performances with SAP BPC client the network required the follow:
    Bandwitdth 1024kb/s
    Latency smaller than 200 ms between BPC client and BPC server
    Otherwise the users will experience problems:
    1. IBandwitdh < 1024Kb/s then to download 80 MB or more (templates + dimensions) will require a lot of time and that's means the login time will be very slow every time when a dimension is changed or security is process
    2. When an report is executed (a medium report not very complex report) around 100 mesage are send between bpc client and server. So if latency > 200 ms than a simple calculation is saying just into network it will be lost 200 * 100 ms = 20 s.
    So for a report which normally is taking 5 - 10 second it will take 30s or even more into client with latency bigger than 200 ms.
    Regards
    Sorin Radulescu

  • The Program Cannot restore the system partition not enough space

    Hi..,
    When i try to restore my pc using OKR Button, I am getting This Notice from OKR Application.
    "The Program Cannot restore the system partition because there is not enough available space on the hardrive"
    Please help Me ...
    Thanks in Adavance.

    Hi Jaulpellissery,
    Welcome to Lenovo Community Forums
    I’m sorry to hear that the OKR (One Key Recovery) is not working as expected and displaying error message, this issue will occur if any changes are made in HDD (Hard Disc Drive) partition. Please let me know if you have made any changes in the partition space.
    Hope to hear back soon
    Best Regards
    Shiva Kumar
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

Maybe you are looking for

  • What Are the Oracle Extensions Beyond Basic SQL?

    I think I write some pretty mean queries. I've written some very tight queries with nested selects and in-line selects that take up four or five printed pages. However, all of my queries are limited to the basic clauses; select, from, where, group by

  • Can I browse time capsule files from Windows IIS?

    Hi there, I'm trying to publish a time capsule folder on a web site (using Windows IIS) but an error message comes up trying to browse this folder from Windows IIS. Can anybody help me? Regards

  • Not all messages are delivered to Mail

    It's so frustrating! My web-based version of my POP account receives messages that Mail doesn't. It has nothing to do with junk filters or rules; the mail just never arrives. There's no particular domain after the '@' that doesn't arrive, although I

  • Can I use the SCCM SQL Instance license to install DPM on a different machine.

    Hello, We have an instance of SCCM with the included SQL Server instance and I wanted to install DPM and link it to the same Db instance that we got with SCCM?  Is the SQL Server licensed for all System Center products?

  • 5 system landscape for MDM?

    We are in the process to layout infrastructure for release 2 of our transformation project for ECC, MDM, PI, BODS. We are debating on possible solutions 1) typical 5 system landscape like below. DEV->QA->PRD DEV2->QA2 DEV2, QA2 are project landscape