Siebel / DOS : Script to clone files (SPF Cloning as example )

You can use the following command to clone single file and give it different names.

The Names can be read from a .txt file

Code snippet :

@echo off
FOR /F “tokens=*” %%i IN (C:\Profile\Names.txt) DO (
    @ECHO %%i
    Copy “c:\Profile\AVR12345.spf” c:\Profile\New\”%%i”
)

This can be used to clone the Siebel Profile Files and replicate it to other users.

Once the SPF files are created for the new user, then copy them and replace it for all the other users. This is perticularly useful when we want to deploy this SPF for some specific set of users.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: