Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: batch file - urgent  (Read 6755 times)

0 Members and 1 Guest are viewing this topic.

mungos

    Topic Starter


    Newbie

    batch file - urgent
    « on: October 29, 2008, 08:10:43 AM »
    Hi,
    i need to create a batch file wich would change my/users regional and lanugage options format from English (Canada) to English (United States)



    Thanks a lot.

    I Appreciate your help.


    fireballs



      Apprentice

    • Code:Terminal
    • Thanked: 3
      Re: batch file - urgent
      « Reply #1 on: October 29, 2008, 08:26:52 AM »
      why do you need a batch file to do it? I'm not sure if you can do it in a batch file but here's some steps to bring up the language bar, in XP.
      Quote
      To show the Language bar (using Classic view in Control Panel):
      1.   Click Start, click Control Panel, and then double-click Regional and Language Options.
      2.   On the Languages tab, under Text services and input languages, click Details.
      3.   Under Preferences, click Language Bar.
      4.   Select the Show the Language bar on the desktop check box.

      FB
      Next time google it.

      mungos

        Topic Starter


        Newbie

        Re: batch file - urgent
        « Reply #2 on: October 29, 2008, 08:56:19 AM »
        I have crated an application in vb .net and i want to make sure that all my users have their regional and lanugage settings set to english us (mm/dd/yyyy)- as we agreed with them.

        i know how to do it manually.......but i want to run this batch file when installing the application

        thanks


        i found this - it changes your setting to mm//dd/yyyy but not English canada to english us

        :: ShortDate_Save_Restore.bat
        :: Process Steps:
        :: 1 Save current shortDate format,
        :: 2 Set format to Standard M/d/yyyy
        :: 3 Execute passed parameters
        :: 4 Restore original shortDate format
        @SETLOCAL&@SETLOCAL ENABLEEXTENSIONS&@SETLOCAL ENABLEDELAYEDEXPANSION&@IF NOT DEFINED EchoState @SET EchoState=OFF
        @ECHO %EchoState%

        :: Display current format
        REG.EXE QUERY "HKCU\Control Panel\International" /v sShortDate | FINDSTR.EXE /I sShortDate
        DATE /T

        :: Capture (and save) the current date format output from 'REG QUERY'
        FOR /F "TOKENS=1,2*" %%A in ('REG.EXE QUERY "HKCU\Control Panel\International" /v sShortDate ^| FINDSTR.EXE /I sShortDate') DO (
        SET _KEY=%%A
        SET _TYPE=%%B
        SET _VALUE=%%C
        )

        :: Reset the format to the system default value MM/dd/yyyy
        REG.EXE ADD "HKCU\Control Panel\International" /f /v sShortDate /t REG_SZ /d MM/dd/yyyy

        :: Verify that the value is set
        REG.EXE QUERY "HKCU\Control Panel\International" /v sShortDate | FINDSTR.EXE /I sShortDate
        DATE /T
        pause

        :: Run process
        @ECHO.CALL %*
        CALL %*
        :: End process