How to merge 2 vbscript program into 1
1st program code:
Dim objShell
Set objShell = WScript.CreateObject("WSCript.shell")
objShell.run """C:\Program Files\Altiris\Altiris Agent\aexnsagent.exe"" /uninstall /qn"
2nd program code:
strFolderName = "C:\Program Files\Altiris"
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FolderExists(strFolderName) Then
fso.DeleteFolder strFolderName
End If
prakash
since they share no variable names, you can simply put one after the other.
I think your question actually is: how to wait for the first part to complete.
https://msdn.microsoft.com/en-us/library/d5fk67ky(v=vs.84).aspx
Set objShell = WScript.CreateObject("WSCript.shell")
objShell.run """C:\Program Files\Altiris\Altiris Agent\aexnsagent.exe"" /uninstall /qn",,true
strFolderName = "C:\Program Files\Altiris"
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FolderExists(strFolderName) Then
fso.DeleteFolder strFolderName
End If
note I left out the dim statement. Dim declares a variable, but in vbscript, variables are declared automaticly when first used. For simple scripts that's enough.
(For more complex scritps, use DIM for all your variables and enforce that using 'option explicit')
https://msdn.microsoft.com/en-us/library/t7zd6etz(v=vs.84).aspx
MCP/MCSA/MCTS/MCITP
Similar Messages
-
How to merge another doc into pages
does anyone know how to merge or add another document in pages into another research documents in Pages?
You can insert sections from one Pages document into another. Open your files & show thumbnails. Sections have a yellow border around all of the pages in that section. Now click on the page in the thumbnail pane & copy. If the file is more than one page & you only want one, you'll need to insert a section break to separate the pages. Then go to your other file, click in the thumbnail pane & paste. If you want to insert the other content into the middle of a section in the receiving document, you will need to insert section breaks at the point you want to insert. The whole copied page will be pasted in. Repeat with another section. Styles will copy over with the sections but headers & footers will not.
-
How to merge one library into another library?
In iPhoto 9.6, is it possible to merge one library into another library? Or otherwise, import individual pictures, from one library into the other library? All of this happening on the same computer.I understand that this feature was covered by Aperture but that this is no longer supported under Yasemite?
No
The current version of Aperture can merge libraries (I have no idea where you got the incorrect information that it can not)
The paid version of iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ - can
Those are you only two choices
LN -
How to set a program into backgroud job
hi experts,i want to set a program into backgroud job.
the original code like this:
...some statements...
PERFORM FRM_SEND_MAIL USING WA_YA_LX.
...some statements...
i want to set 'PERFORM FRM_SEND_MAIL USING WA_YA_LX.' into background job.
is that code like this?
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = WA_TBTCJOB-JOBNAME
JOBCLASS = 'A'
IMPORTING
JOBCOUNT = WA_TBTCJOB-JOBCOUNT.
PERFORM FRM_SEND_MAIL USING WA_YA_LX.
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = WA_TBTCJOB-JOBCOUNT
JOBNAME = WA_TBTCJOB-JOBNAME
SDLSTRTDT = SY-DATUM
SDLSTRTTM = WA_TBTCJOB-SDLSTRTTM .
hunger for you advice,thanks a lot.See the following simple prog to schedule in background.
You cannot schedule the subroutine i.e perform to run in background job. Instead write the subroutine in another program.
to pass any value to that program, declare selection screen parameter and pass the value from the first one using submit.
Job open
call function 'JOB_OPEN'
exporting
delanfrep = ' '
jobgroup = ' '
jobname = jobname
*sdlstrtdt = sy-datum
*sdlstrttm = sy-uzeit
importing
jobcount = jobcount
exceptions
cant_create_job = 01
invalid_job_data = 02
jobname_missing = 03.
if sy-subrc ne 0.
write:/ 'error in opening a job'.
endif.
Insert process into job
SUBMIT ZSDQ_BCK_TEST
and return
with p_type = 'F' "Selection screen Parameter
user sy-uname
via job jobname
number jobcount.
if sy-subrc > 0.
WRITE:/ 'ERROR PROCESSING JOB'.
endif.
Close job
call function 'JOB_CLOSE'
exporting
*event_id = starttime-eventid
*event_param = starttime-eventparm
*event_periodic = starttime-periodic
jobcount = jobcount
jobname = jobname
*laststrtdt = starttime-laststrtdt
*laststrttm = starttime-laststrttm
*prddays = 1
*prdhours = 0
*prdmins = 0
*prdmonths = 0
*prdweeks = 0
*sdlstrtdt = sdlstrtdt
*sdlstrttm = sdlstrttm
strtimmed = 'X'
*targetsystem = host
RECIPIENT_OBJ = RECIPIENT_OBJ
exceptions
cant_start_immediate = 01
invalid_startdate = 02
jobname_missing = 03
job_close_failed = 04
job_nosteps = 05
job_notex = 06
lock_failed = 07
others = 99.
***This is the second program which will run in background
REPORT ZSDQ_BCK_TEST .
TYPES: BEGIN OF TY_ADRC,
HOUSE_NUM1 LIKE ADRC-HOUSE_NUM1,
NAME3 LIKE ADRC-NAME3,
NAME4 LIKE ADRC-NAME4,
LOCATION LIKE ADRC-LOCATION,
END OF TY_ADRC.
DATA: IT_ADRC TYPE STANDARD TABLE OF TY_ADRC WITH HEADER LINE.
Parameters: p_type type c.
START-OF-SELECTION.
SELECT HOUSE_NUM1
NAME3
NAME4
LOCATION
UP TO 40000 rows
FROM ADRC
INTO TABLE IT_ADRC.
WHERE ADDRNUMBER = '0000022423'.
IF SY-SUBRC = 0.
LOOP AT IT_ADRC.
WRITE:/ IT_ADRC-HOUSE_NUM1, IT_ADRC-NAME3.
ENDLOOP.
write:/ p_type.
ENDIF. -
How do you add programs into your subscription
I started using the Creative Cloud because I need Acrobat for some PDF management, but in the future, I might need to add one more program into my account, Photoshop. Not any other program, just Photoshop. Is there an easy (and affordable) way for me to add a program into an existing account? Thank you in advance.
Cloud Plans https://creative.adobe.com/plans
-and subscription terms http://www.adobe.com/misc/subscription_terms.html
-check the photography special -
How to merge pdf files into one pdf file?
In E-Rec we need the capability to mass printing for correspondance. There i want to merge pdf files for candidates into one pdf file. I am doing the following:
Data: lv_document1 TYPE rcf_s_cs_document_content.
LOOP AT activity_object_tab INTO ls_activity_object.
lo_act_corr ?= ls_activity_object-activity.
CALL METHOD lo_act_corr->process_document
EXPORTING
channel = 'FRONTEND'
IMPORTING
document = lv_document1.
ENDLOOP.
Now lv_document1 contains the pdf file in lv_document1-DOCUMENT_X which is of type RAWSTRING.
This works for one candidate, in this case the pdf for last candidate will be displayed.
But how would i append in the loop or what would i need to do display all candidates in one pdf.
Any help will be appreciated.
ThanksFile>Create PDF>From File.
Please post followups in the Acrobat forum.
Bob -
How to merge blog pages into one?
I used iWeb and created three sites within one Domain file; each of these sites has its own blog page.
But I haven't touched it for quite some time and would like to pick it up again. I'm at a point where I would like to simplify things: only to have one site and one blog and...
How do I, or is there a way to, merge these blog pages into one? Consolidating these posts and comments into one single blog page?
Your advice would be very much appreciated. (At present I'm so torn between picking up using iWeb or just start with blogger.com; the ability to preserve these messages would be key to the decision.)
Thank you.You can either use <PageOverlay> to overlay the Header PDF page onto the PDF with the Body, or you could turn the Header PDF page into a <Header> DDX element. It depends on the page size of the Header PDF.
Please be aware that if you use <Header>, the default margins for positioning the header are 1/2 inch all around. You can set this to 0 or whatever you want using the <PageMargins> element.
An example of using PageOverlay:
<?xml version="1.0" encoding="UTF-8"?>
<DDX xmlns="http://ns.adobe.com/DDX/1.0/" >
<PDF result="result1">
<PDF source="PDF2"/>
<PageOverlay>
<PDF source="PDF1"/>
</PageOverlay>
</PDF>
<PDF result="result2">
<PDF source="PDF3"/>
<PageOverlay>
<PDF source="PDF1"/>
</PageOverlay>
</PDF>
</DDX> -
How to merge PDF docs into one?
How can I merge several individual PDF documents into one? Can I use preview for this?
Thanks
aIf this is a repetitive task, use Automator. Set up a workflow. First use Files & Folders to Get Selected / Specified Finder Items. Then use PDFs Combine PDF Pages (alternatively just drag selected files to the work area rather than use the Files & Folders step). Display the results from this combinng operation, click on it to display it and verify, and then rename it as desired. The operation New PDF from Images should do that last step, but it appears to not work.
-
How to convert ABAP Programs into Chinese
I have an ABAP program but the interface is in English. I want to translate all into Chinese Characters. How can I do it? Thanks in advance.
Hi Gautham,
Can you please explain further sir. It's like this, for example I have a parameter named p_bukrs. And in the selection text screen (Goto -> Text Elements -> Selection Texts), I put the a decription on it named 'Company Code'. How can I convert this one? Thanks a lot. -
How to merge RAW files into iPhoto Library?
Hi,
I have several (Aperture-) modified photos in iPhoto. When I click on any one of those photos in iPhoto (9.5.1) and then click on File -> Reveal in Finder -> Modified File – it reveals the location of a jpg-file inside my iPhoto Library. So far, so good.
However, when I choose File -> Reveal in Finder -> Original File it takes me to an external folder (located in my Home Picture library) and reveals the original RAW-file. I don't know why they are in a folder outside the iPhoto library but I suppose it has something to do with me editing them outside of iPhoto. And this is not a library but just a regular folder containing RAW-files.
How can I merge all my RAW-files so that they are, neat and tidy, all inside my iPhoto library?However, when I choose File -> Reveal in Finder -> Original File it takes me to an external folder (located in my Home Picture library) and reveals the original RAW-file.
You can use Aperture to move the raw originals back into the iPhoto/Aperture library, if your iPhoto and Aperture versions are still compatible.
Open your library in Aperture and select all photos with raw originals in the Browser and use the command "File > Consolidate Originals".
You will be prompted, if you want to move the files or to copy them. Select "Move files".
The reason they originals are outside the library is probably caused by the way you imported them. Check your import settings in Aperture.
In the Import panel the option "Store files" should be set to "In the Aperture Library".
And in iPhoto the "Advanced" preference for importing should be "Copy items to the iPhoto Library"
Regards
Léonie -
ALV report: How to merge 2 columns into 1 column?
Hello,
I have a list of data which I would like format the header to look as below:
| -
Quater 1---- | -
Quater 2 -
| -
Quater 3---- | -
Quater 4---- | <--- header 1
| Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | <--- header 2
| -
F---- | -
S- | -F-- | -
S- | -F-- | -
S- | -F-- | -
S- | <- header 3
xxxxxxx | xxxxxx | xxxxx | xxxxx | xxxxxx | xxxxx | xxxxxx | xxxxx | <--- data lines start here....
Is there anyway I able to achieve this layout?
I found quite a numerous of "cell_merge" information on ALV but I do not know how exactly it work and how to modify it?
Would be appreaciate if anyone of you able to guide me with sample code.
Thanks in advance,
Aish :PHi,
U can do this by using Row position in FIELD CATALOG.
Steps are:
u2022 First we have to declare an internal table of output type with few dummy character type fields.
u2022 Use this structure when populating field catalog.
u2022 When populating field catalog we have to change row position, column position, offset value, field length, text, reference table and field name (if required), justification etc.
u2022 Pass this field catalog as exporting parameter into function module u2018REUSE_ALV_LIST_DISPALYu2019.
Type declaration for Output table
TYPES: BEGIN OF ty_address,
add_detl(1) TYPE c, u201CDummy field
add_init(1) TYPE c, u201CDummy field
pers_detl(1) TYPE c, u201CDummy field
res_detl(1) TYPE c, u201CDummy field
off_detl(1) TYPE c, u201CDummy field
addrnumber TYPE ad_addrnum, "Address number
name1 TYPE ad_name1, "First Name
name2 TYPE ad_name2, "Middle Name
name3 TYPE ad_name3, "Last Name
home_city TYPE ad_city3, "Residential City
city2 TYPE ad_city2, "District
post_code1 TYPE ad_pstcd1, "Residential postal code
city1 TYPE ad_city1, "Office City
post_code2 TYPE ad_pstcd2, "Office postal code
tel_number TYPE ad_tlnmbr1, "First telephone no.
tel_extens TYPE ad_tlxtns1, "First Telephone No.: Extension
fax_number TYPE ad_fxnmbr1, "First fax no.
END OF ty_address.
In the above type declaration first five fields are used to populate field catalog only for the first and second line headings. These fields do not contain any data.
Main processing:
To get multiple line ALV layout we have to declare few dummy fields. When we build field catalog, then we have to put those dummy fields in proper places. In our example last 12 fields are known as valid fields with data and first 5 fields (1 at first line and 4 at second line) are knows as invalid or dummy variables containing no data.
When we build field catalog, we call a perform name CREATE_CATALOG using
Column position Row position
Field name Table name
Justification Text heading
Reference table Reference field
Output length Offset value
For the first row, we have to set row position 1, column position 1. When we call the perform we have to pass, these two values in addition with dummy field name (ADD_DETL), table name (I_ADDRESS), justification (left or right), text (Address Details), Reference table and Reference field name (we can pass SPACE, if not required), Output length and Offset value (Length from left margin or last field, for the first row it is 225. Means the text u201CAddress Detailsu201D will be printed at 225th char position).
l_off = 225. "Offset Value
l_pos = 1. "Column position
l_row = 1. "Row position
l_just = u2018Lu2019. "Allignment (u2018Lu2019 for Left)
l_outlen = 50. "Field length
Address Details *****************
PERFORM create_catalog USING
l_pos l_row 'ADD_DETL' 'I_ADDRESS' l_just text-002 space space l_outlen
l_off.
Perform CREATE_CATALOG is used to append the field catalog table with the passing parameters.
SUBROUTINE ***************************************
FORM create_catalog USING p_pos TYPE sycucol
p_row TYPE sycurow
p_field TYPE any
p_tab TYPE any
p_just TYPE char1
p_text TYPE reptext
p_reftab TYPE any
p_reffld TYPE any
p_outlen TYPE outputlen
p_off TYPE outputlen.
s_fieldcat-col_pos = p_pos. "Column position
s_fieldcat-row_pos = p_row. "Row position
s_fieldcat-fieldname = p_field. "Field name
s_fieldcat-tabname = p_tab. "Table name
s_fieldcat-just = p_just. "Justification
s_fieldcat-reptext_ddic = p_text. "Text heading
s_fieldcat-ref_tabname = p_reftab. "Reference table
s_fieldcat-ref_fieldname = p_reffld. "Reference field
s_fieldcat-outputlen = p_outlen. "Output length
s_fieldcat-offset = p_off. "Offset value
APPEND s_fieldcat TO i_fieldcat.
CLEAR s_fieldcat.
ENDFORM. " create_catalog
Regards,
Joy. -
How to merge 3 slideshows into one
I have 3 slideshows (projects) and I want to make them into one slideshow. How do I do that?
You can't aggregate the slideshow projects. But you can export each slide show to a windows media file and then create a new slideshow from the resultant three videos. Bu you won't be able to edit the transitions and pans/zooms. If that's what you want then you'll need Premiere Elements as you can export each slideshow to the same PRE project and, once in PRE, use the break-apart feature for full slide show editing features.
Cheers,
Neale
Insanity is hereditary, you get it from your children
If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks. -
How to merge user accounts into one account
I have 2 user accounts and need to merge them into one (having both running seems to slow down the computer significantly). There is some overlap in itunes and apps but none on iphoto. What would be the best way to do it?
KrzysTo move files from user account A to account B, log in as A, and move all the files to /Users/A/Public. Then log in as B. Navigate with Finder to /Users/A/Public, and drag them to the desktop to copy them. Then file them away in their appropriate places. When done, you can delete the A account.
Suggestion: Keep one spare admin account around to use in an emergency. If your other account gets borked and you can't log in, it could save your bacon. A second user account is also useful for troubleshooting misbehaving apps. -
How to merge indesign files into one
Hi, I have some publication as book indesign files, then I want merge these individual indesign files inside one file. I search a lot for plug-ins and scripts to do it, but nothing I dont want just PDF files, because I need edit the files after putting them together. Any tips will be valuable Regards
Try this one: go to -
http://kasyan.ho.com.ua/scripts_by_categories.html
search the page until you find
Mass combine a bunch of indd files into one by Simon Wiscombe
hope that helps
Colin -
How to merge multiple files into one pdf
I would like help with this task. If I could do this for free I woul actually be more likely to follow advice. Many thanks
Hi Lauravill,
The free Adobe Reader cannot help you with the merging job. If you have Acrobat Reader then you can merge files into one pdf with the following steps-
Within Acrobat XI, select File > Create > Combine Files into a Single PDF.
Click Add Files and select the files you want to add.
Click, drag, and drop to reorder the files and pages. Double-click on a file to expand and rearrange individual pages. Press the Delete key to remove unwanted content.
When finished arranging the files, click Combine Files.
Select File > Save As > PDF.
Name your PDF file and click Save.
Let us know if you face any problemwith this or need extra support.
Thanks
-Satyadev
Maybe you are looking for
-
Some books I purchased and downloaded free in my library in Itunes on my PC dont download properly when synced with my ipad, they only half-download. I then tried deleting them from ibook on my ipad but they just wont delete no matter method I try.
-
File content retrive/view problem using DBMS_LOB...?
Below this procedure working fine but getting buffer length/file content display problem... CREATE OR REPLACE Procedure READ_FILE_LOB_tmp IS l_dir CONSTANT VARCHAR2(30) := 'READ_LOB_DIR'; l_fil CONSTANT VARCHAR2(30) := 'testfile.txt'; l_sen CONSTANT
-
Hi, I hope somebody with some SMS/SMPP experience would be able to fix the problem or advise as what to do. OK Now we have an application which is supposed to send an SMS to a recipient on certain occassions and this SMS might contain accented charac
-
I am creating Software demonstrations with Captivate 6, these are being recorded in 1280 x768 and when I preview them they are sharp and clear, Im also recording in 32bit. I then publish them with sfw and quailty set at high and the properties set at
-
I bought the new Ipod nano, and the radio is not working. I live in the USA, and has being setting in "America" zone, but is not working!! I plugged the headphones, and I tried in different places, and I not working!!! What could I do?