• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 351
  • Last Modified:

[ActiveX Script] Copy file to a certain directory

At this moment (after exporting data to a csv file) i copy the file to a certain directory with datetag. Using Createfolder en CopyFile

so .. dir 20090101 contains a file .. 20090102 contains a file etc etc..

how can i change this to a follow-up number .. so no longer a datetag but every day a dir is created with a higher number then the day before

Thanks in advanced

0
Amien90
Asked:
Amien90
  • 4
  • 2
1 Solution
 
tigin44Commented:
you can define a variable to represent your directory and filename string and in an expression you can define the current value of the variable.
an example implementation of this is described in the following link

http://www.mssqltips.com/tip.asp?tip=1395
0
 
Amien90Author Commented:
and this is also possible with DTS/ Server 2000?
0
 
tigin44Commented:
at sql server 2000 dts packages it is defined by activex scripts.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
Amien90Author Commented:
easy .. thanks

0
 
Amien90Author Commented:
is it not possible to use this variable directly in the export? so without using the activex script.. but directly in the filename / Transformation data task
0
 
Amien90Author Commented:
for some reason .. DTSGlobalVariables("counter").value = DTSGlobalVariables("counter").value + 1 is adding + 1 sometimes .. and sometimes not
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now