I am using ssis to zip and rename a folder with about 7 files in it. when it zips the folder and renames it the old folder is inside of the zip folder i would just like to have the zip folder with the new name and the files inside of that.
i have tried
a -tzip "F:\Extracts\QCExtracts\QCreports_2014_07.zip" "F:\Extracts\QCExtracts\QCreports\"
a -tzip "F:\Extracts\QCExtracts\QCreports_2014_07.zip" "F:\Extracts\QCExtracts\QCreports"
for both i get the result of QCreports_2014_07.zip\ QCreports\all files
i need it to be QCreports_2014_07.zip\ all files
Assuming you use "Execute Process Task" for the 7z.exe call:
You have to set F:\Extracts\QCExtracts\QCreports\as WorkingDirectory in the Process section of your Task. This should omit the subdirectory in the zip file.
Related
need help compiling the build folder
Inside of the build folder is a bunch of json files and .tfx.
Expecting a single file to come out that i can ./ the file
I use Beaker on Windows and start it up with gitbash with the following command:
./beaker.command.bat
If I want to read a .csv or excel file I have to place it in the same directory as the beaker.command.bat.
How can I just the .csv files directly from their original location where the .bkr notebook script and the files are located?
I figured it out, just use the full directory path instead pointing to the file.
I have File System Task in my package which copy a folder from source location to destination. At destination, if that folder doesn't exist, it's newly created.
I want SSIS to pick latest folder (using time-stamp) from directory as source and create new folder with same name at destination via File System Task.
Example: I have D:\Folder 1\SourceFolder copy to G:\Folder 1\SourceFolder.
Can somebody help me to figure out.
After publish my ASP.NET5 project I get "output" folder consists of "approot", "logs", "wwwroot" folders. Inside approot/src folder there are folders with dll's of my projects, dependent projects etc. All these dlls I need to copy to my wwwroot folder. The issue is, how to get the information about the current path to my output folder during the publish. I need that information to construct glump task to copy my files to proper destination.
I have a scenario where there are two source file ABC.txt and DEF.txt. i want to make sure that if any files are present in that folder with naming convention as ABC.txt, it has to be moved to the different folder prior to loading to the SQL server, and the other (incorrect file) should be moved to a error log folder (separate folder). Can someone advice what task would i use to do that. i tried it using File system task but it just allow you to move or copy files from one location to other prior to loading the file.can someone advice how to i copy that incorrect file to the different folder ( error log folder)?
try to use a bat file.
move ABC.txt /directory
and after
xcopy "source" "destination_err\" /exclude:%temp%\ABC.txt /y
or you can use robocopy command in bat file, this is the command with parameters http://itsvista.com/2007/03/robocopy/