This works 100%: SET BackupDir=.\QueueManagerBackups\ REM SET MQSERVER=QM1.MS03.CHANNEL/TCP/MyServerName saveqmgrc -m QM1 -f %BackupDir%\QM1_BACKUP.txt -R
This bombs because it can't find the folder called QM1_FOLDER (its not automatically created by the script) SET BackupDir=.\QueueManagerBackups\ REM SET MQSERVER=QM1.MS03.CHANNEL/TCP/MyServerName saveqmgrc -m QM1 -f %BackupDir%\QM1_FOLDER\QM1_BACKUP.txt -R My goal is that this script will try and put the output of the command into a folder called ..\QueueManagerBackups\QM1_FOLDER\, and if the QM1_FOLDER folder does not exist, create it and then stick in there the file QM1_BACKUP.txt. Since this script runs everyday, the next day it should gracefully handle the fact that the QM1_FOLDER is there. Any tips on how to do this? What would I do to the following line to always create the named folder (in this case QM1_FOLDER) if it didn't exist? saveqmgrc -m QM1 -f %BackupDir%\QM1_FOLDER\QM1_BACKUP.txt -R (I have hundreds of entries, so I don't want to have to go into ..\QueueManagerBackups and have to manually create QM1_FOLDER . . . QM999_FOLDER). Peter Potkay MQSeries Specialist The Hartford Financial Services [EMAIL PROTECTED] x77906 IBM MQSeries Certified This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email and delete this communication and destroy all copies. Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive
