Search found 5 matches

by modulus
24 Jul 2013 10:29
Forum: DOS Batch Forum
Topic: Rename Command
Replies: 7
Views: 7285

Rename Command

This should be easy, but I'm getting stuck somewhere. I'm trying to rename files named VIDEO01234.o3g to IMAG01234.o3g. When I run the command below, VIDEO01234.o3g is being renamed to IMAGO01234.o3g (the "O" still appears). What am I doing wrong?

Code: Select all

rename VIDEO* IMAG*
by modulus
18 Jun 2013 12:40
Forum: DOS Batch Forum
Topic: Remove Last 2 Lines of CSV Files Using For Loop
Replies: 12
Views: 17821

Re: Remove Last 2 Lines of CSV Files Using For Loop

The catch is I'll need to run a few additional commands (delete temp folder, show confirmation message, etc) after the last 2 lines are stripped out of each file. Is there a way where I can run the last 2 lines routine in a loop without using goto:eof?
by modulus
17 Jun 2013 20:45
Forum: DOS Batch Forum
Topic: Remove Last 2 Lines of CSV Files Using For Loop
Replies: 12
Views: 17821

Re: Remove Last 2 Lines of CSV Files Using For Loop

Thank you everybody for your help! I'm getting super close, but still running into a few snags. I'm trying to perform the 3 operations below on a handful of large (200+ MB) .csv files. I'm able to complete 1 and 2, but not 3. I can't seem to get the script to continue running after #2; I assume this...
by modulus
17 Jun 2013 14:40
Forum: DOS Batch Forum
Topic: Remove Last 2 Lines of CSV Files Using For Loop
Replies: 12
Views: 17821

Re: Remove Last 2 Lines of CSV Files Using For Loop

Instead of creating a new .csv file with the last 2 lines removed, is there a way for the script to overwrite each of the original .csv files?
by modulus
17 Jun 2013 10:52
Forum: DOS Batch Forum
Topic: Remove Last 2 Lines of CSV Files Using For Loop
Replies: 12
Views: 17821

Remove Last 2 Lines of CSV Files Using For Loop

Need some help. I'm trying to create a .bat script to automatically scan the current working directory for .csv files and delete the last 2 lines from each file. I successfully created a script to scan all of the .csv files and I created another script to successfully remove the last 2 lines of a si...