TeaAddictedGeek
Programmer
When I open up the row of data, the date and ID number are there, but the data cell is blank--and that's the important part! The data variable is a text one, and should be picking up the output of the executed statement.<br>
<br>
I'm at my wit's end trying to figure out why this is. My code is below. Can anyone help?<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<cfloop query="source"> <!--- begin CFLOOP query source ---><br>
<P><center><br>
<font class="partnersbody"><h3>Checking source and destination(s)....</h3></font><br>
</center><P><br>
<cfif d_id is " "><br>
<cfabort><br>
</cfif><br>
<br>
<P><center><br>
<font class="partnersbody"><h3>Successful copy!</h3></font><br>
</center><P><br>
<cfquery datasource="wl_application" name="copy"><br>
exec master..xp_cmdshell 'robocopy #source.s_path# #source.d_path# *.* <cfif source.s_recurse IS "1">/E</cfif>'<br>
<br>
</cfquery><br>
<pre><br>
<br>
<cfoutput query="copy">#copy.output#<br></cfoutput><br>
<br>
<cfquery name="update" datasource="wl_application"><br>
<br>
insert into repl_log(data)<br>
values('#copy.output#') <br>
</cfquery><br>
<br>
</pre><br><br>
</cfloop>
<br>
I'm at my wit's end trying to figure out why this is. My code is below. Can anyone help?<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<cfloop query="source"> <!--- begin CFLOOP query source ---><br>
<P><center><br>
<font class="partnersbody"><h3>Checking source and destination(s)....</h3></font><br>
</center><P><br>
<cfif d_id is " "><br>
<cfabort><br>
</cfif><br>
<br>
<P><center><br>
<font class="partnersbody"><h3>Successful copy!</h3></font><br>
</center><P><br>
<cfquery datasource="wl_application" name="copy"><br>
exec master..xp_cmdshell 'robocopy #source.s_path# #source.d_path# *.* <cfif source.s_recurse IS "1">/E</cfif>'<br>
<br>
</cfquery><br>
<pre><br>
<br>
<cfoutput query="copy">#copy.output#<br></cfoutput><br>
<br>
<cfquery name="update" datasource="wl_application"><br>
<br>
insert into repl_log(data)<br>
values('#copy.output#') <br>
</cfquery><br>
<br>
</pre><br><br>
</cfloop>