Verknüpfungspfad ändern - Seite 2

Seite 2 von 2 - Forum: Applications, Apps & Drivers auf overclockers.at

URL: https://www.overclockers.at/applications/verknuepfungspfad_aendern_153135/page_2 - zur Vollversion wechseln!


T3XT4 schrieb am 29.03.2006 um 00:52

So, auf die Gache noch hingemurkst..
thx an mephisto und that

Code:
// JScript.

folder = "C:\\favliste"

fso = new ActiveXObject("Scripting.FileSystemObject"); 

fold = fso.getFolder(folder);

Shell = new ActiveXObject("WScript.Shell");

for (var enumerator = new Enumerator(fold.files) ; !enumerator.atEnd(); enumerator.moveNext())
{ 
   file1  = enumerator.item();     

link = Shell.CreateShortcut(file1) ;


y = link.TargetPath;

x = y.substring(1,y.length);

z = "Y" + x; 

link.TargetPath =  z;

link.Save();

fold = "";

}

Keine Garantien :)

(btw: das for each (vbs) und for in (js) ned dasselbe is is auch gemein :D)


salsa schrieb am 29.03.2006 um 00:57

Danke T3XT4, great work, genau so hab ich mir das gedacht :)

Aber that, wie ich das selbst mit Hilfe eines "kleinen scripts" hinbekommen hätte leuchtet mir nicht ein - trotzdem, danke für die Mithilfe :)


Gstar schrieb am 29.03.2006 um 02:09

Interessiert keine Sau....




overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025