Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6898059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:14:53+00:00 2026-05-27T07:14:53+00:00

Good afternoon, I would like create a application that can can create folders and

  • 0

Good afternoon,
I would like create a application that can can create folders and short cuts to folders in the file system. The user will click a button and it will put a folder on there desktop that has short cuts to files like //server/folder1/folder2 Can you create a desktop shortcut with code in adobe air? How would you do that? How do you create a folder? I keep thinking this should be easy but i keep missing it.
Thank you for your help sorry for the trouble,
Justin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:14:53+00:00Added an answer on May 27, 2026 at 7:14 am

    If your deployment profile is Extended Desktop, you may be able to use NativeProcess and some simple scripts that you could package with your app. This approach would entail handling the functionality on a per OS basis, which would take some work and extensive testing. However, I wanted to at least share a scenario that I verified does work. Below is a test case that I threw together:

    Test Case: Windows 7

    Even though the Adobe documentation says that it prevents execution of .bat files, apparently it doesn’t prevent one from executing the Windows Scripting Host: wscript.exe. This means you can execute any JScript or VBScript files. And this is what you would use to write a command to create a shortcut in Windows (since Windows doesn’t have a commandline command to create shortcuts otherwise).

    Here’s a simple script to create a shortcut command, which I found on giannistsakiris.com, (converted to JScript):

    // File: mkshortcut.js
    
    var WshShell = new ActiveXObject("WScript.Shell");
    var oShellLink = WshShell.CreateShortcut(WScript.Arguments.Named("shortcut") + ".lnk");
    oShellLink.TargetPath = WScript.Arguments.Named("target");
    oShellLink.WindowStyle = 1;
    oShellLink.Save();
    

    If you package this in your application in a folder named utils, you could write a function to create a shortcut like so:

    public function createShortcut(target:File, shortcut:File):void {
      if (NativeProcess.isSupported) { // Note: this is only true under extendedDesktop profile
        var shortcutInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
    
        // Location of the Windows Scripting Host executable
        shortcutInfo.executable = new File("C:/Windows/System32/wscript.exe");
    
        // Argument 1: script to execute
        shortcutInfo.arguments.push( File.applicationDirectory.resolvePath("utils/mkshortcut.js").nativePath);
    
        // Argument 2: target
        shortcutInfo.arguments.push("/target:" + target.nativePath);
    
        // Argument 3: shortcut
        shortcutInfo.arguments.push("/shortcut:" + shortcut.nativePath);
    
        var mkShortcutProcess = new NativeProcess();
        mkShortcutProcess.start(shortcutInfo);
    
      }
    }
    

    If one wanted to create a shortcut to the Application Storage Directory on the Desktop, the following would suffice:

    var targetLocation:File = File.applicationStorageDirectory;
    var shortcutLocation:File = File.desktopDirectory.resolvePath("Shortcut to My AIR App Storage");
    
    createShortcut(targetLocation, shortcutLocation);
    

    Obviously there’s a lot of work to be done to handle different OS environments, but this is at least a step.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good Afternoon, I've created a user-defined component that has a boolean property. I would
Good afternoon, I have been working on a dll that can use CORBA to
Good afternoon, does anyone know of a library that would allow me to read
Good afternoon, This may sound like a silly question, but it would be really
Good Afternoon, I've written a very basic stored procedure that will be used to
Good afternoon Would just like to know what the easiest way would be of
Good afternoon I would just like to know the easiest way for standard Console
Good Afternoon, A customer has provided me with a spreadsheet file his team uses
Good afternoon, WinUSB is working well on the development computer that I am using
Good Afternoon All, I have written an SSIS 2005 package that contains a conditional

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.