MAXL Script for copying outline
Can we write any MAXL Script for copying outline from one aplication/datbase to another application/database.
Example copying olt from app1.dbb1 to app2.dbb2
No and yes.
There is no MaxL statement for copying an outline from one DB to another (Unless you are converting from BSO to ASO). But you can shell system commands like xcopy within a MaxL script (of course you could just do this in your batch or shell script) . Just make sure you stop the Dbs before doing the copy
Similar Messages
-
Logon Scripts for copying files in Windows 7
Issues using Logon scripts to copy files in windows 7. Its default is to append the file rather than copy and replace, which is what XP did. How can I achieve the same results using
logon scripts in W7 to copy any files to specified folders and replacing old files. The reason for this is that we use a software that performs offsite/onsite updates and the only way all the users can have the correct version/tables is to either manually
update each user in a 90+ user environment or use a logon script to perform the coping of the updates. Unfortunately the software support won’t create a (while logging in to software) patch for this. So we have to force it during the user logon.Hi Novice,
It should depend on your script content. it's recommended you ask in the official scripting guys forum for professional help:
https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
Karen Hu
TechNet Community Support -
Script for copying or moving files from windows server to another remote windows server
Copy below 2 line into notepad and save as movescript.vbs
execute in command prompt
c:\cscript movescript.vbs (Press ENTER)
Files will move to remote location.
=========================================
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.MoveFile "C:\scripts\*.txt","\\servername\c$\share"
=========================================
for copy files to remote location
=========================================
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "C:\scripts\*.txt","\\servername\c$\share"
=========================================
Lets us know if you face any error. reply back to me on [email protected]
Thank you.....
Regards Ravikiran MCITPWhat is your question? Are you asking how to do this? Can you post the errors?
¯\_(ツ)_/¯ -
Looking a script to copy contacts from outlook 2010 to office 365. Thanks
This topic first appeared in the Spiceworks CommunityLooking a script to copy contacts from outlook 2010 to office 365. Thanks
This topic first appeared in the Spiceworks Community -
A script for copying certain files to a new location
I have a folder with over 50,000 images in it. I need about 15,000 of them copied to another folder.
Is there a script (that I can paste the list of the ones I need copied) to perform this action?
Thanks in advance.perhof,
After much googling, I was fortunate enough to find your beautiful script!
I added a couple of things like subfolder recusion ( by tweaking scripts I found) .
Would you be kind enough to look this over and see if it's ok or needs fixing?
Thanks for any help,
ec
[code]
' Read a list of images from text file
' and copy those images from SourceFolder\SubFolders to TargetFolder
' Should files be overwriten if they already exist? TRUE or FALSE.
Const blnOverwrite = TRUE
Dim objFSO, objShell, WSHshell, objFolder, objFolderItem, strExt, strSubFolder
Dim objFileList, strFileToCopy, strSourceFilePath, strTargetFilePath
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("Shell.Application")
Set WSHshell = CreateObject("WScript.Shell")
Const ForReading = 1
' Make the script useable on anyone's desktop without typing in the path
DeskTop = WSHShell.SpecialFolders("Desktop")
strFileList = DeskTop & "\" & "images.txt"
' File Extension type
strExt = InputBox("Please enter the File type" _
& vbcrlf & "For Example: jpg or tif")
If strExt="" Then
WScript.Echo "Invalid Input, Script Canceled"
Wscript.Quit
End if
' Get the source path for the copy operation.
Dim strSourceFolder
Set objFolder = objShell.BrowseForFolder(0, "Select source folder", 0 )
If objFolder Is Nothing Then Wscript.Quit
Set objFolderItem = objFolder.Self
strSourceFolder = objFolderItem.Path
' Get the target path for the copy operation.
Dim strTargetFolder
Set objFolder = objShell.BrowseForFolder(0, "Select target folder", 0 )
If objFolder Is Nothing Then Wscript.Quit
Set objFolderItem = objFolder.Self
strTargetFolder = objFolderItem.Path
Set objFileList = objFSO.OpenTextFile(strFileList, ForReading, False)
On Error Resume Next
Do Until objFileList.AtEndOfStream
' Read next line from file list and build filepaths
strFileToCopy = objFileList.Readline & "." & strExt
' Check for files in SubFolders
For Each strSubFolder in EnumFolder(strSourceFolder)
For Each strFileToCopy in oFSO.GetFolder(strSubFolder).Files
strSourceFilePath = objFSO.BuildPath(strSubFolder, strFileToCopy)
strTargetFilePath = objFSO.BuildPath(strTargetFolder, strFileToCopy)
' Copy file to specified target folder.
Err.Clear
objFSO.CopyFile strSourceFilePath, strTargetFilePath, blnOverwrite
If Err.Number = 0 Then
' File copied successfully
iSuccess = iSuccess + 1
If Instr(1, Wscript.Fullname, "cscript.exe", 1) > 0 Then
' Running cscript, output text to screen
Wscript.Echo strFileToCopy & " copied successfully"
End If
Else
' Error copying file
iFailure = iFailure + 1
TextOut "Error " & Err.Number & _
" (" & Err.Description & ")trying to copy " & strFileToCopy
End If
Next
Next
Loop
strResults = strResults + 0 '& vbCrLf
strResults = strResults & iSuccess & " files copied successfully." & vbCrLf
strResults = strResults & iFailure & " files generated errors" & vbCrLf
Wscript.Echo strResults
Sub TextOut(strText)
If Instr(1, Wscript.Fullname, "cscript.exe", 1) > 0 Then
' Running cscript, use direct output
Wscript.Echo strText
Else
strResults = strResults & strText & vbCrLf
End If
End Sub
Function EnumFolder(ByRef vFolder)
Dim oFSO, oFolder, sFldr, oFldr
Set oFSO = CreateObject("Scripting.FileSystemObject")
If Not IsArray(vFolder) Then
If Not oFSO.FolderExists(vFolder) Then Exit Function
sFldr = vFolder
ReDim vFolder(0)
vFolder(0) = oFSO.GetFolder(sFldr).Path
Else sFldr = vFolder(UBound(vFolder))
End If
Set oFolder = oFSO.GetFolder(sFldr)
For Each oFldr in oFolder.Subfolders
ReDim Preserve vFolder(UBound(vFolder) + 1)
vFolder(UBound(vFolder)) = oFldr.Path
EnumFolder vFolder
Next
EnumFolder = vFolder
End Function
[/code] -
A script for copying smilar files to a new location
Hi,
i newbies to scripting. My challenge is that I want a script to only copy files with names "similar" and not "exactly the same" as the filenames in the text file.
For example some files have 10 letters file name like "ABC01FGH01.tif". I have to copy file where starting letter "ABC" and middle letter "FGH" of file name are fixed, but other letters are changed.
The script sees a file name like "ABC**FGH**.tif", it should search the source location and copy the files having filenames with at least this characters e.g. "ABC02FGH02.tif", "ABC03FGH04.tif" should be copied since it has
contains "ABC**FGH**.tif".
Please help.Learn how to use wildcards in file names. '*' is for any number of characters and'?' is for one character.
COPY ABC??DE???.?x? c:\target
Start by using DIR
DIR ABC??DEF???JK.?x?
¯\_(ツ)_/¯ -
Script for Overriding, Outlining, and Clearing Masters
As part of the submission process for one of our printers, we have to outline all the text on a set of labels. I've been trying to write a script to do three steps:
1. Override all Master page objects
2. Apply [none] master to all pages
3. Outline all text
I've gotten pretty far, but I seem to have hit a stumbling block on the Apply [none] master step. Any suggestions?
var myDocument = app.activeDocument;
var TotalPages = (myDocument.pages.count());
for(var CurrentPage=0; CurrentPage < TotalPages; CurrentPage++) {
OverrideMasterItems();
function OverrideMasterItems() {
myDocument.pages[CurrentPage].appliedMaster.pageItems.everyItem().override(myDocument.pages[CurrentPage]);
//this next part is where I have the problem... I would think it would select all the pages in the document, then change the master page to "null" but it doesn't seem to have any effect at all.
try{
app.activeDocument.pages.everyItem().getElements().changeMaster(null);
}catch(e){};
//then this final part is working fine.
try{
app.activeDocument.textFrames.everyItem().createOutlines();
}catch(e){};I can't help with your script, but I'll give you the standard advice that oulining text is bad practice, and toatally unnecessary in any reasonalby modern workflow that doesn't involve a cutting machine for making signs, or similar. You should find out WHY this printer seems to think it's necessary when ID automatically embeds all non-protected fonts in a PDF.
If you still want to outline, you don't want to do it by converting text to outlines before exporting. You'll lose all your automated bullets and list numbers and any underlines or paragraph rules. Far better to let the transparency flattener do the job during export. See Possible bug: oulining text w/ flattener in CS5 -
Script for copying files to drop boxes of other Macs
I don't know much about scripts as yet, but for daily backup purposes
I would like to copy all new or modified files from various folders
to the drop boxes of two other Macs (like the old DOS command XCopy)
and then reset the "modified attributes" (is there something like that at all?)
of these files.
A script could do this without the need to always find and select these files
and to always confirm the messages "You can put items into “Drop Box”,
but you won’t be able to see them. Do you want to continue?".
Thanks!Here is a short skeleton which doesn't treat subfolders.
May you check if it do what you want ?
property sourceFolder : "/Users/home/Documents/Pages/current/"
property destFolder : "/cr1’s iMac.afpovertcp.tcp.local/cr1's%20Public%20Folder/Drop Box/backup/Documents/Pages/current/"
on run
tell application "System Events"
set dest_folder to path of folder destFolder
set listeSource to path of disk items of folder sourceFolder
repeat with sf in listeSource
if visible of disk item sf then
tell disk item sf
set sn to name
set smd to modification date
end tell
if exists disk item sn of folder destFolder then
set needCopy to modification date of disk item sn of folder destFolder is not smd
else
make new file at end of folder destFolder with properties {name:sn}
set needCopy to true
end if -- exists disk item
if needCopy then my copyFile(sf, dest_folder)
end if -- visible …
end repeat
end tell -- System Events
end run
on copyFile(sourceFile, targetFolder) (*
sourceFile is the path to the source file as text,
dest_folder is the path to the destination folder as text
newFileName is the name of the file as text
tell application "Finder"
duplicate file sourceFile to folder targetFolder with replacing
end tell
end copyFile
Yvan KOENIG (VALLAURIS, France) mercredi 16 décembre 2009 18:33:43 -
Script for copying keywords to description field
Does anyone have a script that can be used in cs5 to copy the keywords to the description field?
Thanks
MarkThis should do it...
#target bridge
if( BridgeTalk.appName == "bridge" ) {
keysToDesc = MenuElement.create("command", "Keywords To Description", "at the end of Tools");
keysToDesc.onSelect = function () {
keysToDesc();
function keysToDesc(){
function getArrayItems(ns, prop){
var arrItem=[];
var items = myXmp.countArrayItems(ns, prop);
for(var i = 1;i <= items;i++){
arrItem.push(myXmp.getArrayItem(ns, prop, i));
return arrItem.toString();
if (ExternalObject.AdobeXMPScript == undefined) ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
var thumb = app.document.selections;
for(var s in thumb){
if(thumb[s].hasMetadata){
var selectedFile = thumb[s].spec;
var myXmpFile = new XMPFile( selectedFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE);
var myXmp = myXmpFile.getXMP();
var Keywords = getArrayItems(XMPConst.NS_DC,'subject').replace(/,/g,';')
myXmp.deleteProperty(XMPConst.NS_DC, "description");
myXmp.setLocalizedText( XMPConst.NS_DC, "description", null, "x-default", Keywords );
if (myXmpFile.canPutXMP(myXmp)) {
myXmpFile.putXMP(myXmp);
myXmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
} else {
xmpFile.closeFile(); -
Hi All,
wen im loading the all the dimensions we have to delete all alises and reload all the dimensions
How can i delete alias for every load using maxl or any thing else
ThanksDear user98631,
I was going to refer you to this link: Re: HOW can i delete the members in dim using MAXL but I find that you are one and the same as the OP of that thread so you've already got the gen on what MaxL can and cannot do.
So, briefly, there is no MaxL command to delete aliases.
What you could do is create a dimension load rule that load blanks to aliases. This would require a rebuild of each dimension that you wanted to impact.
I'm a little confused, though.
You wrote:
wen im loading the all the dimensions we have to delete all alises and reload all the dimensions
How can i delete alias for every load using maxl or any thing else Do you want to delete the aliases from existing dimensions, or delete all of the dimensions and rebuild them from scratch?
If you want to do the latter, the previous thread linked above ought to do it. If you don't want aliases, just ignore the column with the aliases in your build table/file.
Does this answer your question?
Regards,
Cameron Lackpour -
Batch Script for Logging Outline Change(s)
In 11.1.2.2., is there a way of automatically generating a maintenance log to keep track of each time making changes to the outline?
I haven't seen it in the docs, but figured that I should double check with the forum...You will get a better answer in Essbase forum
However go through
http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/outlinechangelog.html
http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/outlinechangelogfilesize.html
This is what you are looking for. I'll use that with caution, because it can cause a performance degradation.
During a restructure, Essbase holds outline change information in memory until all updates have been made to the outline change log. Turning on the outline change log might affect your restructure performance, particularly after dimension builds of several hundred or more members.Regards
Celvin
http://www.orahyplabs.com -
Please give the maxl scripts for export data in ASO
i think we have to use some report file ,please give the report file script and give the full statement of maxl to export data
There's a couple of ways to do this.
What version of Essbase are you using?
Do you want all the data exported or only a subset?
Brian Chow -
hi all,
how are you:)
i want to copy msi's from more than one shared location to my system's staging folder. i mean some msi's from one shared location and some from other shared location
but all should be in staging folder created in my system. it is like daily nightly builds will run and a msi's will be placed in the folder. it should pick the msi's from folder created with current date.
i am need of this, please help me
Thanks and Regards,
TilakrajHello,
The TechNet Sandbox forum is designed for users to try out the new forums functionality. Please be respectful of others, and do not expect replies to questions asked here.
As it's off-topic here, I am moving the question to the
Where is the forum for... forum.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
Script for copy and compile objects from one schema to another
Hi,
I have 2 schemas like schema1 and schema2 in both schemas i have same procedures/function like p_test1 .If i modify a procedure in schema1 i want same modifications in schema2 so i want a script to apply these changes to schema 2.
except bellow process any alternative
SET PAGESIZE 10000
SET feedback OFF
SET heading OFF
SET echo OFF
spool d:\SQL.OUT
SELECT TEXT
FROM USER_SOURCE
WHERE NAME = 'MY_PROCEDURE';
spool OFF
SET echo ON
SET feedback ON
SET heading ON
CONNECT OTHER_USER/OTHER_PASSWORD@OTHER_DATABASE;
@d:\SQL.OUTAll what you have to know about that function :
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_metada.htm#sthref3536
Nicolas. -
RSI_COPY_MASS_PARAMETER scripts for all mass activity types
We have CPS version 7 and I am trying to submit some mass activities
The first task is to copy mass parameters there are three scripts one for BILLING, BIPR and for INVOICES
Where can I obtain the scripts for copy mass activity parameters for other types, Such as meter reads?
Do I have to define them myself?
Thanks for helpHi Joseph,
The first question to ask is for which of these 24 mass activities you really need to change parameter sets.
If you only need to copy existing parameter sets and maybe apply a date shift, then for these mass activities the standard RSI_COPY_MASS_PARAMETER will do just fine.
For those mass activities where you do need to modify the content of the parameter sets from CPS, you need to create one of these scripts. If you need to modify many parameters, this can be somewhat cumbersome, however often the mass activity structures are somewhat similar so you could start off with one of the existing scripts. And you only need to specify the parameters you need to modify, as well as the standard parameters for these scripts (on the first tab on the submit window).
Regards,
Anton.
Maybe you are looking for
-
MacBook (13-inch, Late 2009) black screen and reset smc
My new macbook will not start occasionally, there is a black screen after the boot sound and screen with apple and wheel, in black screen i can hear the sounds changing the volume level, but the only way to work is forcing the shutdown and restart un
-
New fonts look fine in Font Book don't work in apps
I need someone's help. I understand that to install new fonts I can either bring them into my font book (and chose whether they apply to a user or to the system) or can drag them directly into library/fonts or user/library/fonts. I am looking for som
-
I bought my daughter an i-pod when she was around 7 or 8. At Christmas time when people asked me what she wanted I said an itunes gift card! Lots of people bought her one and so to keep them safe I put some in a safe place for when she was older... a
-
Google bus maps no longer working
I own an iPhone 4 with the iOS 5. I depend a lot on the bus directions in the maps app, but it stopped working yesterday. If I out in two previously valid locations and ask for a bus route, it was that no transit can be found. But the directions for
-
Track file usage by recording PC name?
Is there any way for a pdf form file to record the PC name everytime it is opened on a new pc?