Results 1 to 9 of 9

Thread: MS-DOS help and commands

  1. #1
    Join Date
    Mar 2010
    Posts
    54

    MS-DOS help and commands

    Hello guys,

    I am using windows and as a home based computer user,one of the friend of mine installed the windows XP on my system and I always perform the file management and much thing using the mouse hints.

    I need to know about the commands in windows as i see a guy using the linux operating system,how could i find the appropriate help for commands in windows.

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    MS-DOS help and commands

    Why not,you can also use the commands in windows operating system to manage the files as you did it with the help of mouse like copy and paste files.

    The same thing would be happened commands not using mouse hints.The linux is purely command based operating system and a lot of things are performed using commands but that is not so much user friendly.The windows provide you the better support of using mouse to work in GUI environment.

  3. #3
    Join Date
    May 2008
    Posts
    518

    MS-DOS help and commands

    Yeah, I can get it but how would I perform the operation upon the files and how to know about the commands for specific task and in which manner it would be performed.

    Can you provide me some best solutions for this and one thing more,Is it possible to change the settings of the windows operating system if yes then how ???

  4. #4
    Join Date
    May 2008
    Posts
    4,085

    MS-DOS help and commands

    You can open the command terminal in windows from the START => RUN and type command in the box to open the terminal and enter the commands to perform the task.

    The commands would be associated with the name of the file or other related options and what the command requires to enter.If you don't know anything about the commands then you one of the command is used to get information about commands is known as HELP.

  5. #5
    Join Date
    Apr 2008
    Posts
    3,267

    MS-DOS help and commands

    Yes, This is the best solution to know about the commands and their actions.The command is being used for performing different types of tasks related to hardware changes or file input output changes .

    Just open the command prompt and type HELP and press enter key.The HELP command will present a long list of commands and if you want to know about particular command then you need to type out as follows -

    HELP <command name>

    Choose the name of the command from the list of command which has been displayed on the screen using Help command.

  6. #6
    Join Date
    May 2011
    Posts
    4

    Re: MS-DOS help and commands!!! Please help me!

    I am trying to create two login accounts and then if a user selects user1, a folder called marketing is made in his account and its shared. A similar thing is done for user2 (finance). This is just a rough idea of my code. I am beginner at this, so please understand my situation (I know there must be mistakes in my code, because it doesn't work).

    This is my code for the batch file.
    Code:
    @echo off
    set /p userid=Please select your id (user1 or user2 only)...
    if %userid% == "user1" goto mkt
    if %userid% == "user2" goto fin
    :mkt
    net user user1 /add
    md Marketing
    net share Marketing_folder = C:\Users\user1 /remark:"Marketing for User1"
    net use /user:user1
    :fin
    net user user2 /add
    md Finance
    net share Finance_folder = C:\Users\user2 /remark:"Finance for User2"
    net use /user:user2
    pause
    @echo on
    exit
    waiting for some help, and I am also trying from my end.

    Cheers!

  7. #7
    Join Date
    Jan 2006
    Posts
    605

    Re: MS-DOS help and commands

    Hi trev777,

    Have you tried using the vbscript to change the "user must change password at next logon" option.

    Dont know whether this is applicable to all OSs.

    ref: http://technet.microsoft.com/hi-in/l...97(en-us).aspx


    Set usr = GetObject("LDAP://CN=adegutis, OU=Mis, OU=Accounts, DC=domainname, DC=Com")
    usr.Put "pwdLastSet", CLng(-1)
    usr.SetInfo

  8. #8
    Join Date
    May 2011
    Posts
    4

    Re: MS-DOS help and commands

    Thanks Janos!

    BUt at the moment I am doing stuff just with Batch files and Ms-DOS. I have'nt learnt VBScript Yet. I will learn that only next semester in my course. At the moment, I am doing my stuff just with DOS commands.

    I have modified my code. But now the only problem I am facing is that I cant get the finance folder created in user2's account for some reason.

    My modified code is:
    Code:
    @echo off
    cls
    net user user1 /add
    net user user2 /add
    set /p UserName = Enter your username...
    shift
    if %UserName% == "user1" goto mkt
    if %UserName% == "user2" goto fin
    :mkt
    md C:\Users\user1\Marketing 
    pause
    net share Marketing_folder = C:\Users\user1\Marketing /remark:"Marketing for User1"
    pause
    net use /user:user1
    pause
    @echo on
    exit
    :fin
    md C:\Users\user2\Finance
    pause
    net share Finance_folder = C:\Users\user2\Finance /remark:"Finance for User2"
    pause
    net use /user:user2
    pause
    @echo on
    exit
    Apparently, according to my lecturer i seem to be trying concepts ahead of my level. so thats why i changed it to the above code.

    I am trying to debug this. If u notice anything to correct this code, please let me know SOMEBODY!

    Cheers!

  9. #9
    Join Date
    Dec 2007
    Posts
    2,291

    Re: MS-DOS help and commands

    Hi trev777,

    Take a example of the batch file created below

    addnew.bat

    net user %1 password /add /homedir:\\<server>\users\%1 /scriptpath:login.bat /domain
    net localgroup "<local group>" %1 /add
    repeat for local groups
    net group "<groups>" %1 /add /domain
    repeat for global groups
    xcopy \\<server>\users\template \\<server>\users\%1 /e
    nltest /sync /server:BDCname
    repeat for all BDCs you might be authenticating to
    sleep 20
    cacls \\<server>\users\%1 /e /r Everyone
    remove the everyone permission to the directory
    cacls \\<server>\users\%1 /g %1:F /e
    cacls \\<server>\users\%1 /g Administrators:F /e

Similar Threads

  1. I need help with DOS commands
    By trev777 in forum Operating Systems
    Replies: 4
    Last Post: 17-05-2011, 09:07 PM
  2. MS-DOS top 10 commands
    By Roasted in forum Operating Systems
    Replies: 4
    Last Post: 27-03-2010, 06:19 PM
  3. Run Commands for Win XP
    By Rohit Kasle (RK) in forum Tips & Tweaks
    Replies: 1
    Last Post: 06-02-2010, 10:15 AM
  4. Need Basic Dos commands for Commands prompt
    By JangoRap in forum Operating Systems
    Replies: 5
    Last Post: 29-06-2009, 12:07 PM
  5. Useful DNS Commands
    By K.gupta in forum Guides & Tutorials
    Replies: 3
    Last Post: 10-08-2005, 09:16 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,308,228.85240 seconds with 17 queries