Winstep

Software Technologies


 Winstep Forums


Print view
Board index : Winstep Forums : General Discussion  [ 38 posts ] Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: Change file location?
PostPosted: Sat Mar 31, 2012 2:54 pm 
Offline
User avatar

Joined: Sat Jan 08, 2011 5:57 pm
Posts: 898
Location: Athens, Greece
Actually, since you guys absolutely loathe the idea of having multiple locations for your themes, you can use the very nice functionality provided by NTFS called "Junctions". Basically, it's like a UNIX symlink, only it kinda "replicates" a directory under a different location and a different name, however it appears to everything as being under the junction location and nobody knows the difference. Actually, Microsoft themselves use junctions to "replicate" old WinXP directories, like "Documents and Settings".

So, you can install WinStep, then go to %SYSTEMDRIVE%\Users\Public\Documents\Winstep\ and delete the whole "Themes" directory -- or move it to another location, if you haven't already. Then, create a junction to your preferred location, where you already have your themes, and that's it. You're done!

Example syntax:
Code:
mklink /j C:\Users\Public\Documents\Winstep\Themes F:\MyBackupDir\Winstep_themes


Why spoil our moods for something so trivial? :D

_________________
Live long and prosper...


Back to top
 Profile WWWYIMICQ 
 
 Post subject: Re: Change file location?
PostPosted: Sat Mar 31, 2012 8:02 pm 
Offline
User avatar

Joined: Mon Sep 08, 2008 8:33 pm
Posts: 1212
Location: Portland, Oregon U.S.A.
skagon wrote:
Actually, since you guys absolutely loathe the idea of having multiple locations for your themes, you can use the very nice functionality provided by NTFS called "Junctions". Basically, it's like a UNIX symlink, only it kinda "replicates" a directory under a different location and a different name, however it appears to everything as being under the junction location and nobody knows the difference. Actually, Microsoft themselves use junctions to "replicate" old WinXP directories, like "Documents and Settings".

So, you can install WinStep, then go to %SYSTEMDRIVE%\Users\Public\Documents\Winstep\ and delete the whole "Themes" directory -- or move it to another location, if you haven't already. Then, create a junction to your preferred location, where you already have your themes, and that's it. You're done!

Example syntax:
Code:
mklink /j C:\Users\Public\Documents\Winstep\Themes F:\MyBackupDir\Winstep_themes


Why spoil our moods for something so trivial? :D


thank you skagon i have been looking high and low for this. i could not remember what it was called. i'd seen a couple of articles a couple of years back and it looked promising for those with small drives. if i don't miss my guess this should work for program files, program files x86, users, and program data. anything install after creating the junction should install the files to the linked location instead of c. thanks again.

_________________
AKA THE UNKNOWN PERVERT


Back to top
 Profile  
 
 Post subject: Re: Change file location?
PostPosted: Sun Apr 01, 2012 11:56 am 
Offline
User avatar

Joined: Sat Jan 08, 2011 5:57 pm
Posts: 898
Location: Athens, Greece
Hey, no problem mate! Glad to help you out. :)

Actually, I just moved my own themes away from \users\docs\winstep\themes, since I've got a shitload of drives, each one with its own purpose, and Winstep's themes directory was the only thing I had on the system drive -- which is something I don't like and a practice I strongly discourage. I've even moved the "documents" and "pictures" directories to a different drive, for the same reason. Thankfully, Microsoft allows drag-and-drop of these directories, updating all the links automatically, without the use of junctions.

Anyway, I'm babbling again. I just came in to post a warning:
Deleting a junction WILL DELETE THE TARGET FILES AS WELL !!!
The operating system cannot discriminate between actual directories and junctions, so it will delete the junction and all the files under it, which means all the files in the target directory will go bye-bye as well.
If you want to delete the *junction*, without harming your files, you have to use the command prompt again, and the rd (a.k.a. rmdir) command, like so:
Code:
rd junctionname


Consider yourselves warned!
Cheers!

_________________
Live long and prosper...


Back to top
 Profile WWWYIMICQ 
 
 Post subject: Re: Change file location?
PostPosted: Sun Apr 01, 2012 8:35 pm 
Offline
User avatar

Joined: Mon Sep 08, 2008 8:33 pm
Posts: 1212
Location: Portland, Oregon U.S.A.
skagon i don't think you were babbling on either point in your last post. both pieces of info are helpful. thanks

_________________
AKA THE UNKNOWN PERVERT


Back to top
 Profile  
 
 Post subject: Re: Change file location?
PostPosted: Sun Apr 01, 2012 10:50 pm 
Offline
User avatar

Joined: Sat Jan 08, 2011 5:57 pm
Posts: 898
Location: Athens, Greece
No problem. Again. :D
Anyway, I guess you just proved a point: something one person may consider "general knowledge", might be invaluable information to another.
I never took the time to think about it, but I thought everybody knew about the draganddrop-ability of "Documents" and "Pictures" directories (amongst others). Also junctions. But sometimes I take a lot of things for granted.

Anyway, I just wanted to clarify something; I just realised what I wrote and maybe it will be baffling to people reading my post.

I myself wrote:
I just moved my own themes away from \users\docs\winstep\themes, since I've got a shitload of drives, each one with its own purpose, and Winstep's themes directory was the only thing I had on the system drive

Well, what I meant was that I moved the directories containing the themes I've designed myself, to another location, and created junctions within the \Themes parent directory, because they were the only directories in the system drive that contained personal original (artwork) files.
I didn't mean that my system drive is empty or something. Nor that I've moved *everything* elsewhere. That would be stupid.

What I do strongly encourage (just in case it wasn't clear) is for people to move their own files away from the system drive/partition. First and foremost, you can format the drive/partition and reinstall Windows without ever bothering to move your files away first. Secondly, I've seen and I've suffered catastrophic meltdowns of the operating system, taking the system partition with them to digital oblivion. And in my case, with it, some of my files (including a hard-worked thesis on a 16-bit RISC processor).

Cheers! ;)

_________________
Live long and prosper...


Back to top
 Profile WWWYIMICQ 
 
 Post subject: Re: Change file location?
PostPosted: Mon Apr 02, 2012 12:35 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Thu Feb 26, 2004 8:30 pm
Posts: 12289
skagon wrote:
taking the system partition with them to digital oblivion. And in my case, with it, some of my files (including a hard-worked thesis on a 16-bit RISC processor).


Steve Ballmer, sweat dripping from his forehead (well, pretty much from everywhere actually) once shouted from the top of a stage onto a multitude of Microsoft people: "Developers, developers, developers!"

I shout "Backups, backups, backups!" :wink:

_________________
Jorge Coelho
Winstep Xtreme - Xtreme Power!
http://www.winstep.net - Winstep Software Technologies


Back to top
 Profile WWW 
 
 Post subject: Re: Change file location?
PostPosted: Mon Apr 02, 2012 12:30 pm 
Offline
User avatar

Joined: Sat Jan 08, 2011 5:57 pm
Posts: 898
Location: Athens, Greece
Oh, I heartily concur, mate. I really do. Problem was, the system crash that corrupted the partition happened *as* I was working on said thesis.
At the time, I must have had already been working for at least 10 hours straight and during that time written around 30-40 pages. I remember at the time I had Word running, Altera's Max+Plus, Paintshop Pro and another programme that produced timing signal charts. Possibly also some version of Spice. I guess Windows didn't like the combination.
After that, I even booted DOS and did a hex dump of the defunct partition, trying to at least find *some* files through inspecting the raw data from a hex editor. Yes, I was *that* desperate. But... the drive's fragmentation combined with Word's stupid file format... you can imagine...

_________________
Live long and prosper...


Back to top
 Profile WWWYIMICQ 
 
 Post subject: Re: Change file location?
PostPosted: Mon Apr 30, 2012 3:45 pm 
Offline
User avatar

Joined: Mon Sep 08, 2008 8:33 pm
Posts: 1212
Location: Portland, Oregon U.S.A.
JunctionMaster:
Move A Folder Without Changing Its Original Path
(Hard Link)

An NTFS Junction Point is a feature of the NTFS file system, which allows users to create a Symbolic Link to a directory that then functions as an alias to that location. To read more about what Symbolic Links, Hard Links and Junction Points are and how they work, head on over to this article. In this post, we will be introducing you to an application for Windows called JunctionMaster, a small shell extension that allows you to move and link to a folder with one click from within the right-click menu. That is, move a folder while retaining its original path. Whenever you move a folder using this extension, it creates a hard link to the new location in its original place. This allows the users to access files from their original location after they are, let’s say, moved to another partition to free space on the original one.

As listed on the product page, JunctionMaster

Integrates with shell (explorer)
Uses Shell Move Operation, so it looks and behaves as if you cut and pasted yourself
Is safe and conservative whenever there is any question
Does preemptive scans to ensure everything should be kosher during the move

After installation, the application is integrated with Windows, and a MOVE and then LINK folder to shortcut is created in the right-click context menu of Windows Explorer (only folders). To create junction point of a folder, right-click that folder and select the aforementioned option.

Local Disk (C)_2012-04-26_14-49-01
Image

In the corresponding dialog box, select the original folder that you want to move (will be selected by default), and enter the path of the new folder where you want the folder to be moved to in New backing drive/folder. Once both paths are defined, click Move and Link. Make sure that the selected folder has its Read-Only attribute turned off.

Move folder to different drive and place hard link (junction) ...
Image

The Manage and Find Junctions dialog box allows you to scan the selected drive or folder for pre-existing junctions and manage new ones. You can remove the selected links without disturbing that saved data.

junctionmaster_scan
Image

JunctionMaster works on both 32-bit and 64-bit versions of Windows XP, Windows Vista, Windows 7 and Windows 8.[/size]

http://bitsum.com/junctionmaster.php

_________________
AKA THE UNKNOWN PERVERT


Back to top
 Profile  
 
Post new topic Reply to topic Board index : Winstep Forums : General Discussion  [ 38 posts ] Go to page Previous  1, 2, 3
Display posts from previous:  Sort by  

Who is online

Users browsing this forum: Google [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: