run dos batch file from cfm page

I have the following that I run from the E drive and I'm doing directly on the server.  I'm logged in as admin too.  It's not working.  It just deletes the file (last line in the batch file).
cfm page:
 
<cfexecute
name="C:\GPG\enc.bat"
timeout="30">
</cfexecute>
 
.bat file:
 
GPG -r pub --output E:\[path]\filename.gpg --encrypt E:\[path]\[dir]
ren E:\vpTwo\[path]\[file].gpg [filename]1%date:~4,2%%date:~7,2%%date:~10,0%.gpg
replace E:\[path]\blank\[dir] E:\[path] /s
del E:\[path]\[filename]

Open in new window

COwebmasterAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SidFishesCommented:
remember that what -you- are logged in as is not relevant, it's the context of the cfservice (localsystem by default)

local system must have permissions for a local operation and if you are using network resources you need to set up cfservice to run as a specific user and assign that "user" permissions



0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
COwebmasterAuthor Commented:
is that through services?  where would I find cfservice?
0
SidFishesCommented:
yes, services.msc


from my blog


To set up the Coldfusion Server service do the following:

   1. Create a standard user in Active Directory (call it CFService)
   2. Select a very strong password and Set Password To Never Expire
   3. Right Click on the directory you want CF to have access to
   4. Select Properties > Security Tab
   5. Click Add
   6. Enter CFService in the box and click OK
   7. Click CFService in the Group Or User Name Window
   8. Check the appropriate permissions (usually Read & Execute, List Folder Contents and Read))
   9. Click Apply and OK
  10. Open services.msc as admininstrator (either logged on or use RunAS)
  11. Right Click Coldfusion 8 ApplicationServer > Properties  and select LogOn Tab
  12. Check This Account and enter the user name as yourDomain\CFService
  13. Enter CFService password twice
  14. Click OK
  15. Restart Coldfusion 8 Application Server service
0
COwebmasterAuthor Commented:
Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.