Go Back   PCMech Forums > Help & Discussion > Software Discussion & Support

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 01-02-2009, 07:29 PM   #1
Member (8 bit)
 
ajd344's Avatar
 
Join Date: Mar 2006
Location: Cincinnati Ohio
Posts: 161
Question Batch file question

Hello all! I'm writing a batch file now and I'm having some trouble with it.

mp3info -p "%t" "C:\Documents and Settings\Andrew\My Documents\song.mp3" > t.txt

If I put this in the command line it does exactly what I need, but in a batch file the output file is blank. If I put it in the batch file without the -p "%t" part, it works fine.

Any ideas? Thanks!
__________________
First Build: Pentium D 805, Asus P5P-800VM, 1GB DDR-400 Dual Channel, LG 16x DVD Burner, 400GB SATA HDD, Antec Earthwatts 400W PSU, ATI Radeon 9550 256mb

Second Build: Core 2 Duo e4300, Asus P5L-VM 1394, 2GB Corsair DDR2-667 Dual Channel, Lite On 16x DVD Burner, 160GB SATA HDD, Xclio 450W PSU, Nvidia GeForce 8400GS 512mb
ajd344 is offline   Reply With Quote
Old 01-06-2009, 08:06 AM   #2
Member (5 bit)
 
Join Date: Jan 2009
Location: Southern California
Posts: 17
Call

Try changing your batch file to this:

CALL "C:\Program Files\whatever\mp3info.exe" -p "%t" "C:\Documents and Settings\Andrew\My Documents\song.mp3" > t.txt

Make sure you have the full path to mp3info.exe in there and don't just copy/paste what I put. Also, make sure the full path to mp3info.exe is in quotes as I have it.
tdotsnoball is offline   Reply With Quote
Old 01-07-2009, 08:01 AM   #3
Come in Ray...
 
faulkner132's Avatar
 
Join Date: Sep 2004
Posts: 1,668
In a batch file you have to escape the '%' sign. Try this:

Code:
mp3info -p "%%t" "C:\Documents and Settings\Andrew\My Documents\song.mp3" > t.txt
faulkner132 is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:38 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2