Hi all,
I have the following simple cmd. script:
@ECHO OFF
copy "C:\Program Files\Microsoft Visual Studio 8\VC#\CSharpPro jects\date_stri ng\date_string\ bin\Release\dat e_string.exe" c:\temp
set variable=c:\tem p\date_string.e xe
set AGCLOG="C:\RCP VIEWER PARSER\report.t xt"
echo Setting the variable...
echo --- start ----- >> %AGCLOG%
echo %variable% >> %AGCLOG%
echo --- end -----
pause
The date_string.exe programm converts the current date to a string and return it. But when I assign the return value to the variable "variable" it doesn't work. The output in the report.txt is the following:
--- start -------
c:\temp\date_st ring.exe
i.e the result of date_string.exe is not passed to the variable.
Any ideas how can I assign the return value of the function to the variable.
Thanks in advance.
Iliya
I have the following simple cmd. script:
@ECHO OFF
copy "C:\Program Files\Microsoft Visual Studio 8\VC#\CSharpPro jects\date_stri ng\date_string\ bin\Release\dat e_string.exe" c:\temp
set variable=c:\tem p\date_string.e xe
set AGCLOG="C:\RCP VIEWER PARSER\report.t xt"
echo Setting the variable...
echo --- start ----- >> %AGCLOG%
echo %variable% >> %AGCLOG%
echo --- end -----
pause
The date_string.exe programm converts the current date to a string and return it. But when I assign the return value to the variable "variable" it doesn't work. The output in the report.txt is the following:
--- start -------
c:\temp\date_st ring.exe
i.e the result of date_string.exe is not passed to the variable.
Any ideas how can I assign the return value of the function to the variable.
Thanks in advance.
Iliya
Comment