Jump to content

Recommended Posts

Posted
On 1/29/2020 at 8:46 PM, Exit said:

In order to simplify this procedure, I wrote the Au3toCmd script. Here a *.Cmd file is generated from a *.Au3 file. The necessary files Autoit3.exe and *.A3x are added to the "*.Cmd" file as "alternate data streams".

Just google for "alternate data streams". 

App: Au3toCmd              UDF: _SingleScript()                             

Posted

After running an exe file in this script and made it portabel.zip and you move it to another computer and unzip the zip file and run the file File.cmd.ADS.Run-me-first.cmd when it has unpacked the contents automatically creates a desktop shortcut when it is done? and even better if the created shortcut has the icon from the original file. Is this possible in any way.

Posted

 

On 7/12/2020 at 10:58 PM, Borje said:

After running an exe file in this script and made it portabel.zip and you move it to another computer and unzip the zip file and run the file File.cmd.ADS.Run-me-first.cmd when it has unpacked the contents automatically creates a desktop shortcut when it is done? and even better if the created shortcut has the icon from the original file. Is this possible in any way.

The shortcut with the icon is now default. 
If you don't like the shortcuts, just delete them.

New version is in the first post. :thumbsup:

@Borje Just send me a virtual cup of coffee or click the like/thanks at the rigth side. 😀

App: Au3toCmd              UDF: _SingleScript()                             

Posted

Hi exit ! I have test your latest version and see you have done much work in the code but when i test it not create any lnk to my desktop

from the zipped file but in command window it says it is created please see in the picture what can this problem be?

test.jpg

Posted
On 7/7/2020 at 4:33 PM, Exit said:

Please save a copy of Test.au3 on the desktop and try it from there.
I suspect an authority problem with the directory 'undetect'.

 

On 7/7/2020 at 4:47 PM, Exit said:

It is usually a bad idea to use the filesystem outside of your own user directory.
In your case, Powershell was installed correctly, but had no authorization to write to "undetect".
The error message is therefore misleading.
Let's see what I can do there.

@Borje

Seems to be the same problem as in the qouted posts.

It is usually a bad idea to use the filesystem outside of your own user directory. 

The creation of the shortcut needs authorisation, which is not given in your environment.

Just try again using a directory inside your user directory.

App: Au3toCmd              UDF: _SingleScript()                             

Posted

I have test from my desktop but it is same problem no link from the zip file. But when ai run and select file it creates a icon but not from zipped file.

Posted

I have tested little more with differents folder and all tests is the same not create any icon from the zipped files to my desktop.

Posted (edited)

@Borje  Here is a special debugging version in the spoiler. Just show me the resulting window.   Obsolete code deleted.
 

 

Edited by Exit
Obsolete code deleted.

App: Au3toCmd              UDF: _SingleScript()                             

Posted

Unfortunately, Swedish is not my mother tongue.

"det gär inte att skapa genvägen"

Google has translated the following for me:

"it does not like to create the shortcut"

I interpret that the attempt to save the shortcut in VBscript was unsuccessful.
I suspect that VBScipt cannot process the letter 'ö' in Borje.

Just create another user without special characters and try it there.

App: Au3toCmd              UDF: _SingleScript()                             

Posted

I create a another user and then it works perfect the problem is ö so vbs script can not process the letter ö so that is no problem with your script thanks för you take time to find this solution..

Posted

Yes perhaps that is any user that have some soultion of this why  VBScipt cannot process the letter ö and also letter å  and letter ä not works..

Posted

Have done some tests with vbs script and come to the conclusion that probably the problem is not in vbs have attached a vbs script that works on desktop that has å ä ö so there are no problems so probably it is another problem.

test.vbs

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...