Applescript for creating a network at start-up

Everytime I start up my mac the network I created is gone and I have to create a new one.
So I want to create an applescript that I can use as start-up item (application)
I found an applescript on the net but that one isn't working on my mac. So I changed it a little.
It works for "turn airport on" (instead of "Open Network Preferences...")
But "Open Network Preferences..." is below a grey line.
What am I doing wrong?
property CreateMenuName : "Create Network…"
property NetworkName : "Net"
property NetworkPassword : "paswd"
tell application "System Events"
          tell process "SystemUIServer"
  tell menu bar 1
  set menu_extras to value of attribute "AXDescription" of menu bar items
  repeat with the_menu from 1 to the count of menu_extras
                                        if item the_menu of menu_extras is "Airport Menu Extra" then exit repeat
  end repeat
  tell menu bar item the_menu
                                        perform action "AXPress"
                                        delay 0.2
                                        perform action "AXPress" of menu item "Open Network Preferences..." of menu 1
  end tell
  end tell
  repeat until exists window 1
                              delay 0.5
  end repeat
  tell window 1
  click checkbox 1
  click pop up button 2
  click menu item 2 of menu 2 of pop up button 2
  click checkbox 1
  set value of text field 2 to NetworkPassword
  set value of text field 3 to NetworkPassword
  set value of text field 1 to NetworkName
  click button 1
  end tell
  end tell
end tell

Well in another discussion I got the answer of keeping your self created network when closing and starting up your mac. The created network will be remembered in System Preferences/Sharing/Internet Sharing/Airport options.
But somehow it needs to be activated. And you can do that by un-clicking "Internet Sharing" and clicking it again and click "Start" So with thanks to BDAqua I came to the following Automator workflow to be saved as an application which you can put in System Preferences/Accounts/ login-items.
on run {input, parameters}
tell application "System Preferences"
activate
end tell
tell application "System Events"
tell process "System Preferences"
click menu item "Sharing" of menu "View" of menu bar 1
delay 2
tell window "Sharing"
click checkbox 1 of row 10 of table 1 of scroll area 1 of group 1
delay 1
if (exists sheet 1) then
if (exists button "Turn AirPort On" of sheet 1) then
click button "Turn AirPort On" of sheet 1
delay 1
end if
click button "Start" of sheet 1
end if
end tell
end tell
end tell
tell application "System Preferences"
activate
end tell
tell application "System Events"
tell process "System Preferences"
click menu item "Sharing" of menu "View" of menu bar 1
delay 2
tell window "Sharing"
click checkbox 1 of row 10 of table 1 of scroll area 1 of group 1
delay 1
if (exists sheet 1) then
if (exists button "Turn AirPort On" of sheet 1) then
click button "Turn AirPort On" of sheet 1
delay 1
end if
click button "Start" of sheet 1
end if
end tell
     end tell
end tell
tell application "System Preferences"
quit
end tell
return input
end run

Similar Messages

  • Applescript for creating job folders

    having trouble with an applescript. I'm trying to create an applescript that will create a job folder for me with job number and job name in which I can include folders and subfolders.
    I found this script by searching google and it's pretty much what I need (thank you to who ever might have created it). I altered the folder names to what I need, and it seems to work for the most part but throws an error at the end that says : Finder got an error: Can't make "drive:path" into type item
    however it still makes everything i need. I would just like to get rid of the error.
    the script editor highlights the line of text that's having issues for me, but since i barely knew what I was doing in the first place I don't know how or what to change.
    if someone could help me that would be great. here is the code.
    set thepath to {"drive:path"}
    set JobName to text returned of (display dialog "Please enter Job Name:" default answer "Job Name")
    set incomingDate to (current date)
    set numYear to year of incomingDate as number
    set textYear to text -2 through -1 of (numYear as string)
    set JobNum to text returned of (display dialog "Please enter Job Number:" default answer {textYear & "xxx"})
    set JobNumName to JobNum & "_" & JobName
    set newsublist to {{"Builds", {"versions"}}, {"Links"}, {"Fonts"}, {"Proofs"}}
    tell application "Finder"
    set baseFolder to make new folder with properties {name:JobNumName}
    repeat with i from 1 to count newsublist
    try
    set {tier2, t2Subs} to {item 1, item 2's items} of item i of newsublist
    set tier2Folder to make new folder at baseFolder with properties {name:(tier2)}
    repeat with tier3 in t2Subs
    make new folder at tier2Folder with properties {name:(tier3)}
    end repeat
    on error
    make new folder at baseFolder with properties {name:(item 1 of item i of newsublist)}
    end try
    end repeat
    activate
    open thepath
    end tell

    There are a few differences with Leopard that still get me from time to time. Tiger's AppleScript doesn't like path to desktop, so instead use the statement:
    set ThePath to (get path to desktop folder)
    The other thing I hadn't noticed before is if there is an error, the script just stops instead of throwing up a dialog. If you are doing something like using an illegal file name or trying to create a folder in a location that you don't have permissions, then unless the MakeFolderStructure statement is in a try statement it will fail silently. Adding an error display will at least tell you if there is an error, so a script that works in Tiger (as well as Leopard) is:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    -- make a folder structure at the currently selected Finder item
    tell application "Finder" to try -- get the current selection
    set ThePath to the first item of (get selection)
    if the last character of (ThePath as text) is not ":" then -- a file
    set ThePath to the container of ThePath
    end if
    on error -- default to the desktop
    set ThePath to (get path to desktop folder)
    end try
    set JobName to text returned of (display dialog "Please enter Job Name:" default answer "Job Name")
    set textYear to text -2 through -1 of ((current date)'s year as text)
    set JobNum to text returned of (display dialog "Please enter Job Number:" default answer {textYear & "xxx"})
    set JobNumName to JobNum & "_" & JobName
    try
    MakeFolderStructure out of {JobNumName, {"Builds", {"versions"}, "Links", "Fonts", "Proofs"}} at ThePath
    on error ErrorMessage number ErrorNumber -- oops
    activate me
    display alert "Error " & ErrorNumber message ErrorMessage
    end try
    to MakeFolderStructure out of SomeItem at SomeFolder
    make the folder structure defined in SomeItem at SomeFolder
    SomeList defines the structure:
    nested list items create folders in the previous text item - {"A", {"B", {"C"}}} = /A/B/C
    empty text items will create untitled folders
    parameters - SomeItem [mixed]: the folder structure
    SomeFolder [alias]: the destination folder
    returns nothing
    set ParentFolder to SomeFolder
    if class of SomeItem is list then
    repeat with AnItem in SomeItem
    if class of AnItem is list then -- add subfolder(s)
    MakeFolderStructure out of AnItem at SomeFolder
    else -- add a new child folder at the current parent
    tell application "Finder" to make new folder at ParentFolder with properties {name:AnItem}
    set SomeFolder to the result as alias
    end if
    end repeat
    else -- add a new (potential) parent folder
    tell application "Finder" to make new folder at SomeFolder with properties {name:AnItem}
    set ParentFolder to the result as alias
    end if
    end MakeFolderStructure</pre>

  • Advice for creating a network

    I want to create a home network with the following:
    - a Mac Pro (acting as the server with the video, images, and audio files) in an office room
    - an Airport Express connected to powered speakers to play music in another room
    - an iTV connected to my television in the living room
    - an Airport Express connected to a laser jet printer and an ink jet printer in the office
    - a new Airport Extreme base station (not sure if I need this???)
    1.) Do I need an Airport Extreme base station to transfer video and other files
    from my Mac Pro to the iTV? Doesn't the iTV have a built in WiFi card?
    An Apple sales person told me I needed the new Airport Extreme station to flash the card in my Mac Pro?
    2.) Can two USB printers be connected to an Airport Express?
    3.) I already have the Airport Express connected to my powered speakers, and this network is called Tunes. When I setup a second Airport Express for the printers, should this have the same name as the other Airport Express? Does it matter?
    4.) Does this mean that when I turn on my airport on my notebook I will have to select from one of the different networks to connect to? How does this work since each Airport Express/Extreme will have a different name?
    Thanks!!!

    1.) So the only way to use the "n" speed of the iTV
    and the Mac Pro is to flash it with the new Airport
    Extreme Base Station? Is there any other way to do
    this without having to buy the Station just for
    this?
    At the moment the software is only available with the new Airport Extreme base station.
    2.) When setting up another Airport Express for
    printers, would I just set it up and provide the same
    name as used for the other Airport Express? OR do I
    somehow set it up so it joins the existing network?
    Join the existing network in client mode.
    What is client mode?
    http://docs.info.apple.com/article.html?artnum=108040
    "By connecting one Airport Express (the one if the
    office) to your internet connection, this will be
    your wireless router."
    I have no Internet currently.
    It can still be your main wireless router even without an internet connection.
    3.) Is there somewhere that I need to designate a mac
    or an Airport Express as a "client?"
    Macs joining a wireless network are clients.
    An Airport Express can be a wireless router or configured as a client to a wireless network.
    What is client mode?
    http://docs.info.apple.com/article.html?artnum=108040
    4.) What do you mean by "...and in theory you could
    use the Mac Pro as a software base station (instead
    of one of the Express units) ?" Do you mean I could
    use the Mac Pro somehow to send music and video
    without connecting it to an Airport Express or Base
    Station?
    Yes.
    System Preferences > Sharing Internet
    Share internet connection VIA Airport.
    I know you don't have an internet connection, but this sharing will configure your Mac Pro as a wireless base station to which you can connect other Macs and Airport Express units and the Apple TV.
    5.) Could my printers be connected to the Mac Pro and
    be available wirelessly to my notebook?
    Yes.

  • AppleScript for All users

    I'm trying to run an applescript for all the network users on a desktop and I can't figure out a way to do it automatically.  Since there are over 2,000 users in the building I would prefer to not use the Users & Groups LoginItems for each invidual user that signs into the computer.  We are deploying an OD server and if it would be great if I could use that to deploy the script.  Thanks!
    Message was edited by: Nick.V.ACST

    Use Profile Manager.

  • Applescript to create a New Network

    Hi all!
    I'd like to build an applescript to create a New Network on Mac OS 10.6.
    The script should run on a computer without a screen, and I will interact with the Mac through a VNC application on an Ipad, which I already have. So I need to know that every time the IP address of the private network will be the same.
    I'm very new to Applescript so i was wondering if you could give me some tip on how to start, I've been trying with no success since yesterday but I know it can't be that difficult!
    thanks!

    OK, that helps a little, but not a lot... I'm still not getting it - or maybe you're not...?
    Is the machine local to the iPad - i.e. are they on the same LAN?
    If the machines are remote then creating a new wireless network isn't going to help since you'd also need to configure your router for port forwarding, etc.
    If the machines are on the same LAN, though, the iPad should be able to connect directly - without any internet exposure - so you don't need to create a new network. You should be able to just configure the wireless network with a specific, known IP address and connect to that... unless you don't have a base station...?

  • How do I create Local Network Home Folders for Users from an Active Directory binding?

    My situation is this... I run an iMac lab at my school.  I have a server set up to manage the network user accounts in the lab.  Currently, I can sucessfully create Local Network Users and log in to them from any of the iMacs.  My school has an Active Directory set up for all the students on campus.  What I'd like to be able to do is configure the server to allow the students to use their user names and passwords from their school accounts to log in to the iMacs and have it automatically build a network user folder on the server for them to use during the lab. 
    So far, I have been able to configure access for the Active Directory accounts to use the services on the server, mainly File Sharing, but I cannot figure out how to allow them to log into a user account on the client's machines using their same Active Directory credentials.  I have even attempted to allow the user accounts to create mobile accounts, but that's not working out either.  Entering indivual network user accounts into the server for every student every semester will be a nightmare.  I'm sure there's a way to do it automatically using the exisitng Active Directory structure.
    The live server is running 10.8.5 Server still, but I've also got a clone running OS X Server in case it matters.  Please help!

    ok reinstalled everything dns seems to be working have done sudo changeip -checkhostname and it says that both names match but then i started open directory and can't seem to get Kerberos started, i've tried changing it to stand alone then back again but it does nothing. I'm wondering why this would happen? i've tried adding a kerberos record but it doesn't do it just does nothing so i don't know what i'm doing wrong. I wondered if it might be a problem with the two network cards and dns as on ethernet one it is getting the dns name xserve.xxxx.ac.uk (which matches what the college server wants to call us) but on ethernet 2 gets xserve-2.local because it tells me that it already exists on ethernet one and renames it to this. I need to set up NAT so have ethernet coming in on port one and out again on port two. I wonder if my dns is backwards as its got the 192. address the NAT uses but its linked to the ethernet port one dns maybe this is the problem. would this cause open directory not to start kerberos?

  • Creating a template in Pages is straight-forward as answered here previously. Is there and equivalent for iBooks Author which can start with a blank page and build up the template as required? or can one only adapt a ready made template?

    Creating a template in Pages is straight-forward as answered here previously. Is there an equivalent for iBooks Author which can start with a blank page and build up the template as required? or can one only adapt a ready made template? This has proved unsatisfactory to me so far. Lines are left in etc.

    There are two basic menus for fonts - one from the main menu bar and one from the toolbar. You can also bring up the font manage dialog.
    I don't recommend trying to hard to force an otherwise foreign font, as it inevitably needs to be usable/supported on iOS as well, and that can get tricky w/3rd party fonts, as an example, even with the expanded font support in the latest iBA.
    If you need to discuss fonts more, I suggest starting a new thread....preferably with a slightly more brief title, thanks.

  • My airport extreme has connected to a Tplink router, i set my AE in Create network, so i get a problem of Double NAT. How can i repair this probleme because i have to use TPlink for my IP TV and i want to use AE to creat my network and the guest NW.

    my airport extreme has connected to a Tplink router, i set my AE in Create network, so i get a problem of Double NAT. How can i repair this probleme because i have to use TPlink for my IP TV and i want to use AE to creat my network and the guest NW. If we don't have a solution for this question, can i set my AE to use the IP TV and how??? I'm using a 4th Airport extreme

    No, not unless it is simply a network connection.
    How is your IPTV being provided.. if it is using a separate vlan or separate vpi/vci in the adsl connection. Who is your ISP?
    Is the TP-Link ADSL?
    Is the IPTV using a separate voice channel on adsl?
    Or a different vlan.
    Sorry but it is something where a definite answer is not possible unless you provide all the details.
    The setups are unique to each ISP around the world..
    Here is one for our local ISP.
    http://www.avenard.org/iptv/Setup.html
    He has a section on getting this working with apple router over wireless.. look
    http://www.avenard.org/iptv/IPTV_and_Wireless.html
    Google around and see if other people have had success.. the whole setup is tricky.. and it is hard if nobody has used it who actually understands networking.

  • I recently start using Firefox panorama. If I create a tab group that contains, for example, my favorite stack exchange websites, can I save ("bookmark") this tab group for easy access if I start a new session?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/813855]</blockquote><br>
    I recently start using Firefox panorama. If I create a tab group that contains, for example, my favorite stack exchange websites, can I save ("bookmark") this tab group for easy access if I start a new session?

    You can bookmark all those tabs and place them in a folder.
    * "Bookmark This Page" and "Bookmark All Tabs" no longer show in the Bookmarks menu unless you open the Bookmarks menu via the keyboard (Alt + B).
    * "Bookmark All Tabs" can be accessed via the right-click context menu of a tab on the tab bar.

  • Can I create a network for printing & music alone ?

    I don't have DSL or any type of broadband - still using dial up.
    If I buy an Airport Express can I configure it to wirelessly print and stream music or do I need a wireless network in the background to make this work ?

    Can I create a network for printing & music alone ?
    Yes
    If you also want internet access at the same time you will need to tweak things a bit.

  • I purchased i phone 3GS from San francisco thro my brother, when i brought to oman, i want to update ios 5 to ios 6 for that from itunes to start update , finally failed and i could not able to configure in oman wifi network, i dont have backup..help me..

    i purchased i phone 3GS from San francisco thro my brother, when i brought to oman, i want to update ios 5 to ios 6 for that from itunes to start update , finally failed and i could not able to configure in oman wifi network, i dont have backup..help me..

    Has your phone ever been hacked or jailbroken. This error message is what usually shows up for that. Are you using a supported carrier for the iPhone, or did someone hack the phone to unlock it to be used on another carrier. If that is the case, then there is no help you can get here as discussing hacked/jailbroken devices is not allowed.

  • Hints and tips for creating a wireless network with windows

    G'day All,
    I am trying to setup up a wireless network so I can share large files between my Macbook Pro and my housemates Windows XP machine.
    I have no problem actually creating the network on my Macbook Pro and his windows machine can "see" it butI'm having trouble with my housemate's machine actually logging into my network (he can see it though).
    I happy for him to dump the files (camera raw files) into my Drop box if it's the easiest solution.
    Can anyone provide me with a basic step by step guide on what settings i need to fiddle with on both machines for it to work.
    Thanks in advance.

    Hi DAC73-
    Anything useful here: Mac OS X: Setting up Windows File Sharing?
    Luck-
    -DaddyPaycheck

  • Creating a network bridge from ethernet to wifi for xbox

    Hey guys, I'm trying to create a network bridge from eth0(ethernet port) to ra0(wifi) in an attempt to avoid buying a wireless adapter for my new Xbox 360 I got this Christmas. With Windows, it looks incredibly simple(just going into network settings and right clicking basically) but I don't want to boot into windows every time I want to use live... I have searched around the net but I always get DNS errors whenever I play with iptables, does anyone have a good way to get this to run?

    Any chance you guys are going to finish answering it? Since Arch is the do-it-yourself distro, can we get a group of people together who want to make a package or go "fix" the NetworkManager source code to include support for autoconfiguration of bridges?
    Windows calls them bridges now, just for your information. In windows you select or highlight both network interface devices at the same time, right click on either one, and select "Bridge Connections". This is incredibly easy for the user, and it is just as powerful as that mess of instructions you gave up there.
    scripts are OK, but they should never be the final solution to a problem. Remember it helps if more people don't have to know everything about an operating system. If people can avoid the complexity of Linux, they will be happier, more productive, and will enjoy contributing software to Linux or telling their friends about Linux.
    If it requires this "splint" scripting that doesn't work 100% of the time, Linux is going to die a very grisly death. I know more and more people nowadays who know to Bridge the connections in Windows to get internet on their xbox 360s. I can't convince any of them that Linux is better because they ignore the rest of Linux and complain about this one missing feature. Indeed even I can't use Linux to bridge my laptop's connections for use with my desktop or another computer that needs to download 3rd party wireless drivers from the internet.
    I am a huge proponent of Linux, but to be honest, I notice that a bunch of work still needs to be done. I realize the market and business forces are set against Linux right now, but if everyone would stop making new distros and instead fix the packages that go into the existing ones, we could have Linux replace Windows within 5 years.
    If you don't like a distro, go work for the company and help them improve it. Making your own distro is not going to help solve the watered-down developer population.
    Networking is something that is VERY important to people. NetworkManager was a great success and boon to everyday Linux usage. It needs a bit of polishing; that is all.

  • Can I use my wireless/Airport card to create a network for Home Sharing?

    I don't have a separate router. Can I use my MBP's wireless/Airport card to create a network for Home Sharing?

    I was unable to use the network preference "Create Network" option as it kept crashing, so I didn't really get to figure out if this is possible. If anyone else has done this, I would be interested to know for the future.
    Is it possible to setup a home network without a separate router? Is the wireless/airort card enough to setup and maintain a home network for Home sharing?

  • URGENT:Diagnose The Steps for Creating a Standby Database

    Why Following Steps Can Not Succeed? What are the problems?
    The Steps of Creating a Physical Standby Database
    SQL>alter system set db_recovery_file_dest_size=2000m scope=both;
    SQL>alter system set db_recovery_file_dest='C:\oracle\product\10.2.0/flash_recovery_area' scope=both;
    SQL> shutdown immediate
    SQL> startup mount
    SQL> alter database archivelog;
    SQL>alter system set db_flashback_retention_target=120 scope=both;
    SQL> alter database flashback on;
    SQL> alter database force logging;
    #The Primary Database Pfile after being edited
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # SGA Memory
    sga_target=370147328
    # Job Queues
    job_queue_processes=10
    # Shared Server
    dispatchers="(PROTOCOL=TCP) (SERVICE=orcl10XDB)"
    # Miscellaneous
    compatible=10.2.0.1.0
    # Security and Auditing
    audit_file_dest=C:\oracle\product\10.2.0/admin/orcl10/adump
    remote_login_passwordfile=EXCLUSIVE
    # Sort, Hash Joins, Bitmap Indexes
    pga_aggregate_target=122683392
    # Database Identification
    db_domain=""
    db_name=orcl10
    # File Configuration
    control_files=("C:\oracle\product\10.2.0\oradata\orcl10\control01.ctl", "C:\oracle\product\10.2.0\oradata\orcl10\control02.ctl", "C:\oracle\product\10.2.0\oradata\orcl10\control03.ctl")
    db_recovery_file_dest=C:\oracle\product\10.2.0/flash_recovery_area
    db_recovery_file_dest_size=2147483648
    # Cursors and Library Cache
    open_cursors=300
    # System Managed Undo and Rollback Segments
    undo_management=AUTO
    undo_tablespace=UNDOTBS1
    # Diagnostics and Statistics
    background_dump_dest=C:\oracle\product\10.2.0/admin/orcl10/bdump
    core_dump_dest=C:\oracle\product\10.2.0/admin/orcl10/cdump
    user_dump_dest=C:\oracle\product\10.2.0/admin/orcl10/udump
    # Processes and Sessions
    processes=150
    # Cache and I/O
    db_block_size=8192
    db_file_multiblock_read_count=16
    DB_NAME=orcl10
    DB_UNIQUE_NAME=orcl10
    LOG_ARCHIVE_CONFIG='DG_CONFIG=(orcl10,stdby4)'
    LOG_ARCHIVE_DEST_1=
    'LOCATION=/arch1/orcl10/
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
    DB_UNIQUE_NAME=orcl10'
    LOG_ARCHIVE_DEST_2=
    'SERVICE=stdby4 LGWR ASYNC
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
    DB_UNIQUE_NAME=stdby4'
    LOG_ARCHIVE_DEST_STATE_1=ENABLE
    LOG_ARCHIVE_DEST_STATE_2=ENABLE
    REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
    LOG_ARCHIVE_FORMAT=%t_%s_%r.arc
    LOG_ARCHIVE_MAX_PROCESSES=30
    FAL_SERVER=stdby4
    FAL_CLIENT=orcl10
    DB_FILE_NAME_CONVERT='stdby4','orcl10'
    LOG_FILE_NAME_CONVERT=
    '/arch1/stdby4/','/arch1/orcl10/','/arch2/stdby4/','/arch2/orcl10/'
    STANDBY_FILE_MANAGEMENT=AUTO
    SQL> create spfile from pfile;
    RMAN> connect target
    RMAN> backup database;
    ###TheBackupHandle==C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL10\BACKUPSET\2007_11_06\O1_MF_NCSNF_TAG20071106T064915_3LZ7LRN8_.BKP
    RMAN> backup datafile1,2,3,4,5;
    C:\DocumentsandSettings\Administrator>mkdir C:\ORACLE\PRODUCT\10.2.0\ORADATA\temp\stdby4
    SQL> alter database create standby controlfile as '/temp/stdby4.ctl';
    SQL> create pfile='/temp/initstdby4.ora' from spfile;
    #Pfile Edited for The Physical Standby Database
    # Copyright (c) 1991, 2001, 2002 by Oracle Corporation
    # SGA Memory
    sga_target=370147328
    # Job Queues
    job_queue_processes=10
    # Shared Server
    dispatchers="(PROTOCOL=TCP) (SERVICE=stdby4XDB)"
    # Miscellaneous
    compatible=10.2.0.1.0
    # Security and Auditing
    audit_file_dest=C:\oracle\product\10.2.0/admin/stdby4/adump
    remote_login_passwordfile=EXCLUSIVE
    # Sort, Hash Joins, Bitmap Indexes
    pga_aggregate_target=122683392
    # Database Identification
    db_domain=""
    db_name=orcl9
    # File Configuration
    control_files=("C:\oracle\product\10.2.0\oradata\stdby4\control01.ctl", "C:\oracle\product\10.2.0\oradata\stdby4\control02.ctl", "C:\oracle\product\10.2.0\oradata\stdby4\control03.ctl")
    db_recovery_file_dest=C:\oracle\product\10.2.0/stdby4/flash_recovery_area
    db_recovery_file_dest_size=2147483648
    # Cursors and Library Cache
    open_cursors=300
    # System Managed Undo and Rollback Segments
    undo_management=AUTO
    undo_tablespace=UNDOTBS1
    # Diagnostics and Statistics
    background_dump_dest=C:\oracle\product\10.2.0/admin/stdby4/bdump
    core_dump_dest=C:\oracle\product\10.2.0/admin/stdby4/cdump
    user_dump_dest=C:\oracle\product\10.2.0/admin/stdby4/udump
    # Processes and Sessions
    processes=150
    # Cache and I/O
    db_block_size=8192
    db_file_multiblock_read_count=16
    DB_UNIQUE_NAME=stdby4
    LOG_ARCHIVE_CONFIG='DG_CONFIG=(orcl10,stdby4)'
    DB_FILE_NAME_CONVERT='orcl10','stdby4'
    LOG_FILE_NAME_CONVERT=
    '/arch1/orcl10/','/arch1/stdby4/','/arch2/orcl10/','/arch2/stdby4/'
    LOG_ARCHIVE_FORMAT=log%t_%s_%r.arc
    LOG_ARCHIVE_DEST_1=
    'LOCATION=/arch1/stdby4/
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES)
    DB_UNIQUE_NAME=stdby4'
    LOG_ARCHIVE_DEST_2=
    'SERVICE=orcl10 LGWR ASYNC
    VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
    DB_UNIQUE_NAME=orcl10'
    LOG_ARCHIVE_DEST_STATE_1=ENABLE
    LOG_ARCHIVE_DEST_STATE_2=ENABLE
    REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
    STANDBY_FILE_MANAGEMENT=AUTO
    FAL_SERVER=orcl10
    FAL_CLIENT=stdby4
    C:\Documents and Settings\Administrator>oradim -new -sid stdby4 -startmode manual
    Create Listener and Network Service Name for Standby Database.Stop and start listener(not need)
    SQL>create spfile from pfile='/temp/initstdby4.ora';
    C:\Documents and Settings\Administrator>set oracle_sid=stdby4
    SQL> startup mount;
    ORA-01078: failure in processing system parameters
    LRM-00109: ???????????????? 'C:\ORACLE\PRODUCT\10.2.0\DB_10\DATABASE\INITSTDBY4.ORA'
    Message was edited by:
    frank.qian
    Message was edited by:
    frank.qian

    you have now two different pfiles: one in c:\temp\initstdby4.ora. and %ORACLE_HOME%\database\initstdby4.ora.
    You are using the latter, as you didn't specify pfile= in your startup mount.
    Also, if you are using a spfile, the only line in a pfile should be: spfile=....
    In your pfile you are mixing up Unix like file locations with \ and Windows file locations with /
    Could you please read the docs
    more closely
    more closely
    more closely
    and work
    more carefully
    more carefully
    more carefully
    It is very simple, but you must work carefully.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for