WSH and ini files

Hi gents,
I want to create the user on the mobile server using wsh.exe tool.
When I try the below code I get the following result:
command is :
c:\wsh -c c:\SETTINGS.INI <mobileusername>/<password>@webtogo.world
the result is :
-3023
WTG-10017: Failed to mount file system on WEBTOGO.WORLD
What does this mean? When � wrote the below code I can login to the system :
c:\>sqlplus <mobileusername>/<password>@webtogo.world
Is there a way to mount the file system on webtogo.world?
All help will be appreciated...
Regards,
Bogac OZGEN

Hi all,
I found the error. In my ini file I tried to create the users only y preparing the ini file in the way that is being shown below:
[USER]
NAME=JOHN
PASSWORD=john
ENCRYPTED=false
FULLNAME=Sample1 User John
PRIVILEGE=C
But before these lines we must indicate the database type so we need to add the following line:
[DATABASE]
TYPE=ORACLE
So our file must be like this:
#Indicate the database type
[Database]
TYPE=ORACLE
#Create the user
[USER]
NAME=User1
PASSWORD=User1
ENCRYPTED=False
FULLNAME=My User 1
PRIVILEGE=C
#Create the user group
[Group]
NAME=Users Group
USER=User1
#Give roles
[ACL]
APPLICATION=/MyApp
ROLE=Default Role
GROUP=Users Group
ACCESS=ENABLED
#Prepare the bind variables
[SNAPSHOTVAR]
Name = MyApp
PLATFORM = WinCE
VIRTUALPATH=/MyApp
USER = User1
VAR=MyVar, 5
#Give access rights
[GRANTACCESS]
APPLICATION=/MyApp
ACCESS = Enabled
ROLE=Default Role
GROUP=Users Group
When you prepare this file then you can run this script by writing the below command:
c:\wsh -c c:\MyFile.ini <UserName>/<UserPass>@webtogo.world
You can see the results from the control center.
Regards,
Bogac OZGEN

Similar Messages

  • .bat file and .ini file

    I have a batch file with the following contents, I need to substitute the paths \\folder\projectname\formatter\saxon8\ with a variable using .ini file. Could anyone please tell me how do I do this
    @echo off
    cls
    echo.
    set CP=\\folder\projectname\formatter\saxon8\saxon8-jdom.jar;\\folder\projectname\formatter\saxon8\saxon8-sql.jar;\\folder\projectname\formatter\saxon8\saxon8sa.jar;\\folder\projectname\formatter\saxon8\saxon-license.lic
    ...If the path of the needed files gets changed in future, the user need to change the path only in the .ini file and that should reflect in the .bat file.
    Message was edited by:
    Simmy
    Message was edited by:
    Simmy

    I am reading the INI file in my code whose value C:\\temp\\ is getting displayed in my Batch file, but I need to display only the keyword Path in my Batch file. Can you please tell me what modifications I need to do in my code.
    This is the contents of my INI file
    [INI file : user.ini]
    Path="C:\\temp\\"
    The following is my code
        public void createFile()
            try
                p = new Properties();
                p.load(new FileInputStream("D:/user.ini"));
                JarPath=p.getProperty("Path");
                p.list(System.out);
            catch(Exception e)
                System.out.println(e);
            File file1=new File("D:/temp/ps1.bat");
            BufferedWriter bw1;
            try
                bw1=new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file1)));
                bw1.write("@echo off\n");
                bw1.write("cls\n");
                bw1.write("echo.\n");
                bw1.write("set CP="+JarPath+"saxon8-jdom.jar;"+JarPath+"saxon8-sql.jar;"+JarPath+"saxon8sa.jar;"+JarPath+"saxon-license.lic\n");
                bw1.flush();
            catch(IOException ioe)
                System.out.println("Error creating \"ps1.bat\". Process terminated.");
    Currently, the following is my Batch file contents
    @echo off
    cls
    echo.
    set CP=C:\temp\saxon8-jdom.jar;C:\temp\saxon8-sql.jar;C:\temp\saxon8sa.jar;C:\temp\saxon-license.lic
    But I need my Batch file to display
    @echo off
    cls
    echo.
    set CP=Path\saxon8-jdom.jar;Path\saxon8-sql.jar;Path\saxon8sa.jar;Path\saxon-license.lic

  • Propblem with Properties class and .ini file !

    Hello I have to read and write in a .ini file. I've got no problem, using a bit of code like this
    Properties iniFile = new Properties();
    String result="exception";
    try{     
    iniFile.load(new FileInputStream(path));
    result = iniFile.getProperty("SrcPath","not found");     
    catch(IOException e){}
    finally{return result;}
    it works correctly, but my problem is that my .ini file contain path like "SrcPath = e:\directory1\directory2"
    And then in my result variable I get : "e:directory1directory2" all the slash are cutted by iniFile.load !!
    And the problem is that I can not put "\\" in my ini file because it is used by other programs that need just one slash !!!!
    Is anybody got an idea to get the right path "e:\directory1\directory2"
    Thanks by advance Eric

    1st question.
    Properties props = new Properties();
         try{
              String uploadprop = "c:/yourinifile.ini";
              File file = new File(uploadprop);
         FileInputStream fis = new FileInputStream(file);
              ByteArrayOutputStream baos = new ByteArrayOutputStream();
              int character;
              while((character=fis.read()) != -1){
              baos.write(character);
              if((char)character == '\\')
                   //write one more '\'
                   baos.write(character);
              ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
              baos.close();
              //load bais
              props.load(bais);
              bais.close();
              fis.close();
              System.out.println(props.getProperty("dirname"));
         }catch(Exception e){
    hope this helps
    rishi

  • Java and .ini files

    Hi all,
    I'm thinking about using windows .ini files to configure a java application without having to touch the code every time I want to change something.
    I know that this is working fine in Windows environment, but will the same application function the same way in Linux or Unix environment by using the same .ini files?
    many thanks in advance....
    mike

    why .ini files in particular? any old text file will do. have a read about java Properties, or maybe the Preferences API

  • How to create and edit a .ini file using java

    Hi All...
    Pls help me in creating and editing an .ini file using java...
    thanks in advance
    Regards,
    sathya

    Let's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Test {
         private static Properties props;
         public static void main(String[] args) throws IOException {
              File file = new File("test.ini");//This is out ini file
              props = new Properties();//Create the properties object
              read(file);//Read the ini file
              //Once we've populated the Properties object. set/add a property using the setProperty() method.
              props.setProperty("testing", "value");
              write(file);//Write to ini file
         public static void read(File file) throws IOException {
              FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
              props.load(fis);//load the ini to the Properties file
              fis.close();//close
         public static void write(File file) throws IOException {
              FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
              props.store(fos, "");//write the Properties object values to our ini file
              fos.close();//close
    }

  • Cretaion of UTL.File in Oracle 10G and directory entry in Ora.ini file

    Hi,
    Kindly advise me if:
    (!) we can create a directory and log file in this directory on some other server instead of creating it in the file system of the server where the Oracle 10G database is residing?
    Created directory in Oracle using create or replace directory command.
    My package will be creating a log file using UTL.File in the above directory.
    I want to create this directory on some other server to save my log file/s. Is this possible?
    (2) Also, let me know in Oracle 10G, do we need to add the directory entry (mention above in #1) in the Ora.ini file on the Oracle 10G server?

    Hi,
    1) utl_dir are different from directory object
    2) you cannot create directory on remote server and there is no need to write directory entry on oracle init file (not ini..)
    Acr

  • Step incrementing of .ini file and check and changing the content within step

    Hello I want to increment the [step002] automatically in the .ini file. If the steps are copied and pasted more times in already existing file, where by doing so the step numbers are doubled. For example if there exists  [Step002] followed by content of it and then [Step001] and followed by contet of it and  [Step002] followed by content of it. And if a person copies [Step002] with its content 80 times or n number of times then the last one should be automatically incremented  to new number as [Step003] and [Step004] [Step005]. And then I want to arrange the content under each step. In my file I have a " Group_Start = Step001" and  " Group_Name = OQ_004 set high port" as contents in each step. I want to arrange the group name. 
    What I want is, if in the newly copied [Step002] which would have already been incremented to [Step004], it would contain Group_Name = OQ_004 set high port which I have highlighted in italics, if this already exists some where in the file, then its corresponding Group_Start = Step001 which I have highlighted in italics should be given to the newly copied and incremented [Step004]. And in case the Group_Name = OQ_004 set high port which I have highlighted in italics does not match any where then its corresponding Group_Start will be as Group_Start = Step004. That means since the group name is new and it does not exist already in the file, the Group_Start should take its step number [Step004] which her I have highlighted in italics, as its Group_Start = Step004. Here with I attach my file and I also attach my steps which I had tried. It would be nice if solution is given or further step ideas from my steps to complete the task is given.
    Thank you.
    John
    Attachments:
    Config.ini ‏2 KB
    Tried.vi ‏26 KB

    Hello, Thank you for your reply. May be I break it into steps. Now where I am struck is that if there are say random numbers some repeated ones
    example 001, 002, 002, 002, 004, 007, 006 etc.. I would like get sorted in ascending order and also the reapeated numbers should be in the running order. That means 001, 002, 003, 004, 005, 006 etc.. There should not be repeated numbers.if reapeatd then the repeated one should have to be incremented from the previous one. If this has been solved then I can explain the other part and shall aslo goahead. I had already tried one method but the loop seems to be not exactly matching. There are some numbers which come extra. You can use the same config file which I had sent earlier. Just copy and paste the steps below or inbetween and use it for testing. Thank you
    Attachments:
    change all stepst number.vi ‏14 KB

  • Using ini-files with write-key/read-key (double) and defined accurarcy

    Hello,
    in a popup the user can insert a numeric-double-value.
    This value is saved in a ini-file using the Write-key-vi with Type = double. Works fine.
    What do i have to do to set the values after the comma?
    So if user inserts 1,532 i want to round to two digits after comma and save it. (-> 1,53)
    Thx
    Solved!
    Go to Solution.

    I don't know how LV deals with different decimal seperators (e.g. comma instead of point), I guess it 'just works' depending on the system locale.
    A few different options are available as follows...
    The Write Key function has a 'precision' input which will set the number of decimal places to save the DBL to (in your case, set this to 2):
    If you are using a numeric field, you can set the 'increment' property with 'coerce to nearest' to prevent them from entering more precision than is available:
    The obvious method for post-rounding the input is to scale up the number, round to the nearest integer and then divide again to limit the precision:
    I couldn't see anything in the numeric/math palettes that does this.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Read and sort values present in .ini file

    Hi all,
    I have a .ini file in which a set of modules with there order of execution is mentioned.I want to get all these values sorted as an array so that I can proceed with the execution of each in the order mentioned.The module list in the .ini file looks like this:
    Here, digits represent the order of execution of module.
    I should get output as an array with following values:
    1 MNO
    2 DEF
    3 STU
    4 PQR
    5 GHI
    6 VWZ
    7 ABC
    8 JKL
    I know about config data and read key vis but since the module list is huge I dont know how to write an efficient code for this.All suggestions are welcome.
    Thanks.
    Solved!
    Go to Solution.

    The snippet below should be very close to what you want.

  • Recycle bin and Desktop icon ini file

    Hello hope this is in the right section,  Toshiba P750 Laptop,
    Every drive has a recycle bin which is annoying as my last laptop didnt have it, I cant remove the folder, C drive is fine.
    Also there is a desktop icon system ini folder my libraries folders somtimes 2 of them which is annoying me as well, I delete them next day there back, any idea how to fix this woulkd be appreciated.
    Thanks
    Regards
    Solved!
    Go to Solution.

    When you elect to show hidden files, you'll see things like the $Recycle.Bin folders and desktop.ini files. That's just the way Windows works.
    Desktop.ini files, BTW, are what tell Windows Explorer how to lie about what it sees in a folder.
       Show hidden files
    When you post here, always tell us which Satellite P750 you have. See the label on the bottom.
    -Jerry

  • [CS3 Win]It is possible read an ini file when starting InDesing and hide some menus?

    Hi all.
    My plugin reads a ini file to configurate the main menu.
    It is possible read this file when starting InDesing and hide some submenus created in Myplugin.fr?
    I have no problem to hide/show a menu, but I don´t know what is the first event that runs after loading my plugin.
    Is there other possible way to do this?
    Thanks in advance.
    Best regards,
    Juanma.

    Have you tried implementing a startup/shutdown service provider (IID_IAPPSTARTUPSHUTDOWN)? If it's too late to hide the menu, then an IMenuFilter/IActionFilter should do the job for you to hide menu. Or you can dynamically build the menu on the fly too (see dynamicmenu sample from SDK)
    -lee

  • Migrating data and settings from XP to Win7, do I have to overwrite the profiles.ini file on the new Win7 system with the old XP version of the file?

    I have the Profiles folder and the profiles.ini file copied to a USB stick. I know I copy the Profiles folder content into the Profiles folder on the Win7 machine, but do I have to overwrite the profiles.ini file on the new machine too? Various strands of advice aren't clear on this. And are there any other files which also need to be migrated/overwritten? Clear directions would be welcome.

    don't transfer, reinstall.
    if you need to reset your activation count, contact adobe support -  http://helpx.adobe.com/x-productkb/global/service1.html
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5.5 (win), 5.5 (mac) | 5.4 (win), 5.4 (mac) | 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • Import ini file and regfile

    I want to import ini file and a reg file at runtime.
    Now i know that you can do that with startup shim DLL.
    I got sample project for the startup shim but I am not good in c++ programming.
    Has somebody example code for import of ini file and reg file.
    Please help me......I am stupid

    stonehill1957,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Read and update a ini file

    Hi all,
    I want to read an INI file which the structure as follows.
    [Head]
    Name=Bool
    Key=Next
    Text=Java
    [More]
    Here=NewThis is the way I read it.
                Properties pro = new Properties();
                pro.load(new FileInputStream("temp.ini"));
            // Try to display them
                System.out.println("Text is: " + pro.getProperty("Text"));
                System.out.println("Key is: " + pro.getProperty("Key"));
                System.out.println("Name is: " + pro.getProperty("Name"));
                System.out.println("Here is: " + pro.getProperty("Here"));Works fine now.
    Try to write as follows.
              Properties p = new Properties();
              p.load(new FileInputStream("temp.ini"));
              // new Property
              p.put("today", new Date().toString());
              // modify a Property
              p.put("Text","foo");
              FileOutputStream out = new FileOutputStream("mydat.ini");
              p.store(out, "MyComment");After writing my INI file structure us change as follows.
    [More]=
    Name=Bool
    Key=14
    [Head]=
    Here=New
    today=Fri May 09 12\:13\:43 IST 2008
    Text=fooCan you tell me why this happened and how to solve it. :(
    Edited by: ItsJava on May 9, 2008 12:15 PM

    A Windows ini file is not the same as a Java properties file.
    Use the right tool for the job. There is a Ini4j project at Sourceforge. Google it.

  • Reg .ini Files and level based merics

    Hi Experts,
    1>What are the different .ini files that we have in 10G.
    2>In how many ways we can create level based metrics.
    3>If i want change default font as PDF in which ini file i have to change.
    Regards,

    Hi,
    1>What are the different .ini files that we have in 10G.
    NQClusterConfig.INI
    NQSConfig.INI
    DBFeatures.INI
    2>In how many ways we can create level based metrics.
    By using dimension hierarchy.
    3>If i want change default font as PDF in which ini file i have to change.
    NQSConfig.INI
    mark if helpful/correct..
    thanks,
    prassu

Maybe you are looking for

  • Swf file has stopped playing in 'live' browser only

    Hello everyone, Hope you can help with this, whilst working on my site one of the swf files stopped playing when viewed in the browser (live). The file plays ok from Dreamweaver from both local view and remote view. Went onto web server cpanel and pl

  • PekWM help? {SOLVED}

    I am checking out pekwm for fun but I have a problem. I want to have "Desktop Margins" as they are called in Openbox. I have a conky display on the top of my screen and tint, ipager, and trayer on the bottom. I tried EdgeSize in the pekwm config file

  • Failed install DJ1010

    Failed DJ1010 installation,running XP professioal 32Bit. I receive error message hpinkstsB511M.dll is missing from HPXPS PCL3 Diver is needed

  • Calculate a sum by date

    I had an Excelsheet imported in siena. First column is Date (01/01/2011 for example) - second column is a Value. For each day i have one row and each new day i add one value. (Date and Value) In siena i would like to calculate a sum from the beginnin

  • Sale orders which have got invoiced are still coming in delivery due lsit.

    We have certain sales orders that are coming up in delivery due list inspite of these orders are complete (invoice completed). Any helps on this??