0

I want to keep my icons structure when I move my system, when I click on browse it gives me a really long path.

When I change systems or reformat, I need to do this all over again...

Some scripts I've written used this type of path:

{curdir}/portable-apps.ico

Is there a way to insert a variable in the browse path for Windows?

Path is this:

 I:\++++++++Data_2016-nov2017\portable_apps\ico\portable-apps.ico

I would like the path to be something like this:

 {curdir}\portable-apps.ico

So the portable-apps.ico gets used from root directory?

enter image description here

1 Answers1

0

The icon dialogue can use environment variables, as shown in the default dialogue which references %SystemRoot%.

You could save the path as a reference to an environment variable, and then make sure that variable is set during log on using a script.

enter image description here

Lifehacker gave the following description for setting your own variable names:

  1. Right-click the "My Computer" icon (Computer in Vista)
  2. Choose "Properties" from the context menu
  3. Click the "Advanced" tab ("Advanced system settings" link in Vista)
  4. Click the "Environment Variables" button
  5. Under the "User variables" section, click new
  6. Enter the hotstring in the "Variable name" field and the path in the "Variable value" field
  7. Click OK Once you've created the environment variable, enclosing it in percent signs (e.g., %music%) in the Run box, Explorer location, or lots of other similar locations will jump straight to the full path. This is a really handy tip, especially if you're interested in navigating your file system with keywords.
Sir Adelaide
  • 4,977
  • 2
  • 16
  • 36