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 1038855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:01:39+00:00 2026-05-16T15:01:39+00:00

I created a Windows 7 Gadget and I need to create a place on

  • 0

I created a Windows 7 Gadget and I need to create a place on each user’s computer to store the Settings.ini file (Created from my SettingsManager.js file). The application packaging team at my company recommends I use

%LOCALAPPDATA%\Microsoft\Windows Sidebar\

and then add

Gadgets\iMon.Gadget\

subfolders. This is so each user’s settings are stored in a unique location and won’t be changed by any other applications or gadgets.

Do I need to use something along the lines of

var fso = new ActiveXObject("Scripting.FileSystemObject");
var folder = fso.CreateFolder("path");

Any help on how to do this would be appreciated.

Update: I found how to get the %localappdata% path, but I still need to create the new folder. Here’s what I’ve tried without success:

var wshshell = new ActiveXObject("wscript.shell");
var localAppData = wshshell.ExpandEnvironmentStrings("%localappdata%");
var filePath = localAppData + "\\Microsoft\\Windows Sidebar\\Gadgets\\iMon.Gadget";
var fso = new ActiveXObject("Scripting.FileSystemObject");
var filePath = localAppData + "\\Microsoft\\Windows Sidebar\\Gadgets\\iMon.Gadget";
  • 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-16T15:01:39+00:00Added an answer on May 16, 2026 at 3:01 pm

    I’m not sure I understand what you’re trying to do here. is iMon.Gadget the name of your gadget? If so, this folder is automatically created for you upon installation of the gadget when the .gadget archive is executed. All the gadget’s files and folders will be unpacked to

    %LOCALAPPDATA\Microsoft\Windows Sidebar\Gadgets\iMon.gadget\

    In your code, you can then proceed to manipulate files within this folder (and it’s subfolders). To get the full path, you use

    var gadgetPath = System.Gadget.path;
    

    For example:

    var oFile,
        gadgetPath = System.Gadget.path,
        oFSO = ActiveXObject("Scripting.FileSystemObject");
    
    oFile = oFSO.CreateTextFile(gadgetPath + "\\test.txt", true);
    oFile.WriteLine("Test.");
    oFile.Close();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a Windows Service in VB.net for building xML from a database.
I created a windows batch file with the following content: plink -batch PuttySaveSessionName -pw
I created a Windows service to upload files from client to a shared folder
I created a windows service in VS:File->New Project->C#->Windows Services But I don't know how
I've created a Windows Gadget using JQuery to call the oAuth-Service of Yammer: https://www.yammer.com/oauth/request_token
I have created windows service. I need to run that automatically after 2 minutes.
I created one windows serives It gets the name of the service from web
I have created a windows 7 gadget which works properly when i copy it
I'm developing a very simple gadget for Windows 7. I have created an index.html
I've been working on creating a Windows Desktop Gadget. I can create HTML elements

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.