Filename Related Problems & Solutions

280 tags
Refine Tags
Search Tags:

Start a discussion

Results 1 - 30 of 280
How to write a variable into a text file using batch script
Summary: I have list of files in a particular folder such as filename_yyyymmdd, I should break this filename into two parts such that one variable holds filena...

[Solved] How To rename a text file using Batch
Summary: I am very new to batch files. Could someone help me in renaming a text file in a folder. I have many text files in the folder D:\folders\files the tex...

Remove spaces in file names variable
Summary: :: Removing blank characters in batch :: Remove spaces in filename variable :: http://stackoverflow.com/questions/... SET MyVar="1 2 3 4" set "MyVar=...

[Solved] Batch folder replace/rename .dat
Summary: Hi Folks, Great help so far. What im trying to do is to replace "." and "_" with a space on FOLDERS and not files. I have got the batch file to work ...

[Solved] Move files to multiple folders based on filename
Summary: Hello, would anybody be able to help me with moving files to various folders using a batch file please? I have various reports that are generated as P...

[Solved] Bat File to replace .xml file field with filename.
Summary: I need a batch that will replace the field <title>01x01 - Pilot</title> inside each .xml I want to replace it with the name of the .xml file its...

[Solved] How do I insert a filename into a text file?
Summary: I have a number of .txt files and need to insert the filename of each into the first and second line and add a couple of line breaks. So I need the fi...

[Solved] Odd filename characters I dont see on my keybaord?
Summary: When I save a favorites link in the favorites folder, some have odd characters in the filename that prevent them from getting copied using batch and I...

[Solved] Batch rename to remove (all text in brackets) 400K filenames
Summary: I'm trying to rename approx 400,000 file names to remove all the text in brackets, all the available software just freezes when presented with the tas...

[Solved] Setlocal command preventing exclamations from being replaced
Summary: The below code works fine to replace exclamations found in any filename and replaces them with an "a", however I have a big batch where this code is i...

[Solved] How can I print part of a long line to the output?
Summary: I've successfully used 'findstr /C:"string" *.* > results.txt' to get a file, but the lines are too long. I would like to send to the results file onl...

[Solved] using dir to display filename and no directories?
Summary: dir /b c:\temp >m.txt How can I alter the above command so that any subfolders in the folder c:\temp are not outputted to m.txt. I just want only fil...

[Solved] Removing directory paths in a .txt file
Summary: Is there a similar way to remove the directory paths and leave the filenames intact in a text file just like the below command can be used to remove t...

[Solved] Getting rid of certain lines in a textfile?
Summary: Hello, I hope this isnt too confusing to understand. The file v.txt has 100s of filename destinations. The file z.txt has 3 specific filename destinat...

MS Dos: How to deal with an em dash in a filename
Summary: On a PC with Windows 7, I'm using a simple DOS script to rename some Excel files, pre-pending their parent folder name: for /f "delims=" %%i ...

[Solved] How to apply batch changes to all subfolder files?
Summary: FOR %%a IN (*.jpg) DO ( SET Var=%%~na CALL SET Var=%%Var:)=aaaa%% CALL REN "%%a" "%%Var%%.jpg"...

[Solved] How to get rid of ) in a filename using batch?
Summary: I have 100s of filenames with an end bracket in them. i.e : ")" My batch crashes everytime a filename with an end bracket ) in its name gets used....

Batch only copy new files
Summary: Hi, I would like help to batch the following I have a folder with a subfolder per user. Every user has a folder called waiting and folder called appro...

[Solved] How to Append text to Text File with no new Line using CMD
Summary: Hi, Am trying to append value to a property file "echo content >>filename" its appending content as a new line. But i wish to append the "content" on ...

[Solved] Add Filename As First Line Inside Text File
Summary: Hi, I have about 3000 text file, I want to put every filename at the first line of the text file, can someone help me with this? Thank you ...

[Solved] How to get rid of exclamation in filename using batch file?
Summary: I know how to replace words in a filename using a batch code but removing exclamations doesn't work. Here what I use to remove other characters. echo ...

[Solved] To get the current date in start of the file
Summary: Please help me to write the current date 6/3/2013 in the header of the file in below code. Filename.txt. Const SMTPServer = "mail.xxx.com" Const R...

[Solved] Copy Filename & File Size (ONLY)
Summary: I am trying to use .bat file to grab both the file names and their sizes ONLY. Right now I have a name grabber that will pull just the filenames wit...

[Solved] insert date and hour in macro code for word 2010
Summary: Hello, i am writing for the first time on this forum and i appologise for my english. . I'm glad that i have found a part of the solution for saving...

[Solved] Rename hello.txt to hello2.txt using bat from desktop
Summary: Tried create bat file using this code but it's not working any help? ren C:\Program Files\software\hello.txt hello2.txt and another one can we swap th...

[Solved] Increment backup filename by 1 each day
Summary: I have been poking around various posts but cannot find a solution that fits. I backup a Progress database daily, saving all previous versions by incr...

Batch file to find string?
Summary: Hello!, I have a folder containing this files: filename.ext filename 2.ext xxxx filename.ext filename xxxxxxxx xxxxxxx.ext How to find keywords "filen...

no boot filename on emachine
Summary: I have a emachine with windows 8. I have just turn on and screen shows ( no boot filename received) then next line states exiting boot agent. what do ...

[Solved] Windows equivalent to UNIX 'cat'
Summary: Hi! I want to print code files for a training program. I would like to have line numbers in the printout for each file. All files are text files. On *...

[Solved] Batch File Script to Switch Filenames
Summary: I know this sounds so simple and maybe my brain is just not there today. How could I switch file names between two files. Example. formatted.txt - Fi...

123456789... ⇓

Popular Tags


Ask Question