Windows Scripting
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationWindows Scripting

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 24th, 2007, 06:07 AM
b00gieman's Avatar
b00gieman b00gieman is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Location: Europe
Posts: 232 b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level)b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level)b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level)b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level)b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level)b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level)b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level)b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 11 h 41 m 27 sec
Reputation Power: 109
Copy files between servers

Hi!
I have an ASP application.In this application,I tried to copy files between servers using fso.This didn't worked,as the account used by the application hasn't got enough rights to copy files between servers.Is there another way to copy the files(I thought using an scheduled application to do this , an application independent from the asp page)?

Reply With Quote
  #2  
Old September 24th, 2007, 03:56 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 23 h 19 m 36 sec
Reputation Power: 181
Your only solution is to give proper permissions to your code, regardless of scheduling or not. You can make a stand-alone script that runs as a different user, and schedule using the user with permissions, but you'll need admin access to the web server to do this and if your code uses any asp built-in objects like session, request, etc., you won't be able to use those object from a stand-alone script.

Or you could force your asp page to prompt for authentication as a user with sufficient permissions to do the copy.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #3  
Old September 25th, 2007, 03:09 AM
b00gieman's Avatar
b00gieman b00gieman is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Location: Europe
Posts: 232 b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level)b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level)b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level)b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level)b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level)b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level)b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level)b00gieman User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 2 Days 11 h 41 m 27 sec
Reputation Power: 109
Could I do something like this:when the user saves a file to the disk,automatically a task is being performed(copy the files)?

Reply With Quote
  #4  
Old September 25th, 2007, 08:26 AM
Nilpo's Avatar
Nilpo Nilpo is offline
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 1,048 Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)Nilpo User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 5 Days 12 h 32 m 33 sec
Reputation Power: 555
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo
MySpace
Quote:
Originally Posted by b00gieman
Could I do something like this:when the user saves a file to the disk,automatically a task is being performed(copy the files)?
Yes. This can be done if you use event-based WMI scripting. Take a look at my articles.

Event Scripting with WMI

More Event Scripting with WMI
__________________
Click the image if at any point you don't like my decision.

Scripting problems? Windows questions? Ask the Windows Guru!


Reply With Quote
Reply

Viewing: ASP Free ForumsSystem AdministrationWindows Scripting > Copy files between servers


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT