Re: Executing TSM commands via BAT file
2003-05-05 14:41:39
Unfortunately Microsoft thinks differently. this example explains how variables
work in MS-DOS environment
C:\>set %z=1
C:\>set z
Environment variable z not defined
C:\>set z=1
C:\>set z
z=1
Regards
Krassi
|---------+---------------------------->
| | Dameon White |
| | <dameon_white@CHA|
| | RTER.NET> |
| | Sent by: "ADSM: |
| | Dist Stor |
| | Manager" |
| | <[email protected]|
| | .EDU> |
| | |
| | |
| | 05/05/2003 02:16 |
| | PM |
| | Please respond to|
| | "ADSM: Dist Stor |
| | Manager" |
| | |
| | |
| | |
|---------+---------------------------->
>-------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: Adsm-L AT Vm.Marist DOT Edu
|
| cc:
|
| Subject: Executing TSM commands via BAT file
|
|
|
>-------------------------------------------------------------------------------------------------------------------------------|
I am trying to redirect my output to a specific folder
(c:\temp\tsmout) and my TSM command is putting the output
file into the c:\ folder.
Does anyone see what I am doing wrong?
set %ID=admin
set %PASS=admin
set %OUTDIR=c:\temp\tsmout
dsmadmc -id=%ID% -pa=%PASS% -outfile=%OUTDIR%\test.txt "q
db"
Output:
c:\tsm\baclient\test.bat
C:\tsm\baclient>dsmadmc -id=admin -pa=admin
-outfile=\test.txt "q db"
Thanks for your help.
DW
|
|
|