How to insert a link to a folder - confluence

I can insert links to specified documents within folders, I want to be able to insert a link that takes the user to the folder to open up any document within.
I've tried something to the effect of this, but get an error ///server/share/etc
///server/share/etc
It wont take the file address that I am inputting in the 'insert link' option.

So you can link to a folder, it should be in this format:
file:///"Drive":%5C"folder"%5C"folder"%20"folder"%5C"folder"%20"folder"/
Items in "" are to be filled in. the %5C is to separate folder names, and the drive from the first folder. %20 is used in place of spaces between words of a folder. like New%20Folder.

Related

How to rename an XML file using the pattern in a different .txt file?

I have a folder say, source folder, containing 1000+ xml files with some ambiguous names, like:
_MIM_15646432635_6664684
_MIM_54154548557_6568436 etc.
Out of these thousands of XML files I’ve to select some 10-12 xml files with a particular node in them and move them to another folder (destination folder) and rename the files respectively with some meaningful names.
For example:
There is an xml file with name _MIM_15646432635_6664684 and it contains a node pattern like: “bab6e7h835468eg” and I’ve to rename it to name like: {1FE9909E-4450-B98665362022}
So for this I’ve to write a script which will search the file in source folder and if it finds my desired node pattern then move this file to destination folder post renaming it to some meaningful name.
Provided I’ve an excel sheet where I do have a list of two columns, one containing the specific node pattern and column two has a respective new name list.
Currenty, I’ve a script which can search a file and move it to another folder provided I’m giving input to the script with the node pattern and file name from that excel sheet:
Select-String – Path “\Dubwta01\AIR\Invalid*.xml” – Pattern ‘bab6e7h835468eg’ | %{Copy-Item – Path $_.Path – Destination ‘\Dubwta01\AIR\Invalid{1FE9909E-4450-B98665362022}.xml’
What now I need is that a new script which will pick all 10 files from source folder and move it to destination folder by renaming it and I don’t have to hard code the pattern and new name in script rather it shall fetch the details from that excel or I can save the details in text files whatever is suitable for script to pick the name and pattern from.

Delete duplicates files with powershell based on their name and file contents

I am really new to powershell, really need help with this.
I have a directory with multiple folders with multiple files, some files in different folders are having the same name with or without the same content. All I need to do is to filter out all the files with the same name and with the same content and move them to the other folder.
I tried the way using in this link
https://sid-500.com/2020/04/26/find-duplicate-files-with-powershell/
the issue here is that get-filehash can find the duplicates by contents, but not by name (for example: dir\a\a.txt and dir\a\b.txt will be considered as duplicates but I want dir\a\a.txt and dir\b\a.txt be the duplicates) and also it cannot identify empty files.

How to automatically change folder & file names in CodeIgniter?

I'm preparing all the files for Afghanistan then intending to copy the entire Afghanistan folder and pasting it in other country folders. I have a text editor to change the contents of each file but it wont change the folder & file names.
For example I want the following;
C:\xampp\htdocs\application\views\afghanistan\afcontactus\afcomplaint
\afcontactus\afcomplaint
for Albania changed to;
C:\xampp\htdocs\application\views\albania\alcontactus\alcomplaint
\alcontactus\alcomplaint
and for Algeria changed to;
C:\xampp\htdocs\application\views\algeria\dzcontactus\dzcomplaint
\dzcontactus\dzcomplaint
If CodeIgniter can also change the contents I'll be able to do the lot in one operation.
Can anybody help?

Search multiple strings in eclipse with AND operation

I need to search throughout the work-space for all files containing "file1.txt" AND "file2.txt" as a string. How to achieve this in eclipse search?
possiblly duplicate of Search multiple strings in eclipse but not worked with file names and AND operation.
As far as I know, you can't, but as a workaround :
You could search for file name patterns file?.txt and then in the search view, click on the down arrow icon on the right, display as list and only doubleclick file1.txt and file2.txt matches
You will do two individual searches, one for file1.txt and one for file2.txt, and you will intersect the two results.
Step 1. Export the search results
As pointed out here , you can install the Eclipse Search CSV Export plugin. In the Marketplace, search for 'csv export' - it is the first result. Once installed, just perform a File Search as usual; in the Search Tab, in the bar, click on this icon (screenshot) named 'Export Search Results as CSV' to export the results as a csv file.
Obviously, you will perform a second search, and export those results, too.
Step 2. Convert the .csv file to .xlsx format
As shown here,in the section 'How to import CSV to Excel' , open Excel, go to Data tab > 'From Text', browse the .csv file; in the wizard, choose 'Delimited' (instead of 'Fixed width'), as Delimiters, choose 'Comma', preview the columns and click OK.
Now that you have converted the data into a more readable format, you can also Save as > .xlsx
Two columns are important here, Path and Location. I prefer Location, as it is an absolute location, not project relative.
Sort this column, select all its content, paste the content to a .txt file, save the .txt file. Do the same for your second search.
Step 3. Create the intersection of the lists of the Locations
At the previous step, you have copied the Locations column into a separate file, for each individual search. Navigate to Venn webtools , browse the .txt files and click Submit.The output will show the Intersection and the Differences between the two files. The Intersection represents the Locations of the files that contain BOTH your search strings - a functionality that should have been offered by the IDE. Please note that this tool allows up to 3 files to be uploaded.

C# folder and subfolder

Upon numerous searches, I am here to see if someone has any idea on how I should go about tackling this issue.
I have a folder with sub-folders. The sub-folder containers each has files of different file types e.g. pdf, png, jpeg, tiff, avi and word documents.
My goal is to write a code in C# that will go into the subfolder, and combined all the files into one pdf using the name of the folder. The only exception is that a file such as avi will not be pdf'ed in which case I want a nudge as to which folder it is and possibly file name. I am trying to use the form approach, so that you can copy in the folder pathname and also destination of the created pdf.
Thanks.
to start, create a FolderBrowserDialog to get the root folder. Alternatively just make a textbox in which you paste the folder name ( less preferred since the first method gives you nicer error-handling straight out of the box )
In order to iterate through, see How to: Iterate Through a Directory Tree
To find the filetype, check System.IO.FileInfo.Extension for each file you iterate through. Add those to list with the data you need. ( hint, create a list of objects in which your object reflects the data you need such as path, type etc,... ). If its an avi don't toss it in the list but flash a warning (messagebox?) instead.
From here the original question gets fuzzy. What exactly do you need in the pdf. Just the filenames and locations or do you actually want to throw the actual contents of the file in pdf?