Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Creating an HTA to Move Files

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,31602
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Creating an HTA to Move Files
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Creating an HTA to Move Files - 2/27/2006 12:34:17 PM   
  Navarre

 

Posts: 90
Score: 0
Joined: 10/19/2005
Status: offline
Hello guys,

I have a small problem that I am not sure on how I go about achiving.

What I need to is create a HTA to that gives the user the option of moving files from specific directories and moving to another directory.

Currently my directory structure looks like this -

K:\Files
K:\NZ
   Monday
   Tuesday
   Wednesday
   Thursday
   Friday
K:\OZ
   Monday
   Tuesday
   Wednesday
   Thursday
   Friday
K:\UCOM
   Monday
   Tuesday
   Wednesday
   Thursday
   Friday
K:\W1
   Monday
   Tuesday
   Wednesday
   Thursday
   Friday

Now I have another script that moves the files into the specific directories prior to being checked off.  The easy part is for all the directories except one the other directory is static so a normal script can be made to do this and I have one that does it no problems.

The only real problem is the W1 directory, on a yearly and monthly cycle the other directory changes to look like this - N:\Accounts\RETAIL\2005-2006\2006-03, so at the start of the new month we either need to create 2006-04 if it does not exist or just move the files if someone has already created them.

The last thing I need this to do is an option to call another script to move files around, but again all these directories are static and I just need to call 1 of 3 scripts to do the work.

If anyone can help me out that would great.

Tim
 
 
Post #: 1
 
 RE: Creating an HTA to Move Files - 3/1/2006 1:01:32 AM   
  Country73


Posts: 735
Score: 10
Status: offline
Can you elaborate a little as to how you want your HTA to handle this?

Is the HTA supposed to give the individual a way to select specific files, then choose the directory to move them to?

(in reply to Navarre)
 
 
Post #: 2
 
 RE: Creating an HTA to Move Files - 3/1/2006 8:19:59 AM   
  Navarre

 

Posts: 90
Score: 0
Joined: 10/19/2005
Status: offline
These are the parent directories where another process uploads them to everyday so that they do not get mixed up.

What I need to do then is move the files from these directories, usually 1 days worth at a time to another drive either J:\Comms\Oz or J:\Comms\Nz.  The eventual goal is make a simple way of movign these files around so that somebody else can take over a daily communications role of uploading these files into our finical system.

(in reply to Country73)
 
 
Post #: 3
 
 RE: Creating an HTA to Move Files - 3/1/2006 9:52:47 AM   
  Country73


Posts: 735
Score: 10
Status: offline
I'm sorry, I still don't understand what you want the HTA to do.

If it's simply moving files from one location to another, why not use a basic VBScript to do this?
What's the reason behind creating an HTA to do this?

A basic VBScript can look at the files to be moved, and depending on the criteria you set up in the script, move it to a designated area.

Is there something else to what you want to do?

After thinking about this a little more; You should be able to create an HTA to look in those designated areas where the files reside, and create an output representing each file along with a "checkbox" next to. You could then use something like a button (for each location) to determine which directory to move the checked file(s) to.

Is that more of what you are wanting?



< Message edited by Country73 -- 3/1/2006 9:57:48 AM >

(in reply to Navarre)
 
 
Post #: 4
 
 RE: Creating an HTA to Move Files - 3/1/2006 10:04:47 AM   
  Navarre

 

Posts: 90
Score: 0
Joined: 10/19/2005
Status: offline
Thanks for the help, I am trying to make a simple interface for someone that is not computer literate to achive a day to day function, so in that we can write instructions along the line of click this button and so on.

(in reply to Country73)
 
 
Post #: 5
 
 RE: Creating an HTA to Move Files - 3/3/2006 12:31:47 AM   
  Country73


Posts: 735
Score: 10
Status: offline
So, something similar to what I mentioned?

What exactly do you need help with?

(in reply to Navarre)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Creating an HTA to Move Files Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts