Using CFEXECUTE

I am trying to incorporate a cfexecute before running a
cfquery. We do not have MS Access loaded on our web server but the
cmd file basically opens MS Access, runs a macro and then closes MS
Access but it is working.
Following is the cmd file - "C:\Program Files\Microsoft
Office\Office10\msaccess.exe"
d:\inetpub\wwwroot\\departments\NBProdReports.mdb /x mDoTimeRecords
It does not run the .cmd file so that the macro runs. Any
suggestions?

In addition to Mr Black's suggestions, take a look at these
two entries about using cfexecute on Ben Forta's blog
http://www.forta.com/blog/index.cfm/2006/7/31/Using-CFEXECUTE-To-Execute-Command-Line-Util ities
http://www.forta.com/blog/index.cfm/2006/9/11/A-Couple-Of-CFEXECUTE-Gotchas

Similar Messages

  • Using cfexecute to execute dos command in windows.

    Hi!
    Well i have a requirement where i need to check status of
    particular service in windows from time to time.
    I inferred that we can use cfexecute for this. Well i tried
    to use the same but i was not successful in achieving the desired
    result.
    The following is the code i have written for the above
    purpose.
    <cfexecute name="sc query Internet Information Services"
    arguments="y"
    outputfile="d:\Temp\Output.txt"
    timeout="90" />
    I get the following message:
    oldfusion.tagext.lang.ExecuteTag$TimeoutException: Timeout
    period expired without completion of sc query Internet Information
    Services
    at
    coldfusion.tagext.lang.ExecuteTag.doStartTag(ExecuteTag.java:170)
    at
    cfserverchecking2ecfm748178803.runPage(D:\Test\serverchecking.cfm:3)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
    at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
    well i have tried using different timeout periods but it dint
    work for me.i have gone crazy with it.
    Please advice on this.
    Many thanks.

    In addition to Mr Black's suggestions, take a look at these
    two entries about using cfexecute on Ben Forta's blog
    http://www.forta.com/blog/index.cfm/2006/7/31/Using-CFEXECUTE-To-Execute-Command-Line-Util ities
    http://www.forta.com/blog/index.cfm/2006/9/11/A-Couple-Of-CFEXECUTE-Gotchas

  • Using cfexecute to start FMLEcmd.exe

    Hi!
    I'm trying to use <cfexecute> to start the command line utility to start a fmle session.
    Coldfusion is running locally of course not on a remote server :-)
    I am trying to use Coldfusion to make a sort of an easy start stop interface for the FMLE.
    I could just run it in the command window (cmd.exe), but I'm trying to make it look a bit more "sexy".
    So far it is not working out too good I'm affraid :-(
    I was wondering if anyone could help.
    Here is the code:
    <cfexecute name="C:\Program Files (x86)\Adobe\Flash Media Live Encoder 3.2\FMLECmd.exe"
    arguments="/p C:\Coldfusion10\cfusion\wwwroot\simpleovp\test.xml"
        variable="data"
    timeout="10" />
    <cfoutput>#data#</cfoutput>
    Here is the typical output:
    Adobe(R) Flash(R) Media Live Encoder Command Line Utility v 3.2.0.9932 Copyright(C) 2009-10 Adobe Systems Incorporated. All rights reserved. Thu Dec 06 2012 19:12:38 : Audio Settings :- Device : Microphone (USB Audio Device) Format : Mp3 Mono Sample Rate : 22050 Hz Bit rate : 48 Kbps Volume : 75 % Stream to Flash Media Server :- FMS URL : rtmp://flhub0.c07147.cdn.qbrick.com/07147 Backup URL : Stream Name: norstat1,0lfasaud Thu Dec 06 2012 19:12:38 : Selected audio input device: Microphone (USB Audio Device) Thu Dec 06 2012 19:12:38 : FMLE with UID "rtmp://flhub0.c07147.cdn.qbrick.com/07147+norstat1,0lfasaud" is already registered in Shared memory. Please try changing your first output streamname or filename(if not streaming to FMS). Stopping encoding session. Thu Dec 06 2012 19:12:38 : Closing Application.
    I thought it might be that cf did not have sufficient user righs to run this properly because the profile is running just fine in a command line window (cmd.exe).
    I went in and changed the Log on as in the Coldfusion Application Server service to an account with admin rights, rebboted, but are getting the same result.
    Any ideas?
    Thanx.
    J

    Let me know If you find a solution.

  • Execute .bat file using cfexecute tag...

    Hello,
    I am trying to execute a batch file using cfexecute tag. This
    batch file needs 1 command line arguement, which I am passing using
    arguments
    Text attribute.
    When I run my batch file directly from command prompt, it
    works perfectly. but while using cfexecute, it doesn't seem to do
    anything.
    Note:- I am trying to encrypt a txt file using GPG algorithm
    in the batch file.
    Thanks in advance!
    Manju

    Hello,
    you have probally worked this out but if any of this helps :)
    I run an application that needs to print via dos command, so
    my cfm page makes a batch file writes some arguments to it then
    calls it with a cmd. the code is below if any of it helps im glad.
    (creates name for my bat file)
    <cfset BFname = '#namevariable#' & '.bat'>
    (sets up the text I need in the bat file)
    <cfset content = 'copy
    "c:\inetpub\wwwroot\mct\picklist.txt"
    \\MyPrintServer\ThePrinter'>
    (writes the bat file with the text in the content var)
    <cffile action="write"
    file="c:\inetpub\wwwroot\mct\#BFname#" output="#content#">
    (calls cmd to run the bat file)
    <cfexecute name="c:\windows\system32\cmd.exe"
    arguments="/c c:\inetpub\wwwroot\mct\#BFname#"
    outputfile="c:\inetpub\wwwroot\mct\log_output.txt"
    timeout="1"></cfexecute>
    Regards Guy

  • Import a CSV text file into SQL Server using DTS

    Hi,
    This may be a silly question but im gonna ask it anyway!
    What i need to do is execute a DTS package from a CF page to read a text file and import its content to a table. I have 100's of txt files with 10,000's of rows.
    The reason i think this is a silly question is because when setting the DTS package in SQL Ent, you have to specify the file name of the file you wish to import data from, therefore, its possible that you cannot change the file name. Ive done lots of research and not found one example that will allow me to do dynamically change the file name making the DTS pick up a different file. The only code ive found is as below, that executes the DTS and imports the data obtained from the file name that was set when the DTS package was created.
    <cfobject
    type="COM" name="objDTS" class="DTS.Package" action="CREATE">
    <CFSET
    r = objDTS.LoadfromSQLServer("[SERVERNAME]","[PASSWORD]","",0,"","","","[DTSPACKAGE]","")>
    <cfset
    p = objDTS.Execute()>
    I found the following suggestion in a forum somewhere, but ive not had much luck with it
    <cfset
    objDTS.GlobalVariables.Item("filename").Value = "[statsFileName]">
    I know an alternative to this is to read the file using CFfile or using Java and insert one by one, i dont dont like that method as it could cause performance issues with my server.
    Hope someone can help me out.
    regards
    d

    Questions:
    1. What version of SQL Server are you using?
    2. Are you required to use a specific DTS package or do you simply need to import data from a file to a table?  You might also consider using the bcp utility or, if you are using 2005 or newer, integration services.
    3. Is the uploading of files and the import of data a manual process or is it automated?  Is there a user uploading one file at a time to your server or do you receive files in batches.  Can you describe the work flow?
    You might try the following if you are required to use DTS:
    1. Upload your text file with CFFILE, putting in the directory expected by your DTS package.
    2. Rename the file to the name required by your DTS package
    3. Use CFEXECUTE to run the DTS package by calling dtsrun at the command line.
    dtsrun
    http://msdn.microsoft.com/en-us/library/aa224467%28SQL.80%29.aspx
    bcp
    http://msdn.microsoft.com/en-us/library/aa174646%28SQL.80%29.aspx

  • Cfexecute process hangs

    I'm using CF 8 and have a simple script that uses cfexecute to invoke a FoxPro executable that resides on the server.  The server is a Windows 7 machine, and when I call the script from the browser I can see the process running in Task Manager but it is hung and doesn't do anything.  I have to manually kill it.  No errors are being generated that I am aware of - no errors reported in the Event Viewer or in Process Monitor.  Coldfusion is running the process under the System account, so I think it should have plenty of privileges.  The cfexecute statement is:
        <cfexecute name = "C:\Temp\Simple.exe"
            arguments = ""
            outputfile="c:\temp\Simple.log"
            timeout = "30">
        </cfexecute>
    Any help will be appreciated.

    You say "System Account" which account is that? I have found that most of the time these issues have to do with permissions, try running the CF Process in an Administrator account and see if that works.  Also double check that the running simple.exe from command line works.
    I have also found that if it is a program that is designed to run from command line you need to cfexecute cmd rather than the program directly.
    <cfexecute name="C:\WINDOWS\system32\cmd.exe" arguments="/c C:\Temp\Simple.exe" variable="return" timeout=30></cfexecute>
    <cfoutput>
    <pre>
    --- Message from Simple.exe----
    #return#
    --- End Message from Simple.exe----
    </pre>
    </cfoutput>

  • Cfexecute, batch file, and a ftp script

    I have a batch file which works fine when entered in at the
    command prompt;
    C:/temp/mybat.bat
    but when I use cfexecute it fails.
    Now this may be more of a case of what I am calling than CF
    itself.
    here is the output:
    C:\CFusionMX7\runtime\bin>"C:\Program
    Files\Ipswitch\WS_FTP Professional\ftpscrpt" -f
    C:\temp\poolsite.scp Processing Line 1 [CONNECT pacmed -p] Finding
    Host poolsite... Address lookup of "poolsite" failed. It may be
    misspelled, or your computer may not be connected to the network or
    Internet. Also check that your DNS and local name servers are
    properly configured and responding. Failure in command [CONNECT
    poolsite-p] Processing Line 2 [ONSUCCESS SHELL C:/temp/remove.bat]
    Set [ONSUCCESS] action to [SHELL C:/temp/remove.bat] Processing
    Line 3 [MPUT c:/temp/apptTxfr/*.*] Not Connected Failure in command
    [MPUT c:/temp/apptTxfr/*.*] C:\CFusionMX7\runtime\bin>ECHO OFF
    the very odd thing, is again, when I call this from a command
    line, it works fine.
    are there any wrappers or special ways I need to encapsulate
    this when using cfexecute?

    Thank you for the suggestions. The odd thing though, is it
    looks like it calling the batch file just fine. It's just that for
    whatever reason, the ftp client isn't getting fed the paramters
    correctly. Ie
    Processing Line 1 [CONNECT poolsite-p] Finding Host
    poolsite...
    passing -p tells the ftp client to use a prefdefined site
    profile (poolsite), instead of using the hostname poolsite.
    Basically it is if for whatever reason the ftp program is not
    reading it''s scp file correctly when invoked from CF.
    I'll check out the permissions and report back.
    thanks for the suggestion.

  • CF10 enterprise - how to disable cfexecute for all sites (sandbox)

    Hello,
    I have a new CF10 server which I will be using as shared hosting for my clients.
    I would like to disable the following tags and functions globally:
    TAGS
    CFCONTENT
    CFFILE
    CFDIRECTORY
    CFEXECUTE
    CFOBJECT
    CFREGISTRY
    FUNCTIONS
    GetProfileString
    SetProfileString
    CreateObject
    I know in CF10 Standard I can block these for all sites using 'resource security', this will stop these tags from running at all.
    In CF10 Enterprise I have the option to create multiple sandboxes, but is it possible to create one global sandbox for all sites?
    My directory structure looks like:
    D:\sites\site1
    D:\sites\site2
    D:\sites\site3
    Can I create a sandbox disabling the above tags and functions just for D:\sites and all subfolders?
    I have tried but it does not seem to work - I have a sandbox setup for D:\sites with the above tags and functions disabled, but using a test script I can still use cfexecute in site1 to execute netstat.
    I do not wish to create a sandbox for each site as when new sites are added I would need to manually add a sandbox each time.
    If anyone has any ideas it would be most appreciated.
    Cheers
    Luke
    ( I have asked this in a different place on the CF forums as got no response, i think because I placed it in the wrong place. Sorry if this double post upsets anyone but I need some help!)

    D:\sites\site1
    D:\sites\site2
    D:\sites\site3
    If you define the sandbox to sites folder, then the settings also apply to sub-directories (as the sub directories will inherit the property from parent).
    It is working at my end perfectly fine.
    HTH
    Thanks
    VJ

  • CFexecute, cfx_consolecommand dos/bat file error

    Good day all. i have a really confussing problem... Let me
    break it down
    I have written an application that requires barcodes. My
    Printer is a PPLB printer (not really important). So i create a
    file on the server (This is about all that works fine).....
    The printer is a network printer. so on the server i set up
    the capture " net use LPT2
    \\<machinename>\\<printersharename> /persistent:yes
    (What the above does for those that do not know is set up a
    vitual printer port so if you print to lpt2 it goes to the network
    printer)
    The command works perfectly..... Now the only thing i have to
    do is send the file to the printer....
    If im on the server and type "COPY /B c:\filetosend LPT2: "
    note the Colon after LPT2 must be there it works perfectly.
    But from anything else it doesnt..
    What i have tried:
    1) I tried running the command via cfexecute and
    CFX_consolecommand which is available at
    www.intrafoundation.com
    that however does not work
    2) Thinking i was smart i decided to write a bat file....
    Easy. I wrote the file then used cfexecute and consolecommand to
    run the file. With output enabled The error says "File Not Found"
    This i have checked the file is there and LPT port is setup.
    As i said if i type the command in command prompt it works
    perfectly.
    Now just to through another spanner in the works. if i run
    the bat file from double clicking in windows or in command propt
    type print.bat. (the name of the bat file i created) it works
    perfectly..... Can someone explain this
    So what i have determined is that:
    1) When i type the command or run the bat file from command
    prompt it works.
    2) It does not work via cfexecute or commandconsole.
    With some more testing If i leave the colon out after LPT2 it
    says "0 Files Copied" so i think the colon is giving the problem...
    Any help would be appreciated with this regard....
    Another program maybe etc
    Regards

    ShapeShift,
    Are you running the batch file or the dos command while
    logged in as the
    same user ColdFusion service is configured to run under? If
    ColdFusion
    is running under the default "Local System" account, try
    turning on the
    "Allow service to interact with the desktop" checkbox on the
    "Log On"
    tab for the ColdFusion service, or set the service to log in
    with an
    account you know has permissions to the remote printer.
    HTH,
    Carl
    ShapeShift wrote:
    > Good day all. i have a really confussing problem... Let
    me break it down
    >
    > I have written an application that requires barcodes. My
    Printer is a PPLB
    > printer (not really important). So i create a file on
    the server (This is about
    > all that works fine).....
    >
    > The printer is a network printer. so on the server i set
    up the capture " net
    > use LPT2 \\<machinename>\\<printersharename>
    /persistent:yes
    >
    > (What the above does for those that do not know is set
    up a vitual printer
    > port so if you print to lpt2 it goes to the network
    printer)
    > The command works perfectly..... Now the only thing i
    have to do is send the
    > file to the printer....
    >
    > If im on the server and type "COPY /B c:\filetosend
    LPT2: " note the Colon
    > after LPT2 must be there it works perfectly.
    > But from anything else it doesnt..
    >
    > What i have tried:
    > 1) I tried running the command via cfexecute and
    CFX_consolecommand which is
    > available at
    http://www.intrafoundation.com
    that however does not work
    >
    > 2) Thinking i was smart i decided to write a bat
    file.... Easy. I wrote the
    > file then used cfexecute and consolecommand to run the
    file. With output
    > enabled The error says "File Not Found" This i have
    checked the file is there
    > and LPT port is setup.
    >
    > As i said if i type the command in command prompt it
    works perfectly.
    >
    > Now just to through another spanner in the works. if i
    run the bat file from
    > double clicking in windows or in command propt type
    print.bat. (the name of the
    > bat file i created) it works perfectly..... Can someone
    explain this
    >
    > So what i have determined is that:
    > 1) When i type the command or run the bat file from
    command prompt it works.
    > 2) It does not work via cfexecute or commandconsole.
    >
    > With some more testing If i leave the colon out after
    LPT2 it says "0 Files
    > Copied" so i think the colon is giving the problem...
    >
    > Any help would be appreciated with this regard....
    > Another program maybe etc
    >
    > Regards
    >
    >
    >

  • Cfexecute powershell timeout

    First let me say that I am a novice when it comes to Powershell and cfcexecute, though I've been using CF on and off since version 4.
    I have a PowerShell/Migration shell console file script that updates email passwords on our MSOnline instance.  It works fine if I run it from the run or command line in Windows, but from cfexecute in Coldfusion 9.0.1 it times out.  If I set the timeout to 0 the timeout is ignored, but I'll have no idea if it ran.  The odd thing is that the code actually does its job, but it leaves both the cmd.exe and powershell.exe processes running and I never get a return code regardless of how long I set the timeout.  I have tried all of the /c, 2>$1, exit code, etc., I could find, but none of them seem to work.
    I have also tried running the console script from a bat file and directly running Powershell command, but I get the same result when using cfexecute.  Besides being over 87MB per instance Powershell, I really don't want to leave a bunch of orphaned processes running.
    I'm sure there are better ways of doing this.  Any thoughts would be appreciated.
    Thanks,
    Byron

    Try the tip from James in the comments of this Ben Forta entry.  ie Add the "-inputformat none" paramater.
    ie
    <cfexecute name="c:\path\to\powershell.exe"
            arguments="-inputformat none c:\path\tosomeFile.ps1"
         />

  • Cfexecute not executing

    I have read many threads on this, tried all recommended
    solutions, still a 'no go'.
    On windows server 2003, using cfexecute trying to run a .exe
    (which runs nicley from command prompt,
    same login) as a user with admin perms. CF throws no errors,
    just sits as a running process but does not run the .exe.
    However, I can execute a .bat file that does basic "dir"
    directory listing and other commands. But critical I get the
    .exe running.
    What gives ? Help !

    While reading through people's various experiences with
    CFEXECUTE not performing as expected in this thread and others, I
    noted someone indicated that in his trials he could get .bat files
    to execute but not .exe files. We have had a working CF application
    for years using CFEXECUTE with a Windows utility (fc.exe) to
    compare files and capture the output in the CFEXECUTE VARIABLE
    attribute. Very recently, I tried using CFEXECUTE with a .exe file
    compiled by one of our faculty (written in C++) to process some
    student-submitted data on our physical server, and it initially
    appeared to me that CFEXECUTE simply was not executing.
    During one of my tests and recalling the information stated
    above, I encompassed (out of desperation more than anything else)
    my executable within a command file (see code immediately
    following).
    Contents of wine.cmd:
    wine.exe
    I then executed the above command file from within my
    CFEXECUTE tag and was startled to see on the subsequent Web page
    the following response:
    C:\Program Files\CFServer\runtime\bin>wine.exe
    Our entire Web server root and all our Web server documents
    including the relevant CF application are stored on a different--D
    I F F E R E N T--logical drive so why in heaven is CF trying to run
    wine.exe on the C: drive? I still have no idea, but suspect some
    bug within the CF server itself since some .exe files execute
    completely as expected while other .exe files result in the odd
    behavior just described.
    My solution was to alter my command file so that wine.exe
    executed from the local directory (local to my Web application).
    See adjusted command file below.
    Adjusted contents of wine.cmd:
    D:
    cd \WebRoot\depts\mss\EA\FWR\
    wine.exe
    Now by executing the adjusted wine.cmd file within CFEXECUTE,
    everything works as expected. I will post this response to at least
    one other thread on this topic.

  • Cfexecute permission

    Hi,
    I am trying to run the following C:\temp\test.bat file using cfexecute
    @echo off
    start iexplore.exe www.google.com
    <cfexecute name = "c:\temp\test.bat" timeout="1"></cfexecute>
    The test.bat file opens up internet explorer when I call it from a Windows command, but the CF script does not do anything.  When I googled the problem, a couple people suggested that it might be a permission issue, ie. ColdFusion service does not run as admin in Windows. However, there is no mention of how to fix it.
    My questions are:
    1. Is this true that CF service does not run as admin eventhough me as the user is an admin?  I have no problem with cffile writing to C:\temp.
    2.  How do I run CF service as an admin?  I use Windows Vista as my OS.
    Thank you!

    What exactly does this client program do? Does the client program already exist?
    Although it doesn't happen by default, in some cases it's possible for a Windows service to interact with the desktop (even if it's running as SYSTEM). I just mentioned that briefly in another response in this thread, but basically you want to enable the "interact with desktop" option for that service if it exists.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/
    Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
    GSA Schedule, and provides the highest caliber vendor-authorized
    instruction at our training centers, online, or onsite.
    Read this before you post:
    http://forums.adobe.com/thread/607238

  • Spellcheck and CFExecute

    I am using Coldfusion8 and I am trying to implement a
    spellchecker in the FCKEditor. I cannot use ASpell and the
    SpellerPages option as it uses CFExecute and I cannot use that tag
    on my server. Does anyone know of any other spell checker that can
    be used by FCKEditor that doesn't use CFExecute?
    Thanks

    See here:
    http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Configuration/Spell_Checker
    The first one listed, ieSpell, is client side and only works
    on Internet Explorer, but it would suit your needs for that
    purpose.
    AFAIK all server-side versions require something akin to a
    server-side install or use of CFExecute, neither of which a shared
    host will be keen on.

  • Cfsearch error: status code -1706

    CF7.0.2 update level hf702-65114.jar (Standalone server on
    Windows 2003)
    Type: SearchEngine
    Message: There was a problem executing the CFSearch tag with
    the following collections.
    Detail: Collection (status code): MyCollectionName (-1706)
    Since re-creating a set of about 12 collections in a
    different folder (same drive), I've been getting the above error
    the first time CFSEARCH is invoked following an update of *any*
    collection (not necessarily the one mentioned in the error.
    Re-indexing or re-creating the named collection does *not* fix the
    problem: CFSEARCH will continue to fail - so it's not corruption.
    Re-starting the CF Search Service however does fix it... until the
    next time one or more collections are updated.
    I am now auto-restarting the CF Search Service using
    cfexecute after each update but this is not ideal, and in fact just
    now it seems to have had no effect: the tag has errored again
    apparently in spite of the restart after the update.
    I've searched for Verity status code 1706 but can find
    nothing. Can anyone shed any light?

    Sure:
    1) Create a batch file (using Notepad but save file as
    "restartCFsearch.bat") to restart the Windows service and make sure
    the CF service account has execute permissions for it (if it's
    running as local system then it will have)
    NET STOP "ColdFusion MX 7 Search Server"
    NET START "ColdFusion MX 7 Search Server"
    2) Optionally create a function which executes the batch file
    (or you could just put the cfexecute directly in the exception
    handler, but creating a function will make it more re-usable):
    <cffunction name="restartCFSearchService"
    returntype="void" access="public" output="false">
    <cfexecute name="[path to your batch file, eg:
    D:\batch\restartCFsearch.bat]" timeout="30"></cfexecute>
    </cffunction>
    3) Wrap your cfsearch tag/function in a try/catch and test
    for the error:
    <cftry>
    <cfsearch... >
    <cfcatch type="SearchEngine">
    <cfif findNoCase("There was a problem executing the
    CFSearch tag",cfcatch.message)>
    <cfset restartCFSearchService()>
    <cfset sleep(3000)><!--- wait 3 seconds for the
    service to come back up --->
    <cfsearch...><!--- re-issue search --->
    <cfelse>
    <cfrethrow>
    </cfif>
    </cfcatch>
    </cftry>
    To pause before re-issuing the search I'm using
    http://www.cflib.org/udf.cfm/sleep
    Hope that helps.

  • Import(insert) formatted text(HTML) into document

    Hi guys, I have faceed with folowing problem:
    how to insert into text frame formatted text ?
    At Indesign desktop version this feature was able through pasting HTML from clippboard with appropriate settings of clippboard preferences. But at server version there is no such function.
    I have also invesigated XML import:  you can set up text and paragraph styles and map them with tags but this technique doesnt support nested styles for instance if you have <b><i>xxx</i></b> and appropriate styles "b" and "i" i will be applied to "xxx".
    So I need to insert html as it did clipboard pasting.
    Any thoughts ?

    Questions:
    1. What version of SQL Server are you using?
    2. Are you required to use a specific DTS package or do you simply need to import data from a file to a table?  You might also consider using the bcp utility or, if you are using 2005 or newer, integration services.
    3. Is the uploading of files and the import of data a manual process or is it automated?  Is there a user uploading one file at a time to your server or do you receive files in batches.  Can you describe the work flow?
    You might try the following if you are required to use DTS:
    1. Upload your text file with CFFILE, putting in the directory expected by your DTS package.
    2. Rename the file to the name required by your DTS package
    3. Use CFEXECUTE to run the DTS package by calling dtsrun at the command line.
    dtsrun
    http://msdn.microsoft.com/en-us/library/aa224467%28SQL.80%29.aspx
    bcp
    http://msdn.microsoft.com/en-us/library/aa174646%28SQL.80%29.aspx

Maybe you are looking for