View Full Version : Another batch job question
24giovanni
07-12-2006, 01:21 PM
Hi, I am trying to create a 2 batch files. One to automate directory and folder creation and placement in hierarchical tree structure. It has to be at least a 3 Tier tree of folders. The other is to create a separate batch file to automate removal of bottom two tiers. I appreciate any and all help Sorry for asking for some much help on the subject. I just am having a hard time picking this stuff up.
Paul Komski
07-12-2006, 02:35 PM
This is ultra simple but should give you the general idea.
make_em.bat
C:
md top
cd top
md middle
cd middle
md bottom
scrub_em.bat
C:
cd top
rd /s /q middle
rd /s in WinXP is like deltree in DOS and the /q switch removes being prompted to continue in WinXP whereas it takes the /y switch when using Deltree in DOS.
24giovanni
07-13-2006, 04:12 PM
I created a batch job. Everything works fine but I can't get the sound part of it to work.
Here is my syntax:
@echo off
cls
cd\
cd batch
type 8.txt
cd\
cd sounds
ohno
cd\
cd batch
menu.bat
Any help is greatly appreciated. TIA
Paul Komski
07-13-2006, 05:39 PM
Unclear what you mean. From your syntax it looks as if you want to change to a directory called sounds containing an unknown program called ohno and then run it.
24giovanni
07-13-2006, 05:52 PM
there are files in my sound directory and one is called ohno but I can't here through system speaker or through speakers i connected to my pc? Is my syntax correct?
Paul Komski
07-13-2006, 06:03 PM
There is no direct association between files of a particular type and a program that uses them as when within windows. If the sound application can be given an appropriate command line and switch it should work. What application were you hoping to use?
http://support.microsoft.com/KB/241422 for Windows Media Player
vBulletin v3.6.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.