Showing posts with label Copy. Show all posts
Showing posts with label Copy. Show all posts

October 07, 2020

Microsoft Azure DevOps Boards move or copy tasks between projects

 Hi all,


Today we will go through the different ways to organize the work items in Microsoft Azure DevOps Boards.

Pre-requisites

User should have appropriate permissions in both the projects.


Moving the work items between projects

  • Select the required items from Boards -> Work items
  • Select the more options icon (...) from any one of the selected work item
  • Choose "Open selected items in Queries" options
  • Queries page navigation will happen
  • Select all the items from query results (Ctrl+A)
  • Select the more options icon (...) from any one of the selected work item
  • Choose "Move to team project" options
  • Queries Page

  • Move work item dialog opens up

  • Choose appropriate options and click Ok.
  • All the items would be listed in moved project queries window.
  • Click on "Save items" option.


Copy work items between projects

Export work items

  • Select the required work items
  • Select the more options icon (...) from any one of the selected work item
  • Choose "Open selected items in Queries" options
  • Queries page navigation will happen
  • Select all the items from query results (Ctrl+A)
  • Export the work items to CSV file



Import the work items

  • Navigate to the required project boards section where the work items has to be created
  • Click on "Import work items" option
  • Import work item

  • Queries page navigation will happen
  • Import work items

  • Choose the exported CSV file and click on "Import" button
  • The work items would be listed in queries section
  • Click on "Save items"
  • Navigate to "Work items" section to view the added work items.


Request you send your comments and feedback below or send mail : psrdotcom@gmail.com


August 24, 2020

Microsoft Azure DevOps Server move or copy Project Source Code from one organization to another organization

Hi folks,

Today I will explain the process of moving the projects from one organization to another in Azure DevOps Server which includes the source repository code, history of commits, tags.


Pre-requisites

  • Git command line tool
  • ssh-keygen tool
  • Azure DevOps Project access


Environment Setup

  1. Create ssh key on your local PC
  2. Same user account on both the organization with required permissions (Admin)
  3. On Azure DevOps, to go user profile
  4. Add the generated SSH pub key of PC to Azure DevOps


Procedure in terminal/command prompt

1. git clone <old org project repo ssh url>

2. cd <project>

3. git branch -a

    a. git checkout <all branches one by one>

4. git fetch --tags

5. git remote rm origin

6. git remote add orgin <new org project repo ssh url>

7. git push origin --all

8. git push --tags


Hope you are able to move/copy the project source code which includes the history of commits and tags.

Please send your comments and feedback to psrdotcom@gmail.com


August 10, 2018

Microsoft Excel Copy row values to another sheet next available row when the value changes

Hi friends,

My friend had given me a problem in excel of copy row whenever the values changed to another sheet next available row.

I have come-up with this following code

Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Application.Intersect(Target, Target.ActiveSheet.Range("A1:D1")) Is Nothing Then
        Application.EnableEvents = False
        Application.ScreenUpdating = False
        MsgBox ("Hi")
        Call ValueChange
        Application.EnableEvents = True
    End If
End Sub
Sub ValueChange()
        Dim lastrow As Long
        
        lastrow = Sheets("Sheet2").Range("A65536").End(xlUp).Row + 1
        Sheets("Sheet2").Range("A" & lastrow & ": D" & lastrow).Value = Sheets("Sheet1").Range("A1:D1").Value

End Sub

Hope it will help you.

Note:
Please share your valuable comments and feedback to psrdotcom@gmail.com

December 30, 2016

Windows file name too long to delete move copy rename due to destination path too long

Hi friends,

Problem

When i am clearing my old windows folder from the OS installed drive, I had an issue of deleting the files and folder because the path name is too long.

The error message is

"Destination Path Too Long.

The file name(s) would be too long for the destination folder. You can shorten file name and try again, or try a location that has a shorter path."

Background

Windows OS will allow the file path to be max 255 characters. If any file or folder path is beyond 255 characters, you will not be able to perform any file actions like delete / move / copy / rename.

Solution


  1. Navigate to the folder in the windows explorer
  2. Type the following command in the address bar and hit enter key
    • subst j:
  3. Open a new windows explorer window
  4. Now you will be able to see new drive with letter J:
  5. You will be able to delete the files/folders with in the drive
  6. To delete the other files, navigate to the parent folder and delete one after one or multiple folders path at a time.


Please send your feedback or suggestions to psrdotcom@gmail.com

August 22, 2015

UDPCast, udp sender and udp receiver Sharing files over LAN/Wi-Fi

Hi admins,

Have you ever thought of sending files/folders to all your systems which are connected over LAN?
Have you ever thought of copying the entire partitions including OS to all your systems with same configuration which are connected over LAN in your lab?

You might be using some proprietary tools.

Let me share my knowledge of open source tools in Ubuntu to perform the job.

It is UDP Case with following operations
  1. udp-sender
  2. udp-receiver

Simple usage can be seen in References 2

References

https://www.udpcast.linux.lu/cmd.html
https://www.udpcast.linux.lu/cmdlinedoc.html

Please send your comments and feedback to psrdotcom@gmail.com

January 19, 2015

Windows: Copy all file names in a folder

Hi friends,

I’ve got a requirement like, I want to copy all the file names from a folder in Windows.

After searching from Google, I’ve got one of the quick solution which is being described below

Procedure:

Navigate to the folder where you want to copy all the file name in “Windows Explorer”

Select all the files (Key Board (KB) Shortcut: Ctrl + a)

Press and hold the “Shift” key on your keyboard

Right click your mouse by pointing to any one of the selected file

From the context menu, select the option “Copy as path”

Now, open “Notepad”

Paste the content (KB Shortcut: Ctrl + v)

Now, you will be able to see all the file name with full path

You can remove the folder path, if you don’t want the full path

Enjoy guys Smile

Send your comments and feedback to psrdotcom@gmail.com

Blogger Labels: Windows,Copy,folder,requirement,Google,solution,Procedure,Navigate,Explorer,Select,Board,Shortcut,Ctrl,Shift,From,context,menu,option,path,Notepad,Paste,Enjoy,Send,feedback

November 22, 2012

Mount TrueCrypt Volume with Read and Write File Permission for Users and Groups

Hi friends,

I have been working on Ubuntu from a long time. Recently I am exploring on TrueCrypt and I faced the following issue. After searching lot of websites and forums, I made a solution which worked for me perfectly.

Objective:
TrueCrypt volume copied data should be available to all when its mounted.

Usual Procedure:
Mount the TrueCrypt volume in Ubuntu
Copy some data to the volume
Change file permissions to other users or groups
Other users should be able to view the data from the volume when mounted

Hiccup(Problem):
After mounting the TrueCrypt Volume the directory permissions are changed and fixed to 700 (rwx --- ---). i.e. No access to groups and others.
Changing the directory permissions and changing the ownership will not be applied.
So, other groups and others cannot access the data.

Solution:
While mouting the TrueCrypt volume we need to specify the file system type and give permission to user[s] and/or group[s] with umask.

Please find the syntax and example below

Syntax:
$sudo /usr/bin/truecrypt -t --filesystem={filesystem_type} --fs-options={rwx},uid={userid},gid={groupid},umask={ugorwx} {your_tc_volume} {mounting_folder}

Example:
$sudo /usr/bin/truecrypt -t --filesystem=vfat --fs-options=rw,uid=1000,gid=1000,umask=022 tc1.tc /mnt/folder1

Thanks for visiting my blog.

Please send your feedback and comments to psrdotcom@gmail.com

May 08, 2012

Micro SD Card, Unable to Format, Write Protected

Hi friends,

One more issue with some precaution. My friend formatted his micro-sd card and trying to copy the files from computer to sd card using card reader. The files aren't copying into the sd card. We tried to format the drive and it was showing an error in windows like "Windows was unable to format the drive".

We tried to format the drive on Linux, Mac also. Tried to use "dd" command to write random data in it. It was automatically disconnecting from PC/Mac. i.e. The drive is not accessible after sometime.

Then we have come to one conclusion that "Never, Ever format your sd card from the phone". It will not be accessible by the PC/Mac.

We tried to use the same SD Card in Samsung mobile also. It was detected and formatted from the Samsung phone too. It was formatted successfully. But when we were trying to copy some files to the sd card, It says "Drive location is accessible".

Lesson: "Don't format your micro-sd card from phone"

If anyone knows, how to solve this problem, please let me know.

Send your feedback to psrdotcom@gmail.com

March 21, 2012

Excel Macro to Split Cell Data with Delimiter and Copy in other Columns

Hi all,
Today I have written one more small macro in Excel to split the data with the delimiter and copy to the columns which are beside to the data.


Sub splitdata()

Dim data As String
Dim values As Variant
Dim i As Long

    Set DataRange = Range("A1").CurrentRegion
    Range("A1").Select
    For Each cell In Range("A1").CurrentRegion
       
        'Getting text from the cell
        data = cell.Text
       
        'MsgBox ("Data :" & data)
       
        'Gettings Values
        values = split(data, ",")
       
        For i = 0 To UBound(values)
            'MsgBox ("Value is: " & values(i))
            'Splitting to other columns
            cell.Offset(0, i + 1).Value = values(i)

        Next i

    Next cell  
 

'Autofit the content to the column
    Cells.EntireColumn.AutoFit
   
End Sub


Please send your feedback and comments to psrdotcom@gmail.com

February 11, 2011

File copying based on cell value to different directories on some condition

File copying based on cell value to different directories on some condition


Description:
I have lot files to copy into two different directories. I sorted those file names in a such a way that odd row numbered file should go to the directory named "Odd" and even row numbered file should go to the directory named "Even".

I am checking whether the file exists or not in the particular directory before copying. If exists it will ask the user for confirmation and stored with suffix1.

References:
http://msdn.microsoft.com/en-us/library/cahdzfxw%28v=vs.80%29.aspx
http://www.techotopia.com/index.php/Working_with_Directories_in_Visual_Basic
http://www.mvps.org/dmcritchie/excel/strings.htm

November 24, 2010

Copy Paste Pl/Sql developer queried table data and Auto Format the content

Paste and Auto-format Table records in Excel

While taking backup of the tables, we are doing the following steps.
1.       Executing the query
2.       Copying the content from pl/sql developer
3.       Opening excel and paste the copying content
4.       If we want multiple tables to take backup, we need select next sheet and paste the content
5.       If we need more than 3 sheets we are adding new sheets.
6.       Just copying content from the pl/sql developer doesn’t finish our work, am I right?
7.       We need to format the data too.

So, I just tried to create one auto-formatter which will paste the data and auto-format the data.

Please download the attachment and unzip the file.

After opening the excel file, do the following.

a) Please change the macro settings to "Disable all macros with notification"
     Note: To see how you can change the macro settings, please see the following link


b) Please click on the "User Friendly Formatter" button and follow the procedure.
c) It will open a new file and asks you to save the file.
d) Copy the content from pl/sql developer, when it displayed the following pop-up window.


e) The data will be auto formatted and then asks user for continuation by displaying the following window.

f) If user wants to continue, user can click “Yes” button, and the next sheet will be auto-selected.
g) Goto step (d)
h) When your clicks on “No” button, the file will be autosaved.


Please see the macro code and change according to your requirements.

Source Code:



Public Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long
Public Declare Function EmptyClipboard Lib "user32" () As Long
Public Declare Function CloseClipboard Lib "user32" () As Long

Sub CreateNewWorkbook()
    Dim oWorkbook As Workbook
    Dim wbName, fileSaveName As String
    Dim sCount, decision, copied, sIndex As Integer
    Dim oSheet As Worksheet
    
    'On Error GoTo errHandler
    
    Set oWorkbook = Workbooks.Add
    
    Save_ActiveWorkbook
    
    sCount = ActiveWorkbook.Sheets.Count
    'MsgBox (sCount)
    
    If MsgBox("Please copy the content and then click on OK", vbOKOnly, "Decision") = vbOK Then
        CopyAndFormatData
    End If
    
    sIndex = 1
    
askUser:
    decision = MsgBox("Do you want to continue with the next sheet?", _
    vbYesNo, "Decision")
  
'If user wants to continue
    If decision = vbYes Then
    
        'Asking user to copy the data first
        copied = MsgBox("Please copy the content and then click on OK", vbOKCancel, "Decision")
        
        'If user copied data
        If copied = vbOK Then
        
            'Selecting next sheet
            If sIndex < 3 Then
                Sheets(sIndex + 1).Select
                sIndex = sIndex + 1
            'ElseIf sIndex = 3 Then
            '    Sheets(sIndex).Select
            'Adding additional sheet from sheet4
            ElseIf sIndex >= 3 Then
                    Set oSheet = Worksheets.Add(After:=Worksheets(Worksheets.Count))
            End If
            
            'copying and formatting data
            CopyAndFormatData
            
        ElseIf copied = vbCancel Then
            'Confirm the user whether user want to quit and save file
            If MsgBox("Do you want to remain in the same sheet", vbOKOnly, "Save File") = vbOK Then
                Sheets(ActiveSheet.Index).Select
            End If
        End If
        GoTo askUser
    End If
    

savingFile:
    ActiveWorkbook.Save
    
End Sub

Sub CopyAndFormatData()

'If Range("A1").Font.Bold = True Then
    ActiveSheet.Range("A1").Select
    
    On Error Resume Next
    ActiveSheet.PasteSpecial Format:=Text, Link:=False, DisplayAsIcon:=False
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
    
    If Range("A1").Value Is Null Then
        Range("A:A").Delete
    End If
    
    'select header row and make it as bold
    Cells(1, 1).EntireRow.Select
    Selection.Font.Bold = True
    
    'Autofit column width
    Range("A1").CurrentRegion.Select
    Selection.Columns.AutoFit
    
ClearClipboard

End Sub

Sub ClearClipboard()
    OpenClipboard (0&)
    EmptyClipboard
    CloseClipboard
End Sub
Sub Save_ActiveWorkbook()
'Working in Excel 2000-2010
    Dim fname As Variant
    Dim NewWb As Workbook
    Dim FileFormatValue As Long

    'Check the Excel version
    If Val(Application.Version) < 9 Then Exit Sub
    If Val(Application.Version) < 12 Then

        'Only choice in the "Save as type" dropdown is Excel files(xls)
        'because the Excel version is 2000-2003
        fname = Application.GetSaveAsFilename(InitialFileName:="", _
        filefilter:="Excel Files (*.xls), *.xls", _
        Title:="Save As the Workbook as ")

        If fname <> False Then
            'Copy the ActiveSheet to new workbook
            ActiveSheet.Copy
            Set NewWb = ActiveWorkbook

            'We use the 2000-2003 format xlWorkbookNormal here to save as xls
            NewWb.SaveAs fname, FileFormat:=-4143, CreateBackup:=False
            NewWb.Close False
            Set NewWb = Nothing

        End If
    Else
        'Give the user the choice to save in 2000-2003 format or in one of the
        'new formats. Use the "Save as type" dropdown to make a choice,Default =
        'Excel Macro Enabled Workbook. You can add or remove formats to/from the list
        
        fname = Application.GetSaveAsFilename(InitialFileName:="", filefilter:= _
        " Excel Macro Free Workbook (*.xlsx), *.xlsx," & _
        " Excel Macro Enabled Workbook (*.xlsm), *.xlsm," & _
        " Excel 2000-2003 Workbook (*.xls), *.xls," & _
        " Excel Binary Workbook (*.xlsb), *.xlsb", _
        FilterIndex:=1, Title:="Save As the Workbook as ")

        'Find the correct FileFormat that match the choice in the "Save as type" list
        If fname <> False Then
            Select Case LCase(Right(fname, Len(fname) - InStrRev(fname, ".", , 1)))
            Case "xls": FileFormatValue = 56
            Case "xlsx": FileFormatValue = 51
            Case "xlsm": FileFormatValue = 52
            Case "xlsb": FileFormatValue = 50
            Case Else: FileFormatValue = 0
            End Select

            'Now we can create/Save the file with the xlFileFormat parameter
            'value that match the file extension
            If FileFormatValue = 0 Then
                MsgBox "Sorry, unknown file extension"
            Else
                'Copies the ActiveSheet to new workbook
                Set NewWb = ActiveWorkbook

                'Save the file in the format you choose in the "Save as type" dropdown
                NewWb.SaveAs fname, FileFormat:= _
                             FileFormatValue, CreateBackup:=False

            End If
        End If
    End If
End Sub


Note: Please send your feedback and comments

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com