• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Run a command line script from CF

New Here ,
Aug 01, 2006 Aug 01, 2006

Copy link to clipboard

Copied

I have a script that I would like to run from my Windows 2000 server running CFMX 6. The way I run the script now is go into windows type cmd then when the command window comes up I execute the script.

This script is going to be getting built dynamically with changing data in it so I want to pull the data from the database, built a script file in CF and then execute the command line script to run.

Please help, thanks in advance.
TOPICS
Advanced techniques

Views

457

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 01, 2006 Aug 01, 2006

Copy link to clipboard

Copied

Have you tried cffile to write the script and cfexecute to run it?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 01, 2006 Aug 01, 2006

Copy link to clipboard

Copied

Create the code and save to a file with the correct extension using <cffile>

Run the script with <cfexecute>

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 02, 2006 Aug 02, 2006

Copy link to clipboard

Copied

LATEST
why not just pass dynamic arguments to a cfexecute command running cmd.exe?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation