Executing servlet in command prompt

Can we run the servlet in the cmd prompt .
I am using tomcat5
server in windows Environment .

Can we run the servlet in the cmd prompt .**sigh**Dont see any reason why you would want to do
this, but yes you could.
Put a main method, create an instance of the servlet
and call the various methods like in any other java
class. You would have to generate a request and
response object to call the processing methods.
Note::: This servlet when run in this fasion wouldnt
be responding to a browser request which is what it
was originally intended for and you wouldnt be able
to do a darend thing with the o/p.
I am using tomcat5
server in windows Environment .doesnt matter, you are invoking from the command
prompt, the container has no role to play here.
Note: On second thoughts, you could post a http
request from a telnet prompt.
GET HTTP/1.1 /url/This would post the request to the server which would
invoke the servlet - dont know if this is what you
are looking for.
cheers,
ram.I think this defeats the purpose of servlets- no request-response mechanism.

Similar Messages

  • How do i get a output in CSV of a SQL query executed via SQL Command prompt

    Hi All,
    I have a question with reference to SQL command prompt. I have a sql query which runs properly and gives proper execution in SQL Management console in GUI.
    This report is used to pull the free disk space report of our servers
    As i want to schedule it as a report so i want to script it to run via SQL command prompt. I made the script and it works fine if i enter it in SQL command prompt. When i try to extract the output to a CSV File it fails. Below is the details of the command
    i am using to query to pull the data. Can anyone help me in getting the output of this query in SQL command prompt.
    sqlcmd -W -s , -S Servers FQDN
    use operationsmanager
    Go
    Query:"select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "C:\DataSqlCmd.csv"
    Go
    When i enter the command without the quotes when the query is starting and ending and also without the output command (-s "," -o "C:\DataSqlCmd.csv") it is working and shows the output in the command prompt. Below is the screen shot for
    your reference.
    Due to security reasons i have to erase the server names:
    But when i add the line to extract the output ( -s "," -o "C:\DataSqlCmd.csv") It gives me this error:
    The exact command would be:
    sqlcmd -W -s , -S CINMLVSCOM01.e2klab.ge.com
    use operationsmanager
    Go
    "select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "C:\DataSqlCmd.csv" -h-1
    Go
    saying the syntax is not correct or some thing as per the below screenshot.
    Can any one please help. Below is just the query whi i use to get the output in SQL management studio.
    Can any one make a command for the below quer so i can directly execute and test for getting the output.
    select Path, InstanceName, SampleValue 
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled
    Gautam.75801

    Can you try the below query?
    select Path, InstanceName, SampleValue
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < 20 and CounterName like '% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled
    -- replace the below query part in the below SQLCMD C:\>SQLCMD -S SERVERNAME -E -d operationsmanager -Q "select * from sys.databases ds with (nolock) where name='master'" -s "," -o "F:\PowerSQL\MyData.csv" -h -1
    SQLCMD -S SERVERNAME -E -d OperationsManager -Q "select Path, InstanceName, SampleValue
    from PerformanceDataAllView pdv with (NOLOCK)
    inner join PerformanceCounterView pcv on pdv.performancesourceinternalid = pcv.performancesourceinternalid
    inner join BaseManagedEntity bme on pcv.ManagedEntityId = bme.BaseManagedEntityId
    where SampleValue < '20' and CounterName='% Free Space' and TimeSampled > '2014-08-06 11:00:00.00'
    order by countername, timesampled" -s "," -o "c:\MyData.csv" -h -1
    Refer for the other ways 
    http://dba.stackexchange.com/questions/23566/writing-select-result-to-a-csv-file
    --Prashanth

  • Error when executing scenario use command prompt - startscen

    Hi All,
    Anyone know how to solve this error? I get this error message when I execute command prompt: startscen scenarioName version001 contextDevelopment "-v=2"
    The error message is:
    java.lang.NullPointerException
    at com.sunopsis.g.a.f.b(f.java)
    at com.sunopsis.tools.core.SnpsStringTools.a(SnpsStringTools.java)
    at com.sunopsis.dwg.DwgObject.snpsDecypher(DwgObject.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    I use JDK version 1.4.
    Thanks in advance.
    Regards,
    Sumardi

    Hi Sumardi,
    Trying to help you,
    Please cross check the repository configuration information in ODIPARAM.BAT file.
    Thanks,
    G

  • Issues executing report from command prompt

    I'm using Oracle 10g Reports and attempting to execute a report from my workstation to output in a spreadsheet format. We don't have a Reports Server implemented at this time, so I'm simply connecting to the database with Reports Builder and running reports. I can execute a report just fine from Reports Builder and output as PDF; however I'm not familiar with how to output as spreadsheet. From what I understand, spreadsheet output cannot be accomplished through the tool, only from the command prompt. I've tried executing the a command inthe following format from Windows XP command prompt, but no luck:
    rwrun report=test_report.rdf userid=[usernam/pwd@db] desformat=spreadsheet destype=file desname=c:\temp\test_report.xls
    Nothing occurs...no output, nothing when this command is entered. What is the issue? Can rwrun.exe even be used for executing on the client-side? According to Oracle documentation, rwrun is the executable that runs a report using the OracleAS Reports Services.

    Hello,
    Even if the parameter is deprecated, you can use errfile=c:\temp\reports.err and check if there are some errors ..
    or check for a file reports.log
    Regards

  • Problem with executing java on command prompt

    Hi my program uses java mySQL connector to connect to a local host. The program works fine when i run through netbeans. But when i run through command prompt it gives in this error message
    java.lang.ClassNotFoundException:com.mysql.jdbc.Driver Can anyone help me to solve this problem

    add mysql.jar file to ur classpath, it will work fine.

  • Executing java in command prompt

    how can i execute java in cmd and log the result at the same time?
    as i'm hitting problem with the class that i remotely executed and do not know what happen at all :(
    thanks alot!!

    so does it mean .. java runapp > output c:/log >
    error ?? how i get the error message..
    thanks
    java RunApp > C:\log 2> C:\errorView the error file to see the error message.

  • How to execute a scenario from Windows command prompt

    Hi,
    I have a package which is executing fine from Designer. But the same scenario if I am trying to execute from windows command prompt, then it is giving error.
    The package is getting a refresh variable, passing to interface which is creating a file from table, this file is then getting FTP'ed to another server.
    I am executing following command -
    startscen OB_TAB_TO_FILE_PKG 001 ODICTX "-v=2"
    The error is -
    A JDK is required to execute Web Services with OracleDI. You are currently using
    a JRE.
    OracleDI: Starting scenario OB_TAB_TO_FILE_PKG 001 in context ODICTX ...
    java.sql.SQLException: socket creation error
    at org.hsqldb.jdbc.jdbcUtil.sqlException(jdbcUtil.java:67)
    at org.hsqldb.jdbc.jdbcConnection.<init>(jdbcConnection.java:2451)
    at org.hsqldb.jdbcDriver.getConnection(jdbcDriver.java:188)
    at org.hsqldb.jdbcDriver.connect(jdbcDriver.java:166)
    at com.sunopsis.sql.SnpsConnection.u(SnpsConnection.java)
    at com.sunopsis.sql.SnpsConnection.c(SnpsConnection.java)
    at com.sunopsis.sql.i.run(i.java)
    DwgJv.main: Exit. Return code:-1
    Please let me know where I am going anything wrong.
    Thanks,
    Himanshu

    Hi,
    you need to make the necessary changes to the %odi%\bin\odiparams.bat config file, under the "Repository Connection Information" section so that startscen knows how to extract metadata from your repository.
    You apparently have left the default settings to the Hypersonic demo repository. Is that the technology your repository is hosted on?

  • How to install Java to compile Sevlets at command prompt

    Please help me to compile my java servlets at command prompt.
    I have buyed a new leaptop with windows XP service pack 2
    I have downloaded Java EE 5 SDK Update 4 (with JDK 6u5) for Windows, English
    I setted my path and classpath variable for bin and lib folder..
    I could not able to compile my servlet programs
    I am getting errors for all my servlet package classes and servlet.http. packages.........

    Hi Jeff,
    Follow the steps ...
    First you install JDK, it can be 1.2, 1.3, 1.4.
    Lets say you install it in c:\jdk13\ then c:\jdk13 becomes your Java Home Path.
    Edit your autoexec.bat using any editor. And add the Following Lines.
    SET CLASSPATH=C:\JDK13\SRC.JAR;C:\JDK13\LIB\TOOLS.JAR;C:\JDK13\LIB\DT.JAR
    These are the Jar files that need to comile and execute your Java Programs.
    Next add the JDK Binary executables folder in the Windows Path.
    Add this line to the end of your Autoexec.bat
    PATH=%PATH%;C:\JDK13\BIN
    The %PATH% Variable will append the Bin path to the existing path.
    Dont worry about the Case of the statements but dont Leave Spaces after in between after the PATH= Words in any of the above statements.
    Its reccomended to Restart your PC for these commands to take effect.
    Then write a Java Class and compile it with javac yourClass.java and then run it with java yourClass
    Hope this is clear enough.
    Regards ,
    Max

  • Will launch in Eclipse, won't launch from command prompt

    I've got a project that works in Eclipse, but won't run from the command line prompt.
    The command line command that I'm using is this...
    java -cp /users/shared/RainfallSeriesTranslator/bin ui/LauncherThe error I get is this...
    Exception in thread "main" java.lang.ExceptionInInitializerError
    Caused by: java.lang.NullPointerException
         at ui.Launcher.getMethods(Launcher.java:37)
         at ui.Launcher.<clinit>(Launcher.java:15)and the class is this...
    import java.io.File;
    import java.io.FilenameFilter;
    import java.util.ArrayList;
    public class Launcher {
         private final static String name = "RainfallSeriesTranslatorPanel";
         private final static String[] methods = getMethods();
         private final static String fileExt = ".class";
         public static void main(String[] args) {
              new Panel(name, methods);
         public static String[] getMethods() {
              String workingDirectory = System.getProperty("user.dir");
              String fileSeparator = System.getProperty("file.separator");
              String methodDirectory = workingDirectory + fileSeparator + "bin" + fileSeparator + "methods";
              File dir = new File(methodDirectory);
              ArrayList <String> methodsAL = new ArrayList<String>();
              FilenameFilter filter = new FilenameFilter() {
                      public boolean accept(File dir, String name) {
                          return name.endsWith(fileExt);
              String []contents = dir.list(filter);
              for (int i = 0; i < contents.length; i++){
                   methodsAL.add(contents.replace(fileExt, ""));
              return methodsAL.toArray(new String[methodsAL.size()]);
         public String getPanelName() {
              return name;
         public String getFileExtensionName() {
              return fileExt;
    }BTW the purpose of getMethods is to dynamically list out the classes (files) in the directory 'methods', and to load the names into an array which is passed to a JComboBox in the Panel.  My intention is to permit users to select which method to use for the next step of the analysis.  If there's a better way to do it, I'd like to know.
    Having played around with the code, I can get it to run if I 'hardwire' the methodsAL arraylist to ...          methodsAL.add("Some method");...but that defeats the purpose of reading in the classnames dynamically.
    So, the nullpointerexception seems to do with the array 'contents' not getting populated, but I can't figure out why.  As I noted above, it works in Eclipse, so why doesn't it work from the command prompt?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Martin_J wrote:
    Sorry, I had cut out some comment lines at the top.
    Line 37 is the line
    for (int i = 0; i < contents.length; i++){So it looks like the nullpointerexception is generated because the array 'contents' has a null (zero?) length.
    On reflection, is this to do with the working directory? You will note that I have prepended the 'methods' directory with the working directory path. I'm thinking that this would work in Eclipse because the working directory is something, but it does not work when I execute from the command prompt because the working directory is something else.
    If this is the case, then what is the best way to find a directory at a relative location to a class?You get that error because the directory doesn't exist at the given location (the bin folder I guess). dir.list() returns null.
    Kaj

  • Running eclipse java project on command prompt

    Hi all,
    I have one simple java project and that is very well running in eclipse. I have added some external JARs to that project. It performs this job- it creates connection to server, and listens to the signals from server.
    My question is - how do I run that java project on command prompt?*
    I want to run that using ANT or simply I want to make a JAR file so I can execute JAR on command prompt. I created JAR, but it doesn't contain external jar which I added to the project. So I was not able to run that project.
    Can you please tell me any of the method - using ANT or by making JAR?
    Also can you be little bit more explanatory in reply?
    Thanks

    I want to make a JAR file so I can execute JAR on command prompt.This is very likely a good way to proceed. It is explained in great detail in Sun's Tutorial in the section on [Packaging Programs in JAR Files|http://java.sun.com/docs/books/tutorial/deployment/jar/index.html].
    I created JAR, but it doesn't contain external jar which I added to the project. So I was not able to run that project.Yes - the jar file you create has to know about the classes and other resources in that external jar. Otherwise, at runtime, the program will not be able to get at the stuff it needs. Usually you don't include that other jar (or its contents) in the jar file you are creating. Instead you provide your jar file with a manifest that describes the other jar's location. Details are also in the tutorial.
    One thing to note is that Sun's tutorial provides a lot of explanatory, conceptual, material. To that end it keeps the context simple and transparent by describing the steps as they would be carried out by someone working at the command line. The Eclipse documentation and forums might provide a more click-this-drag-that "explanation". If you do follow the method in the Tutorial and get stuck, post a description of the actual commands you used and their outcome.

  • Pass the text file name to the command prompt using servlet

    hi to all,
    I have a HTML page that takes the user inputs. Once the user clicks on the submit button on the HTML page, these values will be capture by a servlet and then store into a text file. A new text file is generated each time the user clicks on the submit button.
    Now, i need to call a command prompt window and then pass the text file name to another program for execution. Any idea how i can pass the text file name to the command prompt???
    Thanx a lot....
    kinki

    hi, thanx 4 ur reply.
    But i not onli want to display the file name on the Tomcat command prompt. I must also able to call up a program to execute the command. If i used System.out.println(); it onli display the value on the console windows. But not executing it... anyway where i can do it???.
    thanx...
    Kinki

  • Error while executing ODI scenario from command prompt

    Hi all,
    I am trying to execute a scenario of a package( that I have created in designer) in OS command prompt in Windows in the following way-
    C:\ODIHOME\oracledi\bin>Startscen DIM_TECHNOLOGY_PACKAGE 001 Global LEVEL5
    However I am getting the following message:-
    OracleDI: Starting scenario DIM_TECHNOLOGY_PACKAGE 001 in context Global ...
    com.sunopsis.core.SnpsInexistantObjectException: SnpScen.getScenarioByCodeAndVer
    sion ; SnpScen does not exist
    at com.sunopsis.dwg.dbobj.SnpScen.getScenarionByCodeAndVersion(SnpScen.j
    ava)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.b(DwgCommandScenario.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenar
    io.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.t(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    com.sunopsis.core.SnpsInexistantObjectException: SnpScen.getScenarioByCodeAndVer
    sion ; SnpScen does not exist
    at com.sunopsis.dwg.dbobj.SnpScen.getScenarionByCodeAndVersion(SnpScen.j
    ava)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.b(DwgCommandScenario.java)
    at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenar
    io.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.t(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    Please tell me what can be the possible reason?
    Thanks in advance
    PB

    Hi PB ,
    Use the following syntax
    C:\ODIHOME\oracledi\bin>startscen DIM_TECHNOLOGY_PACKAGE 001 <CONTEXT_CODE> "-v=5"
    Also make sure that the repository connection details are all correct before running scenario via startscen script
    Thanks,
    Sutirtha
    Edited by: Sutirtha Roy on May 14, 2010 12:18 PM

  • Errors while Executing a scenario thruogh command prompt...Pls help!!

    hi,
    i am trying to execute a scenario in my command prompt.i am using windows operating system.
    i am getting the the following error when i run this command..
    startscen COM_IFLEX_LIMITS 001 GLOBAL "-V=2"OracleDI: Starting scenario COM_IFLEX_LIMITS 001 in context GLOBAL ...
    java.sql.SQLException: ORA-00942: table or view does not exist
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :125)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:316)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:282)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:639)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.
    java:185)
    at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPrepa
    redStatement.java:503)
    at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleState
    ment.java:965)
    at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPre
    paredStatement.java:535)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:1051)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep
    aredStatement.java:2984)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePrepare
    dStatement.java:3026)
    at com.sunopsis.sql.SnpsQuery.executeQuery(SnpsQuery.java)
    at com.sunopsis.dwg.DwgObject.refresh(DwgObject.java)
    at com.sunopsis.dwg.cmd.e.h(e.java)
    at com.sunopsis.dwg.cmd.e.g(e.java)
    at com.sunopsis.dwg.cmd.e.y(e.java)
    at com.sunopsis.dwg.DwgJv.treatCmd(DwgJv.java)
    at com.sunopsis.dwg.DwgJv.main(DwgJv.java)
    at oracle.odi.Agent.main(Agent.java)
    DwgJv.main: Exit. Return code:-1
    Regards
    Ashwin

    So we can understand where the error occurs, can you tell us where the processings gets up to in the log?

  • Test Execution hangs while executing a test from Command prompt option

    I have done the following
    1) Created a script Test driver
    2) Added different scripts as Script->Properties->Assets to the driver script
    3) Call each of this asset script from TestDriver using command getScript("<<ScrptName>>".run(1, true, true, true);
    4) Now calling this TestDriver script from command prompt with command
    e:\\OracleATS\\agent
    runScript.bat E:\\INTEGRATION_SERVICES\\Identity_management\\Automation\\Scripts\\MasterScripts\\TestDriver
    TestDriver.jwg
    The script execution hangs at "Initializing VU 1 for Script TestDriver. After few mintues of seeing this message i get error "Execution Timed Out".
    Do I need to keep openscript UI open for script execution from command line ?
    Is there any way to increase this Execution Time out ? May be it is taking time to load the internal script assets. AS other scripts are running fine on the same machine from command prompt itself.
    Complete error is as follows
    C:\Documents and Settings\oracle>e:\\OracleATS\\agent\\runScript.bat E:\\INTEGRATION_SERVICES\\Identity_management\\Automation\\Scripts\\MasterScripts\\TestDriv
    er\\TestDriver.jwg
    Running "TestDriver" ...
    Agent started. Available commands:
    stop - Stop the virtual user after it finishes the current iteration.
    abort - Abort the virtual user cleanly, before it finishes the current itera
    tion.
    exit - Terminate the process immediately
    You may type the above commands at any time.
    12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.utilities.api.UtilitiesService"
    12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.browser.api.BrowserService"
    12:17:53,418 INFO [1] Initialized script service "oracle.oats.scripting.modules.functionalTest.api.FunctionalTestService"
    12:17:53,465 INFO [1] Initialized script service "oracle.oats.scripting.modules.webdom.api.WebDomService"
    12:17:53,856 INFO [1] Initialized script service "oracle.oats.scripting.modules.datatable.api.DataTableService"
    12:17:53,856 INFO [1] Initializing VU 1 for script TestDriver
    Execution Timed Out.

    Hi e_raja_sekar,
    You wrote:
    public static void main(String args){should be
    public static void main(String args[]){Granted, the below code was tested on Windows XP using J2SE SDK 1.4.1_02 (and not 1.2.2 like Sridhar is using), but when I compiled and executed this code:
    public class BadMain {
      public static void main(String args) {
        System.out.println("Hello World");
    }The output I got was:
    Exception in thread "main" java.lang.NoSuchMethodError: mainSo I don't think this is Sridhar's problem (but I could be wrong) since he says that he gets no error message.
    Cheers,
    Avi.

  • Error to execute the script through command prompt

    I tried to execute the script through command prompt. I got some following error. Could you please advice me how to rectify this.
    cscript D:\JS\Test.js
    Microsoft (R) Windows Script Host Version 5.6
    Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
    D:\JS\Test.js(1, 1) Microsoft JScript runtime error: 'app' is undefined.
    Thanks,
    Prabudass

    I haven't use CS for quite some time and file associations may not work with the command prompt.
    You can try using Windows Explorer to browse to a .js file then right click on that file. From the popup menu choose Open With. Even if you see Photoshop in the file list choose Browse at the bottom. Browse to Photoshop and make sure to check 'Always use selected program...'
    If that doesn't work you will need to create an action that runs your script and make a droplet from that action. You can then use the droplet in the command prompt. You may also need to create a 'dummy' image file to launch the droplet with if you script doesn't require an open document at startup. See http://www.ps-scripts.com/bb/viewtopic.php?t=967

Maybe you are looking for

  • Prior year planned depreciation never posted. How to post in current year?

    Hi Experts, Planned Depreciation was not posted in 2010. Is it possible to post that in 2011? What all steps are required? When I execute AW01N for the asset in question, system gives error "Message # AA669 - Fiscal year 2010 is already closed in Fin

  • Sending photos by email from iPhoto

    Hi when I try to share photos from iphoto by email I can't as I keep getting a message that says: 'The email server didn't recognize your username/password combination.' How can I fix this?  I have had a few issues with this. Many Thanks

  • Photo gallary

    i have an hp photosmart 6510 .i cannot get pictures from windows7 photo gallary to print on photo paper.it only prints on the regular paper.the pics on my cell phone print on the photo paper. This question was solved. View Solution.

  • Opening a file through submit button

    Hi All,   I created a adobe form. When click on this submit, material will be created in backend.(R/3). This functionality is working fine. I need to add one more submit button. when clicking this button one htm document should be opened. ( this htm

  • Forgot password for my Windows 7 OS. It won't let me go sat the Windows 7 login screen.

    I reinstalled Windows 7. It asks for my password (At the login Windows 7 screen). But I don't remember the password. Is there a way to reset my password without knowing my password when Installing Windows 7.