> Does this process work on a shared drive provided I have
> authenticated access to the share?
>
> I am trying to issue this command under xp_cmdshell and was
> wondering if you might have a code sample that illustrates
> this technique.
Yes, you can do this. Here's an example. I've created two files:
1. test.cfm, which writes out to a file:
<cffile action="APPEND"
file="\\dave\c$\Inetpub\wwwroot\test\cfml.exe\#URL.myfile#.txt"
output="this is a test"
addnewline="Yes">
2. test.cmd, which is a batch file that calls test.cfm:
SET QUERY_STRING=%1
SET CF_TEMPLATE_PATH=\\dave\c$\Inetpub\wwwroot\test\cfml.exe\test.cfm
C:\CFUSION\BIN\CFML.EXE
Then, from the command line, I can run "test.cmd something", and it'll
create the file something.txt.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists