How do I make a shortcut run an program in "current directory"
Guest
Posts: n/a
Posts: n/a
|
|
| Baboon |
> Hi -
>
> I have been asked to package something that will easily run a batch file
> to
> be distributed to over a thousand end users potentially. This needs to
> run
> on both XP and Vista. These are personally owned computers so we don't
> manage them.
>
> Without getting into detail, it involves a shortcut that needs to point to
> the batch file in the same directory. From a KB article prior to Vista, I
> understand that leaving the Start In field blank is supposed to make the
> shortcut work on the current directory. In my testing I have found this
> to
> be the case with XP, but not Vista. When I ran the exact same thing on
> Vista, it tried to use the exact path in the Shortcut field and failed.
> From
> what I can see, there is no way to enter just the name of the target
> application with no path in the Target field.
>
> If I use %UserProfile%\Desktop\<FolderName> in the Target field, this
> should
> work, but this will force the user to follow specific instructions to
> unzip
> the files to the Desktop by using the optional Browse button, rather than
> the
> Upzip button. This is probably not acceptible since lots of people would
> fail to follow the directions closely.
>
> Does anyone know of a way I can get this to work in Vista?
>
> Thanks.
| P. Di Stolfo |
> Hello,
>
> I tried as you said and created a batch in a folder, and a shortcut to the
> batch. Then, I deleted the path from the "Start in" field. When I copied the
> two files anywhere, it still started (even after deleting the original
> files).
> Have you tried this option already? Or do you mean something else?
>
> Greetings,
> P. Di Stolfo
> --
> ////////////////////////////
> http://blog.lysorp.com - Small Windows blog in German language
> ///////////////////////////
>
> "Baboon" <baboon@news.postalias> schrieb im Newsbeitrag
> news:A2B0A861-CBFA-4C14-AAC3-F698A19346C2@microsoft.com...> > Hi ->
> >
> > I have been asked to package something that will easily run a batch file
> > to
> > be distributed to over a thousand end users potentially. This needs to
> > run
> > on both XP and Vista. These are personally owned computers so we don't
> > manage them.
> >
> > Without getting into detail, it involves a shortcut that needs to point to
> > the batch file in the same directory. From a KB article prior to Vista, I
> > understand that leaving the Start In field blank is supposed to make the
> > shortcut work on the current directory. In my testing I have found this
> > to
> > be the case with XP, but not Vista. When I ran the exact same thing on
> > Vista, it tried to use the exact path in the Shortcut field and failed.
> > From
> > what I can see, there is no way to enter just the name of the target
> > application with no path in the Target field.
> >
> > If I use %UserProfile%\Desktop\<FolderName> in the Target field, this
> > should
> > work, but this will force the user to follow specific instructions to
> > unzip
> > the files to the Desktop by using the optional Browse button, rather than
> > the
> > Upzip button. This is probably not acceptible since lots of people would
> > fail to follow the directions closely.
> >
> > Does anyone know of a way I can get this to work in Vista?
> >
> > Thanks.
>
| Baboon |
| Alex XIe [MSFT] |
> Hi There,
>
> Thank you for your post.
>
> We are not sure about the exact scenario you're referring to. Please
> describe it more explicitly.
>
> Please let us know the following details.
>
> 1. Which KB article you are referring to? Please give me the ID of this
> article.
>
> 2. When you double click the shortcut, the batch file will be run in the
> directory where the shortcut locates instead of in the directory that is
> specified in the Target line of the shortcut properties. Is this what you
> want to achieve?
>
> Thanks.
>
> Sincerely,
>
> Alex Xie
> Microsoft Online Support Professional
> Microsoft Global Technical Support Center
>
> Get Secure! - www.microsoft.com/security
> ================================================
> When responding to posts, please "Reply to Group"
> via your newsreader so that others may learn and benefit from your issue.
> ================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> --------------------
> | Thread-Topic: How do I make a shortcut run an program in "current
> directory"
> | thread-index: AcgWuxhtxNJVboCCQM635G5+NSEBEg==
> | X-WBNR-Posting-Host: 207.46.192.207
> | From: =?Utf-8?B?QmFib29u?= <baboon@news.postalias>
> | Subject: How do I make a shortcut run an program in "current directory"
> | Date: Wed, 24 Oct 2007 20:57:00 -0700
> | Lines: 25
> | Message-ID: <A2B0A861-CBFA-4C14-AAC3-F698A19346C2@microsoft.com>
> | MIME-Version: 1.0
> | Content-Type: text/plain;
> | charset="Utf-8"
> | Content-Transfer-Encoding: 7bit
> | X-Newsreader: Microsoft CDO for Windows 2000
> | Content-Class: urn:content-classes:message
> | Importance: normal
> | Priority: normal
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2992
> | Newsgroups:
> microsoft.public.windows.vista.administration_acco unts_passwords
> | Path: TK2MSFTNGHUB02.phx.gbl
> | Xref: TK2MSFTNGHUB02.phx.gbl
> microsoft.public.windows.vista.administration_acco unts_passwords:6281
> | NNTP-Posting-Host: tk2msftibfm01.phx.gbl 10.40.244.149
> | X-Tomcat-NG:
> microsoft.public.windows.vista.administration_acco unts_passwords
> |
> | Hi -
> |
> | I have been asked to package something that will easily run a batch file
> to
> | be distributed to over a thousand end users potentially. This needs to
> run
> | on both XP and Vista. These are personally owned computers so we don't
> | manage them.
> |
> | Without getting into detail, it involves a shortcut that needs to point
> to
> | the batch file in the same directory. From a KB article prior to Vista,
> I
> | understand that leaving the Start In field blank is supposed to make the
> | shortcut work on the current directory. In my testing I have found this
> to
> | be the case with XP, but not Vista. When I ran the exact same thing on
> | Vista, it tried to use the exact path in the Shortcut field and failed.
> From
> | what I can see, there is no way to enter just the name of the target
> | application with no path in the Target field.
> |
> | If I use %UserProfile%\Desktop\<FolderName> in the Target field, this
> should
> | work, but this will force the user to follow specific instructions to
> unzip
> | the files to the Desktop by using the optional Browse button, rather than
> the
> | Upzip button. This is probably not acceptible since lots of people would
> | fail to follow the directions closely.
> |
> | Does anyone know of a way I can get this to work in Vista?
> |
> | Thanks.
> |
>
>
| Baboon |
> 1. The article is KB283065. I want to stress that this article is correct
> because it is for Windows XP and my problem only appears to happen in Vista.
> Oddly, the previous poster did not seem to have the same problem as me when
> he recreated my steps.
>
> 2. Yes, you are correctly understanding my objective, which is to force the
> shortcut to ignore the Target field, and run the batch file that is in the
> current directory.
>
> Thanks!
>
> ""Alex XIe [MSFT]"" wrote:
>> > Hi There,
> >
> > Thank you for your post.
> >
> > We are not sure about the exact scenario you're referring to. Please
> > describe it more explicitly.
> >
> > Please let us know the following details.
> >
> > 1. Which KB article you are referring to? Please give me the ID of this
> > article.
> >
> > 2. When you double click the shortcut, the batch file will be run in the
> > directory where the shortcut locates instead of in the directory that is
> > specified in the Target line of the shortcut properties. Is this what you
> > want to achieve?
> >
> > Thanks.
> >
> > Sincerely,
> >
> > Alex Xie
> > Microsoft Online Support Professional
> > Microsoft Global Technical Support Center
> >
> > Get Secure! - www.microsoft.com/security
> > ================================================
> > When responding to posts, please "Reply to Group"
> > via your newsreader so that others may learn and benefit from your issue.
> > ================================================
> > This posting is provided "AS IS" with no warranties, and confers no rights.
> >
> > --------------------
> > | Thread-Topic: How do I make a shortcut run an program in "current
> > directory"
> > | thread-index: AcgWuxhtxNJVboCCQM635G5+NSEBEg==
> > | X-WBNR-Posting-Host: 207.46.192.207
> > | From: =?Utf-8?B?QmFib29u?= <baboon@news.postalias>
> > | Subject: How do I make a shortcut run an program in "current directory"
> > | Date: Wed, 24 Oct 2007 20:57:00 -0700
> > | Lines: 25
> > | Message-ID: <A2B0A861-CBFA-4C14-AAC3-F698A19346C2@microsoft.com>
> > | MIME-Version: 1.0
> > | Content-Type: text/plain;
> > | charset="Utf-8"
> > | Content-Transfer-Encoding: 7bit
> > | X-Newsreader: Microsoft CDO for Windows 2000
> > | Content-Class: urn:content-classes:message
> > | Importance: normal
> > | Priority: normal
> > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2992
> > | Newsgroups:
> > microsoft.public.windows.vista.administration_acco unts_passwords
> > | Path: TK2MSFTNGHUB02.phx.gbl
> > | Xref: TK2MSFTNGHUB02.phx.gbl
> > microsoft.public.windows.vista.administration_acco unts_passwords:6281
> > | NNTP-Posting-Host: tk2msftibfm01.phx.gbl 10.40.244.149
> > | X-Tomcat-NG:
> > microsoft.public.windows.vista.administration_acco unts_passwords
> > |
> > | Hi -
> > |
> > | I have been asked to package something that will easily run a batch file
> > to
> > | be distributed to over a thousand end users potentially. This needs to
> > run
> > | on both XP and Vista. These are personally owned computers so we don't
> > | manage them.
> > |
> > | Without getting into detail, it involves a shortcut that needs to point
> > to
> > | the batch file in the same directory. From a KB article prior to Vista,
> > I
> > | understand that leaving the Start In field blank is supposed to make the
> > | shortcut work on the current directory. In my testing I have found this
> > to
> > | be the case with XP, but not Vista. When I ran the exact same thing on
> > | Vista, it tried to use the exact path in the Shortcut field and failed.
> > From
> > | what I can see, there is no way to enter just the name of the target
> > | application with no path in the Target field.
> > |
> > | If I use %UserProfile%\Desktop\<FolderName> in the Target field, this
> > should
> > | work, but this will force the user to follow specific instructions to
> > unzip
> > | the files to the Desktop by using the optional Browse button, rather than
> > the
> > | Upzip button. This is probably not acceptible since lots of people would
> > | fail to follow the directions closely.
> > |
> > | Does anyone know of a way I can get this to work in Vista?
> > |
> > | Thanks.
> > |
> >
> >
| Baboon |
| Alex Xie [MSFT] |
|
|
LinkBack | Thread Tools | Display Modes |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 3xQ - "New Folder" button?, "- Shortcut" suffix, Preview bug? | Julian | Windows Vista File Management | 7 | 06-26-2007 01:32 PM |
| Removing "Shortcut" word after creating a shortcut? | nLinked | Windows Vista File Management | 9 | 04-08-2007 06:27 PM |
| Is it possible to make a shortcut to the "offer remote ass."? | Rico | Customize Windows XP | 3 | 08-29-2003 03:04 PM |
| "Start" "Program" "Menu" list is empty | Pete | Windows XP Basics | 2 | 07-10-2003 11:42 PM |
| How to make the "search text" feature work with non "txt" file | Sharon F | Windows XP Basics | 0 | 06-30-2003 08:43 PM |
| LinkBack |
LinkBack URL |
About LinkBacks |


Hybrid Mode


Posts: n/a