Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I just moved from xp-32bit to W7 64bit and re-installed sox which I use to resample and create spectrogams. The batch-file

cd %~dp0

mkdir converted

FOR %%A IN (%*) DO sox %%A -n spectrogram -o "converted/spectro/%%~nxA.png"

pause

which worked fine with XP produce now an error saying that "sox" is not a valid command. The line

mkdir converted

works fine and the folder is created but "sox" gives an error. Actually with XP the folder was created in the sox folder and now it is created in the same folder as the data to be modified. I browsed this site and found something (I can't seem to find the precise post again) about adding a line under environmental variables, which I did. I added

sox C:\Program Files (x86)\sox-14-4-1\

in the system and user variables, with no success.

My user on the computer is listed as administrator Does anyone have a suggestion about modifying the batch files or configuring my system to get sox working?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.