minnie mouse Posted September 29, 2006 Share Posted September 29, 2006 (edited) Hi all, could some one please give me some help. i have the following line in my code FileCreateShortcut ('%windir%\explorer.exe /n,/root,' & EnvGet("HOMESHARE"), $profile & "\Local Settings\Offline Cache\My Network Area.lnk") it creates a shortcut with a target of "%windir%\explorer.exe /n,/root,\\nhs-sr-002\user$" it dosnt work cos of the quotes (") at the being an the end, how can I remove them so it sets the target to %windir%\explorer.exe /n,/root,\\nhs-sr-002\adamw$ Thanks Miss Mouse Edited September 29, 2006 by minnie mouse Link to comment Share on other sites More sharing options...
jinxter Posted September 29, 2006 Share Posted September 29, 2006 it works for me, when I had that directory created... do check to see if it exist exactly as it stands, I got no error message if it didn't exist. > there are 10 types of people in the world, those who understand binary and those who don't. Link to comment Share on other sites More sharing options...
minnie mouse Posted September 29, 2006 Author Share Posted September 29, 2006 it works for me, when I had that directory created... do check to see if it exist exactly as it stands, I got no error message if it didn't exist.just tried againwhen i check the shortcut tharget its in quotes...... when i remove them it works... Link to comment Share on other sites More sharing options...
jinxter Posted September 29, 2006 Share Posted September 29, 2006 (edited) works with both " and ' for me... but if it works without quotes, use that way edit: Ah.... I see what you mean, I missread the question (stoopid) it's the target that is faulty... I'll see if I can see what the problem is. Edited September 29, 2006 by jinxter > there are 10 types of people in the world, those who understand binary and those who don't. Link to comment Share on other sites More sharing options...
minnie mouse Posted September 29, 2006 Author Share Posted September 29, 2006 (edited) works with both " and ' for me... but if it works without quotes, use that way but autoit is adding the quotes to the target...... which stops the shortcut workinghow do i stop it? Edited September 29, 2006 by minnie mouse Link to comment Share on other sites More sharing options...
jinxter Posted September 29, 2006 Share Posted September 29, 2006 This one works... add the ,/n,/root as arguments instead... FileCreateShortcut (@WindowsDir & "\explorer.exe ", $profile & "\Local Settings\Offline Cache\My Network Area.lnk",@WindowsDir,"/n,/root," & EnvGet("HOMESHARE") ) > there are 10 types of people in the world, those who understand binary and those who don't. Link to comment Share on other sites More sharing options...
minnie mouse Posted September 29, 2006 Author Share Posted September 29, 2006 This one works... add the ,/n,/root as arguments instead... FileCreateShortcut (@WindowsDir & "\explorer.exe ", $profile & "\Local Settings\Offline Cache\My Network Area.lnk",@WindowsDir,"/n,/root," & EnvGet("HOMESHARE") ) Thats great it works!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now