?
Solved

WinRar SFX  paths with variables

Posted on 2004-09-02
4
Medium Priority
?
3,696 Views
Last Modified: 2012-05-05
I want the SFX RAR to extact files to to a subdirectory on the desktop so I set "path to extract" to


%HOMEDRIVE%\%HOMEPATH%\desktop\_stuff

I want to show the user the newly extracted files after completion so I set "run after extraction" to

%HOMEDRIVE%\%HOMEPATH%\desktop\_stuff


--

The files are extracted to the directory on the user's desktop as expected, but the self extracting rar gives this error when launching explorer to the above path:

http://img75.exs.cx/img75/4918/winrarerrorsfx.png


text:  Windows cannot find 'C:\\Documents'.  Make sure you type the name correctly, and then try again.  To search for a file, click the Start button, and then click Search.

Why the double-backslash in the second case only??

Ideas on how to make this work?  without explicitly stating the path since it needs to work for multiple different users?


thanks
0
Comment
Question by:paradoxloss
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Author Comment

by:paradoxloss
ID: 11961429


 update:  I changed both paths to

%HOMEDRIVE%%HOMEPATH%\desktop\_stuff

(notice no backslash between the double %%)


While WinRAR SFX continues to extact the files to the subdirectory on any given user desktop, the run after extraction gives almost the same error -- this time not two backslashes, but only one.


Windows cannot find 'C:\Documents'.  Make sure....

0
 

Author Comment

by:paradoxloss
ID: 11961534
And the answer is:

Set the second path to

"%HOMEDRIVE%"%HOMEPATH%\desktop\_stuff



I'll leave this open in case there's a better way ;)

0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 12170791
PAQed, with points refunded (140)

CetusMOD
Community Support Moderator
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your app took Google’s lash recently, here are the 5 most likely reasons.
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
This video will demonstrate how to find the puppet warp tool from the edit menu and where to put the points to edit.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question