Single instance cmd prompt for multiple wshshell.run

Hi,
I need to have only one command prompt open for two wshshell. run command
for eg
wshShell.Run "cmd.exe /C cd D:\"wshShell.Run "cmd.exe /C cd C:\"both the command should display in single command prompt window
Need to execute some 100 commands in a single cmd prompt like this


The CD commands were obviously just example commands
not the commands you really want to run. Even if these
commands were able to successfully change the current
directory in some other context than the command prompt
window, that context could only entertain one current
directory at any given time.
If you want to run a sequence of commands synchronously
(one after the other) in the command prompt window, you
could do as Forest suggested for a short sequence:
wshShell.Run "cmd.exe /c cd D:\ & dir & cd E:\ & dir"
or you could put the commands in a batch file:
wshShell.Run "cmd.exe /c mybatch.cmd"
or just:
wshShell.Run "mybatch.cmd"
You would, of course, need to ensure that the location
of the batch file was properly specified or deduceable.
If you want to run a sequence of commands asynchronously
(all at the same time), well, that is not how the command
prompt window itself works. You would need to launch
separate processes, each doing whatever task is assigned
it. If these are batch files, each will run in its own
command prompt window; if these are vsbcript files, you
could run them with wscript.
Or, if you were to switch to powershell, you could run
them as separate powershell jobs.
Al Dunbar -- remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

Similar Messages

  • Single Trip number range for multiple personal areas

    Hi,
    Can any expert suggest me whether can we use single trip number range for multiple personal areas.
    Thanks
    Srinivas

    Dear Srinivas,
    This can be done. Please follow the below logic.
    Create a new implementation (enhancement) in BADI  =TRIP_WEB_NUMBER
    Method = USER_EXIT_NUMBER_INTERNAL
    with the below codes.
    DATA:        LV_ZZTRIPTYPE TYPE PTRV_HEAD-ZZTRIPTYPE,
                         LV_CCLAND TYPE BUKRS,
                         LV_LAND TYPE T001-LAND1.
    Fetch the company code from the data inputed.
          SELECT SINGLE LAND1
           FROM     T001
           INTO     LV_CCLAND
           WHERE    BUKRS = ORGANIZATIONAL_ASSIGNMENT-BUKRS.
    IMPORT TRIP_HEADER-ZZTRIPTYPE  TO  LV_ZZTRIPTYPE FROM MEMORY ID 'ABC'.
      CASE ORGANIZATIONAL_ASSIGNMENT-BUKRS+0(2).
             CONCATENATE ORGANIZATIONAL_ASSIGNMENT-BUKRS+0(2) '01' INTO NUMBER_SUBOBJECT .
      ENDCASE.
    NUMBER_RANGE = 'Pass the number range'.
    This is an example on how this will work. Please modify accordingly for your company.
    Edited by: Rajagopalan Kannan on Jun 6, 2011 3:08 PM
    Edited by: Rajagopalan Kannan on Jun 6, 2011 3:11 PM

  • How to generate site wise report for multiple sites running on single MDEX

    Hi all,
    I have single instance of MDEX 6.2 and Exprience Manager.
    I have created some pages in workbench and set the specific trigger for all pages.
    These pages are called from 2 different sites I have differentiated these 2 site by user profile. All is working fine for me.
    But, Now I want to show the reports, right now the reports are displaying with combination of both sites result.
    Is there anyway which I can display reports with site wise.
    Thanks in advance,
    Sunil N.

    Hi Sunil,
    You need to customize the reporting. You can log site specific parameter [for example site=abc/xyz] and then update the reporting to read and display reports site-wise.
    Thanks
    MS

  • Single prompt for multiple reports in a webi doc

    I have a webi document with three reports; each three has it's own query.
    I want to apply a date prompt one each report; how do I create a prompt that could accept date value only once and apply on all three queries.
    I tried to put the date prompt on each query separately and it prompts for all three; means I have to enter same date value three times.
    Please advise.
    Thanks

    Hi Ahmed,
    BO differentiate prompts on the basis of its definition.
    You must use the same prompt definition in all the three queries to display it once while asking for the user response:
    @Prompt('Text','A'\'D',{'Class\LOV Object'},mono\multi,free\constrained)
    P.S.  you need to drag it separately in the 3 queries.
    Regards,
    Rohit

  • One instance of FCKeditor for multiple fields in a page

    How to implement only one instance of FCKeditor (one set of buttons) for multiple textareas in a page?

    Hello,
    Is that possible with the normal FCK Editor?
    I've never seen something like that on any website, but if you find such an example, I can have a look how it's done. If you see it somewhere working, we should be able to make it work in APEX as well.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://www.apex-evangelists.com/
    -- http://www.apexblogs.info/

  • CREATING A SINGLE INSTANCE PHYSICAL STANDBY FOR A RAC PRIMARY

    Hi
    Creating a single instance physical standby database for a RAC Primary.
    Getting this error.
    sql statement: alter database mount standby database
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 01/17/2008 23:05:38
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-03009: failure of sql command on clone_default channel at 01/17/2008 23:05:38
    RMAN-11003: failure during parse/execution of SQL statement: alter database mount standby database
    ORA-01103: database name 'PROD' in control file is not 'DPROD'
    Any help on this.
    Regards
    Satish

    The problem here is probably with your standby init.ora file.
    When you create a standby database, the db_name parameter must NOT change. It has to match the primary database. So in your case, db_name ='PROD' and your db_unique_name='DPROD'...
    -peter

  • Single-instance manual standby for a three-node RAC database

    Hi all,
    I am wondering how it is possible to create a manual standby database for a rac primary database.
    Oracle versione is standard edition 11.1.
    I have experience creating and managing manual standby for single-instance database; I am wondering if and how I can instruct the single-instance standby database to discover and apply the three redo threads that I will copy from the primary site to the standby site.
    Should I use rman to catalog all the archived log on the standby site ?
    Should I configure many LOG_ARCHIVE_DEST_n parameters to point to many different path, one for each primary instance (i.e. one for each redo thread), and let rman automagically discover all the archived logs ?
    Should I configure only LOG_ARCHIVE_DEST_1 , put archivelogs from all threads in the same folder, and let rman automagically discover all the archived logs ?
    Thanks for every answer!
    Andrea

    Hi,
    indeed i catalog all transfered archive logs in front of the recover process.
    During the tests i believe (iirc) i was unable to recover from transfered archivelogs without catalog them first. But this statement is out of my mind, i am not 100% sure for this, sorry.
    Some more details.
    Because it is a standard edition, i have to use on the RAC side ASM. So our normal scripts to transfer archivelogs from primary to standby are obsolete.
    So i decided to put the whole standby thing into the database. Now the primary database uses external scheduler jobs to do the work. The standby side is not using ASM, so there is no need to handle the logs in any special way.
    The steps are:
    1. Get SCN from primary and standby
    2. Transfer the logs for the gap from ASM to "normal" filesystem.
    3. Transfer (and compress, if not in LAN) to standby archive dest
    4. Catalog on standby side
    5. Recover on standby side
    6. Delete on normal filesystem (on both sides, but on standby with a delay of 2 days just to be sure)
    The steps on the standby side are both using the primary scn from step 1 as a parameter to avoid error messages during the catalog or recover call.
    Hth
    Joerg

  • Prompted for credentials when running the Recovery Audit Report on MBAM Help Desk web portal

    I am prompted for my credentials when I try to run the Recovery Audit Report on MBAM Help Desk web portal.  I am a member of the MBAM Read Only Reports group which I specified during the web portal configuration wizard.  I would like to suppress
    the prompt for credentials.

    Add the URL to the Local Intranet sites did not work.  The Help desk  web portal is on port 8088 and it does not allow you to specify the port when you add the URL to the Local Intranet sites.  I am able to access the Reports page from the
    Help Desk web portal when I open a browser on the IIS server, but the Reports page does not open without a prompt when I open a browser on a client.  Strange.

  • How to Prompt for User/Pass Running Shell Script Remotely through ARD

    So I finally got my Active Directory Script working! However, I realized that I'm not the only one going to be running this script and to have my user name and password in the script itself is beyond foolish. While I know it's possible just to have whoever's running the script to manually add their username and password, I'd prefer to have prompts to make things easier for the rest of my team.
    Here's my current script. I've tested it on the machine I'm connecting to Active Directory and it works fine if you run it on the machine itself in terminal. However, I'm going to be doing this on about 150 machines and the whole point of the script is to do it remotely.
    #! /bin/bash
    MACNAME=$(scutil --get ComputerName)
    read -p "User Name: " USER
    read -p "Password for $USER: " PASS
    dsconfigad -add "CORP.DOMAIN.NET" \
    -username $USER \
    -password $PASS \
    -computer $MACNAME \
    -mobile disable \
    -mobileconfirm disable \
    -localhome enable \
    -useuncpath enable \
    -shell /bin/bash \
    -ou OU=Macs,CN=Computers,DC=corp,DC=DOMAIN,DC=net \
    -force \
    -localpassword "PASSWORD" \
    -groups "GROUPS"
    When I run the UNIX script through ARD to a machine, I get no prompts for USER or PASS. In fact, it gives me the following error "dsconfigad: Authentication server encountered an error while attempting the requested operation. (5202)" So it's not asking for a user name and password.
    Is there any way to make a shell script prompt you for a User Name and Password when you're sending commands remotely through ARD? Or is there another way to do this?
    Any suggestions would be greatly appreciated.
    -rks

    Best solution is to create an account that is exclusive to binding machines.  By doing this, you can embed the user name and password in the script.  Heck, you can post it on your website.  If the account is configured properly, it will only be able to create machine records in a defined container.  If you are mixing Macs and PCs in your AD domain, I also recommend creating an isolated container for your Mac records.  Now, the account has even less access rights as you can make it so it only has rights to the Mac container.
    Otherwise, ARD does not prompt.  You can play around with an expect script but the reality is that you are still embedding the credentials in the script so it really does not achieve what you want.  ARD is not an interactive shell scripting tool.  It is more a fire and forget.
    Reid
    Apple Consultants Network
    Apple Professional Services
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

  • Help Setup KMS on single domain and active for multiple domain another

    Hi all,
    I have a problem about configure DNS for KMS host. My company use a single domain "abc.com". But I must mange more than 10 company different and they use another domain and dns running independently, they have a one lease line connect them together.
    My challenge is how to active all client on more than 10 company. Any ideas is very appreciate.
    Please help.
    Thanks,

    That's a good article suggested by Meinolf, but it's a little outdated.
    For an updated guide for this:
    https://technet.microsoft.com/en-us/library/ff793409.aspx
    Publishing to Multiple DNS Domains
    By default, the KMS host is registered only in the DNS domain to which the host belongs. If the network environment has only one DNS domain, no further action is required.
    If there is more than one DNS domain name, you can create a list of DNS domains for a KMS host to use when publishing its SRV RR. Setting this registry value suspends the KMS host’s default behavior of publishing only in the domain specified as the Primary
    DNS Suffix.
    Optionally, add priority and weight parameters to the
    DnsDomainPublishList registry value for KMS. This feature enables you to establish KMS host priority groupings and weighting within each group to define which KMS host to try first and balance traffic among multiple KMS hosts.
    Note   DNS changes might not be reflected until all DNS servers have been replicated. Changes made too frequently (time < replication time) can leave older records if the change is performed on a server that has not been
    replicated.
    To automatically publish KMS in multiple DNS domains, add each DNS domain suffix to whichever KMS should publish to the multi-string registry value
    DnsDomainPublishList in registry subkey HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform. After changing the value , restart the Software Licensing Service to create the SRV RRs.
    Note   This key has changed from the Windows Vista location of
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SL.
    After configuring a KMS host to publish to multiple domains, export the registry subkey, and then import it in to the registry on additional KMS hosts. To verify that this procedure was successful, check the Application event log on each KMS host. Event
    ID 12294 indicates that the KMS host successfully created the SRV RRs. Event ID 12293 indicates that the attempt to create the SRV RRs was unsuccessful. For a complete list of error codes, see the
    Volume Activation 2.0 Operations Guide at
    http://technet.microsoft.com/en-us/library/cc303695.aspx.
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • Enhancing standard (single select)search help for Multiple value selection

    Hi,
    Standard search help for Business Partner (in cProjects) allows only single value selection for input fields. I want to make this multiple selection.
    Is there a way to do it.
    I used an OVS and built a similar search but its difficult to get the standard options like saving to personal value list etc in it.
    It would be good if there is a way to modify the standard search help to allow multiple selection. Any ideas??
    Appreciate your help,
    Thanks,
    Sri
    Edited by: Sri on Sep 9, 2010 8:50 PM
    Edited by: Sri on Sep 9, 2010 8:52 PM

    As far as I know you can't make a standard ABAP dictionary search help return multiple entries - where you get this sort of functionality the searches don't use the standard Elementary search help framework (e.g. organisational structure searches)
    Given that the WDA search help relies on these dictionary based searches, I'd think very much that you couldn't enhance it to return multiple. how you could even return multiple entries into a single UI element input field is also confusing to me.
    I'd suggest creating a freely programmed value help, it would certainly take quite some effort to recreate those personal value lists etc, but it could be done - I don't like OVS, but that just me.

  • How do I use domain guessing for single word but search for multiple?

    I would like to configure the search bar to make smart decisions about weather it should fill in an address or search for results. At the very least I would like it to be able to search when multiple words are entered but fill in the address when it's only one word (eg: typing "zelda" would take me to www.zelda.com but "the legend of zelda" would use search)

    The answer that you are probably looking for is what Google calls the '''I'm Feeling Lucky''' Search. Not quite what you describe but if there is one result that stands out as the most common result, you will get taken directly to the page. (Wouldn't work for me, I seldom find what I looking for in the first five hits.)
    This will involve a change to your '''about:config''' configuration variables.
    '''keyword.URL ''' default string
    http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=
    The '''&gfns=1''' is what gets you the I'm Feeling lucky search.
    References:
    * http://dmcritchie.mvps.org/firefox/search.htm
    * [http://kb.mozillazine.org/About:config About:config - MozillaZine Knowledge Base]
    * [http://kb.mozillazine.org/About:config_entries About:config entries - MozillaZine Knowledge Base]
    <hr>Personally I prevent all (external) searching from the location bar to prevent errors from being redirected to a substitute page (along with additional filtering via the '''Adblock Plus''' extension).
    For '''zelda''', I would type in the word and then use '''Ctrl+Enter''' so that it becomes www.zelda.com (with "Ctrl+Shift+Enter" gets .org, and with "Shift+Enter" gets .net).
    For more information on '''keyboard shortcuts''' and the fact that those two shortcuts above can be [http://www.mvps.org/dmcritchie/firefox/keyboard.htm#newtab switched] see
    * Firefox and other Browser Keyboard Shortcuts (Comparison Table)<br>http://www.mvps.org/dmcritchie/firefox/keyboard.htm
    The '''AwesomeBar''' search is what you get in the location bar drop-down when you enter strings of characters that exist in the Title and/or url address of a previously visited site or one that you have in your bookmarks. You see those choices '''before''' you press "Enter".
    Once you press "Enter" by default you would do a search with your currently selected (default) search engine, as if you had entered the search into the search bar.
    I don't like the last method and would use a ''keyword shortcut'' to use a customized search or to go directly to a web page. But without knowledge of what is available using the Location bar to run an external search works okay for most people.
    <hr>
    The "weather" threw me because for weather you really do want a keyword shortcut, the word you meant was whether.
    More information on [http://dmcritchie.mvps.org/firefox/kws.htm keyword shortcuts].
    * http://dmcritchie.mvps.org/firefox/kws.htm

  • Exchange 2013 Hybrid with O365 - migrated user causes admin restart prompt for multiple other users

    Greetings!  We are in the process of doing some testing and migration in a hybrid deployment with Office365 and Exchange on premise.
    I just completed a migration for an on-premise user.  We have, so far, migrated 3 users in the IT department as initial testing.  The first two migrations were very cut and dry.  The third migration; as soon as I finalized the batch, multiple
    people on our team received messages about having to restart Outlook.  These were users that had not been migrated and were not part of any migration batch, but were members of the same department.  I am trying to understand, under what circumstance
    could a migration of a user cause other users who are still on premise to receive the "admin made changes" prompt in Outlook.
    Thanks in advance.

    Hi Joe,
    Could you share the migration batch? Note, please hide if there are any sensitive information like domain name and server name.
    Thanks,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Simon Wu
    TechNet Community Support

  • Using one prompt for multiple fields in a report

    We are using Oracle CRM on Demand, Release 16.
    I have a report I am building that involves four different date fields. I'd like to give the user the ability to enter a date range for the date fields via a Prompt when the report executes. But the date range would be the same for all four date fields. Is there a way to capture the date range in one prompt, but use that same range in all four date fields in the report?

    I recommend to use two dashboard prompts, one for each date field of your range and each will set a presentation variable.
    Then use the FILTER metric function and reference the presentation variable.
    Best Regards,
    Christian

  • Using a single master data infoobject for multiple fields

    Hello experts. Today I ran un with the following problem: I am modelling an Infocube and will be receiving a flat file with several fields, of which 3 of them give information about sales representatives.
    For each transaction there are 1-3 sales representatives involved, and this is reflected in the file I am going to be loading. If only one representative is involved, it means that he was in charge of a complete negotiation, and his code will be found in all three fields, if two representatives are involved, it means that one was in charge of one part of the negotiation, while the other was in charge of the rest, and according to what they were in charge, their code will appear in one or two of the fields. If three representatives are involved, each one's code will appear on the field corresponding to the part of the negotiation they were in charge of handling.
    I already have the sales representative's codes as master data, but I was wondering how I can have those three fields map into the same InfoObject, if that is possible at all. Maybe in the transformation I map them to the same object? Also, what happens when you create the Data Source? As far as I know, each field in the Data Source must be unique, which makes it impossible to use my ZSALESREP InfoObject for the three fields, at least at Data Source level. What can I do in this case?

    Hi  Pedro Olvera,
    You need 3 infoobjects in datasouce to load 3 different fields.
    If you want load to a single infoobject, you can map accordingly in transformation, bult last field overwrites previous one.
    Its better to maintain 3 fields in cube. Create 2 more sales Reps(ZSALESREP1 & ZSALESREP2) with Reference to ZSALESREP then you no need to maintain master data for ZSALESREP1 & ZSALESREP2.
    Use these 3 fields for modeling.
    Hope it Helps
    Srini
    [Dont forget to close the call by assigning poings.... - Food for Points: Make a Difference through Community Contribution!|https://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/007928c5-c4ef-2a10-d9a3-8109ae621a82]

Maybe you are looking for