Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7152 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello!

I'm having problems with the cmd commands once again. I'm able to rename exported files and move them to a folder with currentdate name. What I want to do now is compress the folder, it is a lot easier to attach a zipped folder to an e-mail than each exported file.....

This is my code for compressing the folder but it ai'nt working, has anyone of all you geniuses on this site a good solution?

"cmd /c compress "" &

Substitute (

Substitute (

Left (

Get ( FilePath ) ;

Position (

Get ( FilePath ) ;

"/" ; 1 ;

PatternCount (

Get ( FilePath ) ;

"/"

) ) ) ;

"file:/" ; "" ) ; "/" ; "" )

& "export" & "" & Get(CurrentDate) & """ &

" /C"

This topic is 7152 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.