Internet Computer Mobile Games

Rename folders as files inside

Hi,
i have a problem with rename a lot of folders.

There is a structure of my problem and what i need..

I have many folders..
for example:

folder /0512-2018 contains files 78563412.txt and 78563412.rar

./0512-2018 -- 78563412.txt
-- 78563412.rar

and i need rename this folder as files inside this folder:

./78563412 -- 78563412.txt
-- 78563412.rar

Thanks so much!

Top similar posts to Rename folders as files inside

How can I rename multiple folders and sub-files with a batch script?

I am making a cleanup tool that will delete and rename some specified directories and files. I can individually rename and delete directories and files, but I cannot rename more than one folder, and I cannot rename files within sub-directories. Here is my script: if not exist Plugin mkdir Plugin RENAME "xml" "XML" RENAME "x64\bin.exe" "x64\bin_x64.exe" RANAME "x64" "64bit" RENAME "x86\bin.exe" "x86\bin_x86.exe" RANAME "x86" "32bit" rmdir Licenses /s /q del bin_old.exe del bin_.exe.bak del RE...

Batch Rename all PNG files in folders and subfolders

I am trying to rename all PNG files within several subfolders. See below for my explanation on what I am doing: What is currently in place: COMPANY SERVER1 (Random).png COMPANY2 SERVER32 (Random).png What I want: COMPANY SERVER1 Company - Server1 - (Date PNG Modified).png COMPANY2 SERVER32 Company2 - Server32 - (Date PNG Modified).png How can I accomplish this? The part that I am having trouble with is getting the First and second directory name as well as the date modified that I c...

Cant view any folders or files inside users home folder using testdisk?

I have installed the testdisk using sudo apt install testdisk and using this I want to view and recover some deleted files in ubuntu 16.04. I selected my linux partion in testdisk sudo testdisk /dev/sdax [proceed][enter] [None][enter] [Analyse][enter] [ext4>Quick Search][enter] [ext4][enter] [P] then I went to Directory /home/eka/ where I expected to see Desktop, Downloads plus other folders and files but now I am seeing only these files .ecryptfs .Private README.txt Access-Yo...

Rename all Files and Folders - The Movie - Movie, The

I'm looking for a way to clean up my naming convention in my media folder. For instance: The Thing (1982) |_ The Thing (1982).mkv Thing, The (1982) |_ Thing, The (1982).mkv I've found lots of messages and scripts to rename based on patterns, or folder names, but not something this basic and specific. Basically, Plex sorts 'The' movies and shows correctly, but Emby sorts the shows and movies based on the file/folder naming format. Thus I would like to correct my naming convention. Can anyon...

USB: Folders appear with a padlocked icon, can't paste, delete, rename files

In a previous thread I wrote: "This problem has reappeared again. This time it is on a different USB drive (32GB), it doesn't have the padlocked icons, but the option to paste, delete, rename, are all greyed out. Up until a couple of days ago I could paste files on to it & rename them." I have attached two images, as I have no idea about the questions asked (before I started this as a new thread). Do the images help? It is data on the USB. “Did you try to paste and/or rename as r...

How to make the users of a Custom Group see the folders and files inside a folder, and not be able to open the files?

I need to give permissions to a Custom Group in Active Directory in such a way that the users of that group are able to see the folders and files that are present in the folder, but are not able to open the files. How can I do that? I initially gave List folder contents permission, but that was only displaying the folders and not the files. On the other hand, when I give List folder contents permission for 'This folder, subfolders, and filesfrom underAdvanced Security Settings >> Permission Ent...

Unable to rename files and folders accessed via a junction on Windows 10

I am using an NTFS junction "C:\foobar" to access a folder that actually resides in "C:\Users\myid\Documents\foobar". Trying to sketch this: Code: --------- C:\foobar------------------+ | V C:\Users\myid\Documents\foobar\.....loooong paths here.......

Uncompress several tar.gz files inside several folders on UNIX

Hi, I need to uncompress sevral tar.gz files that are located insides sevral folders using a shell script. Folder tree looks like this : Code: /folder/001 /folder/002 /folder/003 Inside each folder dossier (001,002,003) we can find 1 or several tar.gz files. I've scripted something like this : Code: !/bin/bash liste_fichier="/folder/*" for fichier in $liste_fichier do tar -xzvf $fichier/*.tar.gz --directory $fichier/ done exit Issue: This scripts only works with one tar...

Rename a group of files to a string that exists inside each one

I have a group of json files. Each file contains one json object and they all have the same schema. There is a field in the json that I want to rename the file to. How can I do that? I came up with this solution: find . -name '*.json' | xargs -i mv {} $(cat {} | jq '.billingAccountList[0]' | tr -d \").json But it doesn't work, because cat is trying to interpret the {}. I was hoping the xargs would interpret it instead. It gives me this error: cat: {}: No such file or directory ...

rename folders /files/and thier contents recursively

hey Guys looking for : rename folders /files/and thier contents recursively i have a parent folder with sub files/ directories over 1000. i want : 1- rename all folders & subfolders with name "fire" to "rock" 2-rename all (files names) in all folders/sub folders with name "lion" to "dust" the path is /root/mic i tried many ways and googled much and none worked ! Thanks ...

how to recursively extract where folders are uncompressed but files inside them are compressed.

I have tried everything i know and dozens of old forum posts on this kind of thing...nothing is working. I have uploaded a backup wordpress directory to web server after the existing one was inadvertantly deleted. I dont know why, however, the way in which the backup has archived seems weird and i am unable to get the damn thing to decompress properly. At best, the methods i am currently using decompresses all wordpress directories/subdirectories but ALL the files inside them remain compresse...

Unable to rename files and folders on Windows 10

I have a w10 Pro 64 bit PC and for whatever reason today this machine has decided it wont let me rename files or folders. I built this PC a few months back and it has been operating flawlessly, except now this. When I go to rename a file or folder I get "if you change a file name extension, the file might become unusable. Are you sure you want to change it?" This is the first time I have......

Enumerating files and folders using PowerShell through the Symantec Management Agent is extremely slow and/or times out

The Problem Over the past few days I've been researching an issue with a PowerShell script for custom inventorying "chrome.exe" and "chrome.dll" files located within the Users folder. This custom inventory was needed in order to understand where a per-user installation of Google Chrome was used. In any event, the following sub-section of code was used to seach for the files. $locatedFiles = @(Get-ChildItem -Path $Env:SYSTEMDRIVE\Users\* -Force -Recurse -Include "chrome.exe","chrome.dll" -Er...

How can I convert a folder of audio files into a single file (iterate over many folders)?

I have a couple of radio plays of various series. Some are already single-track, some are multi-track. I want all to be single-track. I don't mind re-encoding; in fact I want to transfer them to my mobile device and prefer opus output. From inside a folder of a single audiobook, this seems to do the trick, converting mp3 to opus: ffmpeg -i "concat:$(ls *.mp3 | tr '\n' '|')" -acodec opus test.opus Now, I really have a lot of multi-track radio-plays that I want to convert. I'd like to define a...

Replace Multiple Instances of Text in Multiple Text Files in Multiple Folders?

I'm creating a bunch of content for a game and have found myself with about 800 simple text files in which "tga" needs to be replaced with "jpg" and would like to automate it to save time. There are multiple files in multiple directories. What's the easiest way to accomplish this? Using Windows 7 Ultimate, 64 bit. The file and folder structure looks like this: workingfolder asset1/2/3folders texture.txt Also, I'm new here so if someone could kindly explain to me what's the de...

Design Apple Development Security Automobile Network Photography Health Money Travel Shopping Issues Operating systems Drivers Software Programming Tech Home Science Sport Solution