{"id":76118,"date":"2025-02-11T03:17:16","date_gmt":"2025-02-11T03:17:16","guid":{"rendered":"https:\/\/keys.support\/?post_type=docs&#038;p=76118"},"modified":"2025-02-11T03:17:17","modified_gmt":"2025-02-11T03:17:17","password":"","slug":"prepare-files-for-upload-to-dc-file-server","status":"publish","type":"docs","link":"https:\/\/keys.express\/support\/en\/documentation\/prepare-files-for-upload-to-dc-file-server\/","title":{"rendered":"Prepare files for upload to DC file server"},"content":{"rendered":"\n<p>uploading files from J\u00fcrg&#8217;s backup to new file server filebase24.com<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Save folder names into a text file before renaming<\/h2>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" width=\"497\" height=\"705\" src=\"https:\/\/keys.express\/support\/wp-content\/uploads\/2025\/02\/backup-structure-jurg.png\" alt=\"\" class=\"wp-image-76119\" style=\"width:488px;height:auto\" srcset=\"https:\/\/keys.express\/support\/wp-content\/uploads\/2025\/02\/backup-structure-jurg.png 497w, https:\/\/keys.express\/support\/wp-content\/uploads\/2025\/02\/backup-structure-jurg-211x300.png 211w, https:\/\/keys.express\/support\/wp-content\/uploads\/2025\/02\/backup-structure-jurg-360x512.png 360w\" sizes=\"(max-width: 497px) 100vw, 497px\" \/><\/figure>\n\n\n\n<p>This is the folder structure from the download backup. We need to rename these folder names to remove skus (4-digit numbers), commas and other special characters before uploading it to the linux server via ftp.<\/p>\n\n\n\n<p>Here is a simple <strong>PowerShell script<\/strong> that will:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Iterate through each folder in the specified directory.<\/li>\n\n\n\n<li>Create a text file inside the folder.<\/li>\n\n\n\n<li>Name the text file as <code>xyz.txt<\/code>, where <code>xyz<\/code> is the original folder name.<\/li>\n<\/ol>\n\n\n\n<p>Copy this script into a new text file in notepad called create_folder_info.ps1. Use the actual folder path to the folders you want to rename.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$path = \"C:\\Path\\To\\Your\\Folders\"  # Change this to your actual folder path\n\nGet-ChildItem -Path $path -Directory | ForEach-Object {\n    $folderName = $_.Name\n    $textFilePath = Join-Path $_.FullName \"$folderName.txt\"\n    \n    # Create the text file with the folder name inside it\n    Set-Content -Path $textFilePath -Value $folderName\n}\n\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Task: Generate an FTP Link List for All Files in Subfolders (Windows &amp; Linux)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Objective<\/strong><\/h3>\n\n\n\n<p>We need to generate a list of FTP links for every file in a directory and its subdirectories. This can be done <strong>before uploading (Windows method)<\/strong> or <strong>after uploading (Linux method).<\/strong> The final output is a <code>.txt<\/code> file containing all file links, which can be used for reference or sharing.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Solution 1: Windows Method (Before Uploading)<\/strong><\/h2>\n\n\n\n<p>This method uses <strong>PowerShell<\/strong> to list all files, convert their paths into FTP links, and save them in a <code>.txt<\/code> file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>&#x1f4cc; Steps:<\/strong><\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Open Notepad<\/strong> and paste the following PowerShell script.<\/li>\n\n\n\n<li><strong>Modify the paths<\/strong>:\n<ul class=\"wp-block-list\">\n<li><code>K:\\OS downloads<\/code> \u2192 Replace with your source folder path.<\/li>\n\n\n\n<li><code>ftp:\/\/yourserver.com\/files<\/code> \u2192 Replace with your actual FTP URL.<\/li>\n\n\n\n<li><code>C:\\Users\\YourUser\\Desktop\\file_links.txt<\/code> \u2192 Set the desired output file location.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Save the file as<\/strong> <code>generate_ftp_links.ps1<\/code> (choose <strong>All Files<\/strong> as file type).<\/li>\n\n\n\n<li><strong>Run the script<\/strong>:\n<ul class=\"wp-block-list\">\n<li><strong>Right-click the file<\/strong> and select <strong>Run with PowerShell<\/strong>, or<\/li>\n\n\n\n<li>Open <strong>PowerShell<\/strong>, navigate to the script\u2019s location, and run:powershellCopyEdit<code>.\\generate_ftp_links.ps1<\/code><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Check the generated <code>file_links.txt<\/code><\/strong> for all file paths converted into FTP URLs.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>&#x1f4cc; Windows PowerShell Script<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">powershellCopyEdit<code>$basePath = \"K:\\OS downloads\"  # Change this to your folder path\n$ftpBase = \"ftp:\/\/yourserver.com\/files\"  # Change this to your actual FTP base URL\n$outputFile = \"C:\\Users\\YourUser\\Desktop\\file_links.txt\"  # Change this to your desired output file location\n\nGet-ChildItem -Path $basePath -Recurse -File | ForEach-Object {\n    $relativePath = $_.FullName.Replace($basePath, \"\").Replace(\"\\\", \"\/\").TrimStart(\"\/\")\n    \"$ftpBase\/$relativePath\"\n} | Out-File -Encoding UTF8 $outputFile\n\nWrite-Host \"File list saved to $outputFile\"\nWrite-Host \"Press any key to exit...\" -ForegroundColor Yellow\n$null = $Host.UI.RawUI.ReadKey(\"NoEcho,IncludeKeyDown\")\n<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>uploading files from J\u00fcrg&#8217;s backup to new file server filebase24.com Save folder names into a text file before renaming This is the folder structure from the download backup. We need to rename these folder names to remove skus (4-digit numbers), commas and other special characters before uploading it to the linux server via ftp. Here [&hellip;]<\/p>\n","protected":false},"author":81,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_category":[111],"doc_tag":[735],"knowledge_base":[],"class_list":["post-76118","docs","type-docs","status-publish","hentry","doc_category-admin-tutorials","doc_tag-file-server"],"acf":[],"year_month":"2026-06","word_count":438,"total_views":"243","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"dev_staedeli","author_url":"https:\/\/keys.express\/support\/en\/author\/dev_staedeli\/"},"doc_category_info":[{"term_name":"Admin Tutorials","term_url":"https:\/\/keys.express\/support\/en\/docs\/human-resource\/admin-tutorials\/"}],"doc_tag_info":[{"term_name":"file server","term_url":"https:\/\/keys.express\/support\/en\/docs-tag\/file-server\/"}],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Prepare files for upload to DC file server - Keys Support<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/keys.express\/support\/en\/documentation\/prepare-files-for-upload-to-dc-file-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Prepare files for upload to DC file server - Keys Support\" \/>\n<meta property=\"og:description\" content=\"uploading files from J\u00fcrg&#8217;s backup to new file server filebase24.com Save folder names into a text file before renaming This is the folder structure from the download backup. We need to rename these folder names to remove skus (4-digit numbers), commas and other special characters before uploading it to the linux server via ftp. Here [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/keys.express\/support\/en\/documentation\/prepare-files-for-upload-to-dc-file-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Keys Support\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-11T03:17:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/keys.express\/support\/wp-content\/uploads\/2025\/02\/backup-structure-jurg.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/documentation\\\/prepare-files-for-upload-to-dc-file-server\\\/\",\"url\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/documentation\\\/prepare-files-for-upload-to-dc-file-server\\\/\",\"name\":\"Prepare files for upload to DC file server - Keys Support\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/documentation\\\/prepare-files-for-upload-to-dc-file-server\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/documentation\\\/prepare-files-for-upload-to-dc-file-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/keys.express\\\/support\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/backup-structure-jurg.png\",\"datePublished\":\"2025-02-11T03:17:16+00:00\",\"dateModified\":\"2025-02-11T03:17:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/documentation\\\/prepare-files-for-upload-to-dc-file-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/documentation\\\/prepare-files-for-upload-to-dc-file-server\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/documentation\\\/prepare-files-for-upload-to-dc-file-server\\\/#primaryimage\",\"url\":\"https:\\\/\\\/keys.express\\\/support\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/backup-structure-jurg.png\",\"contentUrl\":\"https:\\\/\\\/keys.express\\\/support\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/backup-structure-jurg.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/documentation\\\/prepare-files-for-upload-to-dc-file-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\\\/\\\/keys.express\\\/support\\\/de\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Prepare files for upload to DC file server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/\",\"name\":\"Keys Support\",\"description\":\"Keys Support and It Works!\",\"publisher\":{\"@id\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/#organization\",\"name\":\"Keys Support\",\"url\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/keys.express\\\/support\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/KE-Logo-en.svg\",\"contentUrl\":\"https:\\\/\\\/keys.express\\\/support\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/KE-Logo-en.svg\",\"width\":248,\"height\":92,\"caption\":\"Keys Support\"},\"image\":{\"@id\":\"https:\\\/\\\/keys.express\\\/support\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Prepare files for upload to DC file server - Keys Support","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/keys.express\/support\/en\/documentation\/prepare-files-for-upload-to-dc-file-server\/","og_locale":"en_US","og_type":"article","og_title":"Prepare files for upload to DC file server - Keys Support","og_description":"uploading files from J\u00fcrg&#8217;s backup to new file server filebase24.com Save folder names into a text file before renaming This is the folder structure from the download backup. We need to rename these folder names to remove skus (4-digit numbers), commas and other special characters before uploading it to the linux server via ftp. Here [&hellip;]","og_url":"https:\/\/keys.express\/support\/en\/documentation\/prepare-files-for-upload-to-dc-file-server\/","og_site_name":"Keys Support","article_modified_time":"2025-02-11T03:17:17+00:00","og_image":[{"url":"https:\/\/keys.express\/support\/wp-content\/uploads\/2025\/02\/backup-structure-jurg.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/keys.express\/support\/en\/documentation\/prepare-files-for-upload-to-dc-file-server\/","url":"https:\/\/keys.express\/support\/en\/documentation\/prepare-files-for-upload-to-dc-file-server\/","name":"Prepare files for upload to DC file server - Keys Support","isPartOf":{"@id":"https:\/\/keys.express\/support\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/keys.express\/support\/en\/documentation\/prepare-files-for-upload-to-dc-file-server\/#primaryimage"},"image":{"@id":"https:\/\/keys.express\/support\/en\/documentation\/prepare-files-for-upload-to-dc-file-server\/#primaryimage"},"thumbnailUrl":"https:\/\/keys.express\/support\/wp-content\/uploads\/2025\/02\/backup-structure-jurg.png","datePublished":"2025-02-11T03:17:16+00:00","dateModified":"2025-02-11T03:17:17+00:00","breadcrumb":{"@id":"https:\/\/keys.express\/support\/en\/documentation\/prepare-files-for-upload-to-dc-file-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/keys.express\/support\/en\/documentation\/prepare-files-for-upload-to-dc-file-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/keys.express\/support\/en\/documentation\/prepare-files-for-upload-to-dc-file-server\/#primaryimage","url":"https:\/\/keys.express\/support\/wp-content\/uploads\/2025\/02\/backup-structure-jurg.png","contentUrl":"https:\/\/keys.express\/support\/wp-content\/uploads\/2025\/02\/backup-structure-jurg.png"},{"@type":"BreadcrumbList","@id":"https:\/\/keys.express\/support\/en\/documentation\/prepare-files-for-upload-to-dc-file-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/keys.express\/support\/en\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/keys.express\/support\/de\/docs\/"},{"@type":"ListItem","position":3,"name":"Prepare files for upload to DC file server"}]},{"@type":"WebSite","@id":"https:\/\/keys.express\/support\/en\/#website","url":"https:\/\/keys.express\/support\/en\/","name":"Keys Support","description":"Keys Support and It Works!","publisher":{"@id":"https:\/\/keys.express\/support\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/keys.express\/support\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/keys.express\/support\/en\/#organization","name":"Keys Support","url":"https:\/\/keys.express\/support\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/keys.express\/support\/en\/#\/schema\/logo\/image\/","url":"https:\/\/keys.express\/support\/wp-content\/uploads\/2025\/02\/KE-Logo-en.svg","contentUrl":"https:\/\/keys.express\/support\/wp-content\/uploads\/2025\/02\/KE-Logo-en.svg","width":248,"height":92,"caption":"Keys Support"},"image":{"@id":"https:\/\/keys.express\/support\/en\/#\/schema\/logo\/image\/"}}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/keys.express\/support\/en\/wp-json\/wp\/v2\/docs\/76118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/keys.express\/support\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/keys.express\/support\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/keys.express\/support\/en\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/keys.express\/support\/en\/wp-json\/wp\/v2\/comments?post=76118"}],"version-history":[{"count":2,"href":"https:\/\/keys.express\/support\/en\/wp-json\/wp\/v2\/docs\/76118\/revisions"}],"predecessor-version":[{"id":82014,"href":"https:\/\/keys.express\/support\/en\/wp-json\/wp\/v2\/docs\/76118\/revisions\/82014"}],"wp:attachment":[{"href":"https:\/\/keys.express\/support\/en\/wp-json\/wp\/v2\/media?parent=76118"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/keys.express\/support\/en\/wp-json\/wp\/v2\/doc_category?post=76118"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/keys.express\/support\/en\/wp-json\/wp\/v2\/doc_tag?post=76118"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/keys.express\/support\/en\/wp-json\/wp\/v2\/knowledge_base?post=76118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}