Subscribe to How-To Geek

Welcome to the How-To Geek Forums

We encourage you to register on our forums and post any questions you might have. The How-To Geeks monitor this forum and will respond to your question quickly.

How-To Geek Forums » Geek Stuff

Another Batch file question

(18 posts)
  • Started 10 months ago by Smashpmk712
  • Latest reply from whs
  • Topic Viewed 471 times


Smashpmk712
Smashpmk712
Posts: 313

As you will find I will be writing a lot of batch files. I need to create a batch file to place an icon on the desktop .... Easy. Is there a way to place it in a specific location on the screen?(possibly by pixel?).

Posted 10 months ago #
 
Smashpmk712
Smashpmk712
Posts: 313

whs, lighthouse, taybay, any clue how to do this?

Posted 10 months ago #
 
Lighthouse
Lighthouse
Posts: 5574

why us? why not the Geek, or Scott, or JD, or all our other helpers?

Posted 10 months ago #
 
taybay
taybay
Posts: 483

Haha. Umm I don't know how to do that in a batch file, but figuring it out with Autohotkey could be a possibility. You could incorporate an autohotkey script into your batch file. http://www.autohotkey.com/

Posted 10 months ago #
 
Smashpmk712
Smashpmk712
Posts: 313

I just threw out some names .... anyones help would be much appreciated!

Posted 10 months ago #
 
Lighthouse
Lighthouse
Posts: 5574

Sorry taybay, no offense meant

Posted 10 months ago #
 
Smashpmk712
Smashpmk712
Posts: 313

Thanks taybay.... I will take a look at this option. I think it will take me a while to read up on the program and learn to use it. I will let you know asap.

Posted 10 months ago #
 
whs
whs
Posts: 6322

Sorry Smash, I'm the helper for the easy question. No clue regarding your question here. If you wanted to know how to press the start button, I could help you for sure.

Posted 10 months ago #
 
Smashpmk712
Smashpmk712
Posts: 313

thats the thing in the upper left hand corner right .... oh wait thats an apple.... haha

Posted 10 months ago #
 
Lighthouse
Lighthouse
Posts: 5574

An apple waiting to fall. hence Newton

Posted 10 months ago #
 
Smashpmk712
Smashpmk712
Posts: 313

I would love to use a mac but windows makes me to much money...

Posted 10 months ago #
 
taybay
taybay
Posts: 483

What a weird turn this thread took.

Posted 10 months ago #
 
jd2066
Posts: 3335

I don't think there is any way in the Windows API to say where a shortcut appears.
Why do you want to control that?

Posted 10 months ago #
 
Lighthouse
Lighthouse
Posts: 5574

especially if you you think about macs and windows (English & Dutch jokes)

Posted 10 months ago #
 
Smashpmk712
Smashpmk712
Posts: 313

@ jd2066,
I work for an accounting firm with about 60-70 users. I am one of 2 network admins. I told the other network admin that I had created a batch file to add a shortcut to the desktop for a piece of software that I was going to put in an email and have the users run themselves.(I'm a lazy IT person what can I say ...). After that he challenged me to have it put in a specific spot on the desktop. (I.e. the lower right hand corner). That way in the email we could say that it would appear there. I know that it is a trivial thing but now it’s a thorn in my side because I know there must be a way to do it and its going to be an annoyance until I do it. I will let you guys know if I am ever successful. At this point I don't know if I will be.

Posted 10 months ago #
 
taybay
taybay
Posts: 483

Ah. In that case, AHK is probably out of the question. I don't think this is possible. Icon placement is so arbitrary in windows, it sometimes seems as if the icons move around by themselves..

Posted 10 months ago #
 
jd2066
Posts: 3335

You might be able to do it with AutoIt3 as there is an script at http://www.autoitscript.com/fo.....opic=53209 that uses it for saving and restoring desktop icon positions.
Though I think in the end trying to make a script that does what you want maybe more work then it's worth.

Posted 10 months ago #
 
whs
whs
Posts: 6322

Smash, check this out. maybe it helps.
http://www.download32.com/desk.....30361.html

Posted 10 months ago #
 

RSS feed for this topic

Reply

You must log in to post.

Sponsored Links
Getting Started
About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
Cmd.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2008 HowToGeek.com. All Rights Reserved.