×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

UGPC & 7zip in batch as alternative for ugzip

UGPC & 7zip in batch as alternative for ugzip

UGPC & 7zip in batch as alternative for ugzip

(OP)
Hi all.

While upgrading to windows7 64bit, I had some trouble getting the UGzip tool to work. So I decided to try and write a batch file that would do a similar job.
As it turns out it was easier as planned,
it uses the ugpc tool in combination with 7zip ( opensource alt. to winzip). UGPC's output luckily is exactly the input that 7zip needs.

here's the batch file code:


@ECHO OFF

"C:\Program Files\UGS\NX 7.5\UGII\ugpc.exe" %1 > %1.txt
"C:\Program Files (x86)\7-Zip\7z" a -tzip -mx7 %1.zip @%1.txt
del /F %1.txt

Next step is to add a registry key:HKEY_CLASSES_ROOT/shell/zipassy/
and input  "C:\ugpc_zip\ugpc_zip.bat" %1 as data

This adds an action called zipassy when you rightclick a file.

doing this automaticly creates a zip file with the selected file and all components.

Obviously you will need to substitute the correct paths according to your setup.

Hope it can be of help to someone.



 

RE: UGPC & 7zip in batch as alternative for ugzip

(OP)
correction:  HKEY_CLASSES_ROOT/*/shell/zipassy/  

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources