?
Solved

File Functions on NT

Posted on 2003-02-20
7
Medium Priority
?
188 Views
Last Modified: 2013-12-25
I need a CGI Script running on NT to do the following:

1.  Delete folder on another NT Box

2.  Create folder on another NT Box

3.  List folder contents on another mt Box

4.  Copy File from one NT Box to another NT Box (and
    NOT loose Date/Time Stamps)

5.  Check file on another Box:
           o Exist
           o Size  
           o Date
           o Time
           o Checksum
0
Comment
Question by:Durell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 7

Expert Comment

by:markhoy
ID: 8016542
If it is running on NT, use the scheduler to run a .wsh file or a .vbs file.

the methods to manipulate files and folders is called FSO; see www.aspfaqs.com > FSO for this.

Test the file as an asp file. then rewrite it as a .wsh file (remove all the server.createObject statements and use createObject instead).

Or you can use a trusty dos file, called as a batch file from the scheduler!
0
 

Author Comment

by:Durell
ID: 8024991
I wanted to keep this within CGI as I already have a cgi script to do some moves between unix & unix...

Yes this script will be running on NT
0
 
LVL 7

Expert Comment

by:markhoy
ID: 8025148
so are you running Perl5 on your NT box?
0
 

Author Comment

by:Durell
ID: 8025199
yes
0
 
LVL 7

Accepted Solution

by:
markhoy earned 400 total points
ID: 8025420
sorry not working on a perl box this week but these should have good stuff:

perlmonks.com or hotscripts.com

also:

perlarchive.com
cgi-resources.com
perlcoders.com
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question