[VB CS5] Doscript to run another vbs file

Is something like this possible? Doesn't seem to work.
myInDesign.DoScript "table.vbs", idScriptLanguage.idVisualBasic, myParameters,
idUndoModes.idFastEntireScript, "Script Action"

Hi Boble5,
You'll need a fully-qualified path name (e.g., "c:\table.vbs") for this to work.
Thanks,
Ole

Similar Messages

  • How do you run another Java file from a master Java file?

    We're making a game in Java at school, and we need to know how we can run a Java file from another one - like inside the master Java file, we need to have a command to run game.java (something like that). Thanks!

    We're making a game in Java at school, and we need to know how we can run a Java file from another one - like inside the master Java file, we need to have a command to run game.java (something like that). Thanks!One doesn't "run a Java file", and there's no conventional definition of "master Java file". If you want to call the main() method of another class, just make sure the class is in your classpath and call the method. If you want to start up a separate JVM with that class as a process, use Runtime.exec() or similar method.
    ~

  • OCT: How do I run a VBS file as part of install?

    The OCT successfully uploads my VBS file to [installlocation]. However, I cannot make it execute.  This is my [post install] syntax:
    [INSTALLLOCATION]“\myscript.vbs”
    Any suggestions?

    I'm getting desperate here.  I have even tried hard-coding file paths and it is still not working. The log file I am trying to create below is blank so that's no help.

  • How i can Open/run VBS file

    Hi ,
    How i can open or run external *.vbs file from director by
    pressing in o button on stage
    i try mostly every things like:-
    - open "XXX.vbs" with "cscript.exe"
    - baOpenFile(XXXXXXXXXXXXXXXXXXXXXXXXXXX)
    - open moviespath (XXXXXXXXXXXXXXXXXXXX)
    no things works could any body can help

    If you can double-click on a file and expect it to open, then
    baOpenFile
    is the best option (assuming you have BuddyAPI installed).
    The syntax is like this:
    baOpenFile(the moviePath&"XXX.vbs","normal", FALSE)
    Check out the BuddyAPI docs for more specifics on that or
    what the
    different parameters mean.
    If you need to specify which program to open the file with,
    then the
    open..with.. command if best. The biggest problem with that
    is that you
    need to include the entire pathnames like this:
    open the moviePath&"XXX.vbs" with
    "c:\myProgram\cscript.exe"
    Change the addresses to whatever is correct for your project.
    If you
    don't know the path to one or both of the programs, then you
    are kind of
    out of luck.

  • Button action - run separate jar file

    My first post here (hopefully many more to be:D) and I have an interesting question which I haven't thought out how to realize it.
    Imagine you run the NetBeans template for a sample GUI application. You add a button, and the action of the button when pressed to be to run another jar file (and maybe pass parameters to it).
    How can I do that? Or is it even possible? I know that it isn't simple as to import the other project and to set the action to "java -jar theotherapp.jar".

    Thanks for the fast reply and for the good suggestion.
    I think I'll try with ProcessBuilder (I used Java till recently only for data structures and similar, so all of these stuff -gui building, making desktop apps, is new to me :D people only have to be pointed into the right direction).

  • Custom shortcut to .vbs script has other .vbs files pinning to it as 'Recent' items (Windows 7)

    Hi guys,
    More of a nuisance this, rather than a major problem, but one I'd like to take care of.
    I have a split Access DB on a network drive, where the BE and a 'master' copy of the FE reside. I have multiple users, so for ease of distribution, I have a .bat file (also on the network) which I can distribute to each user when they want to start
    using the DB. All the .bat file does is copy a shortcut to the users desktop and Start menu. The shortcut points to a .vbs file on the network.
    The .vbs file checks the users local machine, creates some temporary folders if necessary, makes a local copy of the FE and launches it. All nice and neat, with a custom icon on the shortcut so my DB application looks quite professional, and is easy
    to find and launch.
    However - I noticed the other day that, if I open another .vbs file (completely unrelated to my DB), Windows automatically pins it to the 'Recent Items' list on my custom shortcut on the Start menu. Simply because it is another .vbs file. I don't want any
    'Recent Items' to be associated with this shortcut; it should only ever point to my DB and nothing else. I am worried my users will get confused when this random list of scripts grows out of it.
    Is there anything I can do to prevent this happening on the end users' machines? Bear in mind - I don't want to block
    all 'Recent Items' on their Start Menus - just for this one custom shortcut?
    The .bat file (to create the shortcut) is below...
    Thanks
    Al
    echo.
    echo Deleting Old Links...
    del "%UserDrive%\apps\xp\desktop\MyDB.lnk"
    del "%userprofile%\Start Menu\Programs\MyDB.lnk"
    echo.
    echo Creating new link to database...
    echo.
    copy "%NetworkDrive%\Release\MyDB.lnk" "%UserDrive%\apps\xp\desktop\"
    copy "%NetworkDrive%\Release\MyDB.lnk" "%userprofile%\Start Menu\Programs\"

    The Visual Studio forum for VB is for the .Net version.
    For VBS use the scripting guys forum
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Success
    Cor

  • I created a file in Photoshop CS5 (a photo) and another in Illustrator CS5 (a graph) to place in my InDesign CS5 brochure. When the Photoshop and Illustrator files are placed in InDesign, they look blurry - whether viewed in InDesign, printed, or saved as

    I created a file in Photoshop CS5 (a photo) and another in Illustrator CS5 (a graph) to place in my InDesign CS5 brochure. When the Photoshop and Illustrator files are placed in InDesign, they look blurry - whether viewed in InDesign, printed, or saved as a PDF. Can anyone give me some tips on how to fix this? Thanks!

    Ask in the program forums
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says ALL FORUMS) to open the drop down list and scroll

  • Running a Batch File on another Server with an Oracle Job

    hi, i have the following code
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
    job_name => 'test_job_bat',
    job_type => 'EXECUTABLE',
    job_action => '\\10.1.1.63\test\test.bat',
    enabled => true,
    comments => 'test bat'
    END;
    So i want to run a batch file, which lies on another pc in the network
    The code runs, without a failure.
    The bat file just contains "MD D:\bla" .
    When i run the code, no bla directory is created, so it seems that the batch file never ran.
    i approved read/write on the test folder. (Windows 7 machine)
    any ideas?
    Edited by: user1067632 on 31.05.2010 05:03
    in dba_scheduler_job_run_details the job is listed as FAILED:
    ORA-27370: Job-Unterprozess konnte einen Job vom Typ EXECUTABLE nicht starten
    ORA-27300: BS-abhängiger Vorgang accessing execution agent mit Status: 2 nicht erfolgreich
    ORA-27301: BS-Fehlermeldung: Das System kann die angegebene Datei nicht finden.
    ORA-27302: Fehler aufgetreten bei: sjsec 6a
    ORA-27303: Zusätzliche Informationen: Das System kann die angegebene Datei nicht finden.
    Edited by: user1067632 on 31.05.2010 05:16

    ok sorry, i made my testjob run, the OracleJobScheduler was not started.
    But now i ran into an another Problem.
    Now i want to java bla.jar in my batch, and got that new error
    ORA-27369: Job vom Typ EXECUTABLE nicht erfolgreich mit Exit-Code: Unzulässige Funktion.
    STANDARD_ERROR="Unable to access jarfile start.jar"
    anything to consider when accessing .jar files in my batch?
    edit:
    there was a classpath problem.
    Edited by: ginkgo on 01.06.2010 04:29

  • Is it possible to run a jar file in another program???

    Hello members,
    i am sanketh. is it possible to run a jar file in another program.
    if possible plz reply with an example or good links to go thru.

    What do you mean "run a jar file in another program"? It's not very clear.

  • CS5 - Layer links get lost when copying/duplicating to another psd-file

    Hello,
    Following problem when using Photoshop Extended CS5 12.0.4 on OSX 10.6 described as example situation:
    1) You have a psd file with several layers and/or groups.
    2) Let's say 1 layer (N1) is linked to another layer(N2)  in that file and a further layer (N3) is again linked to another layer (L4). That makes 2 linked layers sets. (N1 and N2;  N3 and N4)
    3) When copying those linked layers to another existing file (either by using drag and drop, but also if using the duplicate layer/group menu option), all linked layers get linked together as one link, meaning that your previous SETS of linked layers are gone. (all 4 layers are linked together now as one instead of 2 separate sets of 2 interlinked layers.
    Note: The only way to partially fix it was to duplicate the group  into a new file (using duplicate layer group from menu option as new  file), but i require it to be working for copying content from one  existing file to another existing file, hence this method is not  satisfactory.
    4) Does anyone know how this can be fixed, it looks like a PS bug to me?
    Any suggestions appreciated, many thanks.
    Best regards
    Manuel

    Hi Dave, thanks for your swift reply.
    The sample i have posted is just to explain the priniciple. Usually we work on very complex images with loads of groups and linked content.
    Therefore drag each set of links is not really an option in this case, as it would cost quite a bit of time.
    Our workaround trick at the moment is to mark the linked layers in colours in the layer palette and relink them after they have been duplicated but again this is not ideal. Thank you for your response, much appreciated.
    Manuel

  • Unable to run iTunes based VBS files

    I'm guessing this is something to do with Vista because it works fine on my laptop, but basically I'm trying to run a VBS script which clears out duplicates from iTunes. The VBS file runs fine on my laptop which is running XP, but doesn't run on my desktop running Vista x64 Ultimate (only doing so because it exceeds the max spec for XP Pro).
    When I try and run the script I get the following:
    C:\Users\Enverex\Desktop>cscript RemoveDup_iTunesTracks.vbs
    Microsoft (R) Windows Script Host Version 5.7
    Copyright (C) Microsoft Corporation. All rights reserved.
    C:\Users\Enverex\Desktop\RemoveDup_iTunesTracks.vbs(32, 1) Microsoft VBScript
    runtime error: ActiveX component can't create object: 'iTunes.Application'
    (this forums lack of a "code" paste option is wrecking the output a little but you should get the idea).
    I've tried reinstalling iTunes and I've tried installing the x86 version of iTunes, no change. It does this for any iTunes VBS script, not just this one (and as I said they work fine on my laptop). Tried using iTunes 7 instead which also had no effect. The "register the vbs dll file" also has no effect (also that's only a fix for the issue of iTunes not installing in the first place). User is admin and can do anything else on the machine, it's just VBS files for iTunes that don't work.
    So any ideas? I really need to be able to sort this out because I can't sync my iPod till It's done :/

    Tried the registering thing ages ago, it claims to have registered fine but no change.
    I tried the scripts on that site but only the VBS ones (as it's VBS I'm having an issue with). I just tried his EXE version, ran the program and it gave me a list of all his scripts, I tried 2 different ones, they opened a command prompt window (with nothing written in them) and then disappeared after about 2 seconds silently.
    I assume I have VBS installed, I thought it was a prerequisite to install iTunes but I'm not sure what else to try, as you mentioned it only seems to be for 2k, XP and 2k3.

  • How to compile and run a .java file from another java program

    hello,
    can any one tell me how to compile and run a *.java* file from another java program which is not in same directory?

    Well a smarter way of implementing this is by using a solution provided by Java Itself.
    If you are using J2SE 6.0+ there is an in built solution provided along with JDK itself and inorder to go ahead with solution the below are set of API which you;d be using it for compiling Java Programs (Files)
    http://java.sun.com/javase/6/docs/api/javax/tools/package-summary.html
    How do i do that ??
    Check out the below articles which would help you of how to do that
    http://www.ibm.com/developerworks/java/library/j-jcomp/index.html
    http://www.javabeat.net/javabeat/java6/articles/java_6_0_compiler_api_1.php
    http://books.google.com/books?id=WVbpv8SQpkEC&pg=PA155&lpg=PA155&dq=%22javax+tools%22+compiling+java+file&source=web&ots=XOt0siYe-f&sig=HH27ovuwvJgklIf8omTykUmy-eM
    Now once we are done with compilation.In order to run a Specific class all you ought to do is create an object and its specific methods of a specified class included in the CLASSPATH which you can manage it easily by usage little bit reflections.
    Hope that might help :)
    REGARDS,
    RaHuL

  • How Can I run a .vbs (Visual Basic Script) file on Linux?

    Hello, I have a doubt:
    How Can I execute on Linux a .vbs file? I can't use wine cause it is not a .exe file.
    Is there any way?
    Greetings

    Mikko777 wrote:http://www.cyberciti.biz/tips/visual-ba … linux.html learn to use google
    Google works, yes ... if you know what you are searching for. Try this search: VisualBasic is not VBScript.
    Here is what you will need (consult an attorney first):
    - Wine
    - Windows Scripting Host (WSH) 5.6* (available officially from MS website, but requires validation):
    http://www.microsoft.com/downloads/deta … laylang=en
    * There is an update to 5.7 also available form MS
    - You will also need (from your Windows installation):
    mfc42.dll
    - Once you have the files placed in your Wine '/system32' folder (via installer or extraction), you will need to register dll files. At minimum, I think you can get by with:
    wine regsvr32 /path/to/vbscript.dll
    wine regsvr32 /path/to/wshext.dll
    Others may be required ... if you get more messages alerting you to register files, just repeat for each one necessary. Or register them all and be done with it.
    Once you have WSH setup, you can launch the VBScript file by opening 'winefile' and double clicking on the script. From the command line, you will need to launch it with 'wscript':
    wine wscript "Z:\\home\\user\\.wine\\dosdevices\\c:\\Program Files\\test.vbs"
    If you attempt to launch the VBScript with just:
    wine "Z:\\home\\user\\.wine\\dosdevices\\c:\\Program Files\\test.vbs"
    you will get a message about 'BAD EXE Format' or similar.
    Last edited by MrWeatherbee (2007-11-09 15:03:36)

  • How to execute LiteTouch.vbs file remotely?

    Hi,
    I am developing a VB script which executes another VB script (LiteTouch.vbs) from MDT Deployment Share
    remotely. But I am not able to trigger it (triggering has no effect). On the other hand if I use the script to trigger some other script say for copy a file to some directory, it works perfectly. Could someone please help me in solving or atleast
    figuring out the issue?
    Client machine name: CLIENT4 and server machine name: SERVER
    The scripts are as follows:
    Script1 - Call.vbs
    strComputer = "CLIENT4"
    strCommand = "cscript.exe
    \\SERVER\Deployment$\Scripts\LiteTouch.vbs"
    Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set objProcess = objWMIService.Get("Win32_Process")
    errReturn = objProcess.Create(strCommand, null, null, intProcessID)
    When I run Call.vbs, it has no effect. The runtime engine cscript is also not initialized in the taskmanager. But when I replace the second line as 'strCommand = "cscript.exe
    \\SERVER\C$\abc.vbs"' (abc.vbs say for example copies a file from one location to other) and run the Call.vbs it is executed successfully.
    I have also taken care that the Deployment$ folder is accesible from the client machine CLIENT4. Again, I have also tried to map the entire Deployment$ folder on the CLIENT4 machine and execute LiteTouch.vbs, it still has not effect.
    Any help on the same would be greatly appreciated.
    Many thanks.
    Regards, Sagar Palande

    When I developed a similar program a few years ago I used the information in this kb article:
    http://support.microsoft.com/default.aspx?scid=kb;en-us;827227
    Based on this article I decided to copy the executable from my computer to the root of C: on the remote computer (where the executable is to be run) using a mapped drive. Then I connected to the remote computer with WMI and used the Win32_Process
    class to execute program. If the program was Test.bat, then the command was "c:\\Test.bat". Finally, I deleted the executable from the remote computer.
    Your problem might be that "\" should be replaced by "\\" in the command you execute. Or, it might be necessary to copy the VBScript to the remote computer. The program I developed is linked here:
    http://www.rlmueller.net/PatchInstall.htm
    Richard Mueller
    MVP ADSI

  • Running a Bat file from a stored procedure

    This is part II of Re: Need to run bat file from application express
    I thought I would open a new thread
    I thought I had this fiqured out but it still doesn't work
    1) I granted CREATE EXTERNAL JOB to my user
    2) startup the OracleJobScheduler Service
    3)
    create or replace
    PROCEDURE RUN_OS_COMMAND(p_cmd IN varchar2)
    is
    v_job_exists pls_integer:=0;
    begin
      select count(1)
      into  v_job_exists
      from  all_scheduler_jobs
      where job_name='JAVA_EXE';
      if v_job_exists>0 then 
        dbms_scheduler.drop_job(job_name =>'JAVA_EXE');
      end if;
      dbms_scheduler.create_job
      (   job_name          =>'JAVA_EXE'
        , job_action        =>p_cmd
        , job_type          =>'executable'
        , enabled           =>false
        , auto_drop         =>false
        , start_date        =>systimestamp
      dbms_scheduler.run_job(job_name =>'JAVA_EXE');
    end;test.bat is del test.csv
    I run this
    begin
      RUN_OS_COMMAND('C:\temp\test.bat');
    end;
    / anonymous block completed
    It runs with no errors but does not run the bat file... what am i missing, thanks Doug

    LLUSERSPROFILE=C:\Documents and Settings\All Users
    APPDATA=C:\Documents and Settings\wblincoe\Application Data
    CLASSPATH=.;[ORACLE_HOME]\jdbc\lib\ojdbc6.jar;c:\myjar\xdocore.jar;c:\myjar\i18nAPI_v3.jar;c:\myjar\xdoparser.jar;c:\myjar\xmlparserv2.jar
    CommonProgramFiles=C:\Program Files\Common Files
    COMPUTERNAME=WBLINCOELT
    ComSpec=C:\WINDOWS\system32\cmd.exe
    DEFLOGDIR=C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Documents and Settings\wblincoe
    LDMS_LOCAL_DIR=C:\Program Files\LANDesk\LDClient\Data
    LOGONSERVER=\\03N-DAYT-DC01
    NUMBER_OF_PROCESSORS=2
    OS=Windows_NT
    Path=C:\OraHome_1\jre\1.4.2\bin\client;C:\OraHome_1\jre\1.4.2\bin;C:\app\wblincoe\product\11.1.0\db_1\bin
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    PERL5LIB=C:\oracle\product\10.2.0\http_1\sysman\admin\scripts;C:\oracle\product\10.2.0\http_1\perl\site\5.6.1\lib;C:\oracle\product\10.2.0\http_1\perl\site\5.6.1;C:\oracle\product\10.2.0\http_1\perl\5.6.1\lib\MSWin32-x86;C:\oracle\product\10.2.0\http_1\perl\lib\5.6.1;C:\oracle\product\10.2.0\http_1\perl\lib\5.6.1\MSWin32-x86;
    PHPRC=C:\Program Files\PHP\
    PROCESSOR_ARCHITECTURE=x86
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 2, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=0f02
    ProgramFiles=C:\Program Files
    PROMPT=$P$G
    SESSIONNAME=Console
    SystemDrive=C:
    SystemRoot=C:\WINDOWS
    TEMP=C:\DOCUME~1\wblincoe\LOCALS~1\Temp
    TMP=C:\DOCUME~1\wblincoe\LOCALS~1\Temp
    USERDNSDOMAIN=CACI.COM
    USERDOMAIN=CACI
    USERNAME=wblincoe
    USERPROFILE=C:\Documents and Settings\wblincoe
    VSEDEFLOGDIR=C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection
    windir=C:\WINDOWS

Maybe you are looking for

  • Macbook pro freezes for no reason even after installing 10.8 on a brand new hard drive

    Macbook pro freezes for no reason even after installing 10.8 on a brand new hard drive. Tried to reset pram, smc, nvram. Tried installing new RAM. Tried installing new hard drive. You should know that my internal drive is installed in a cheap externa

  • Lumia 620 - screen doesnt respond after update

    I updated my phone today, but now the screen doesnt work anymore. I cannot put the lockscreen up (to get into the main screen), or shut it off (by sliding it down), its just NOT RESPONDING at all. Also I see that in the lock screen in the left upper

  • IDE's for Java

    I'm fairly new to Java. Ive programmed quite a bit in the past (Pascal, C and C#.NET) - Im at university and I would like to know if there are any free good IDE's. I'd like one with some Debugging tools if possible. I'm currently using Textpad, as it

  • Which Camera Raw functions are in Photoshop Elements?

    At times I'll suggest something to do in ACR in conversations with other photographers.  Sometimes I get a response that they can't find what I referred to in ACR.  Usually turns out they are using Elements (PSE), which has a subset of ACR function. 

  • GR output quantity for different material types using 101 mvt

    Hi All Is it possible to have separate GR slip quantities for the same movement type (101) but for different stock types. I would like 3 GR slips for mvt type 101 for directly procured materials AND I would like 1 GR slip for mvt type 101 for stock m