Parameter Help

David Dixon II's picture
Submitted by David Dixon II on May 9, 2008 - 9:23pm

how do you know what parameter an app uses to store files in the application data folder? EX: APPNAME.exe -PARAMETER

No i dont have the apps source cause its freeware :P


( categories: )

David, Welcome to

David,
Welcome to PortableApps.com :-)

It would help to know what the app is so someone could still try to investigate.

Why are you so sure it uses any parameter at all?
Maybe it doesn't use parameters.

Again, knowing what the app is might help,
and again, Welcome to PortableApps.

Tim

"The Wheels of John grind slowly, yet they grind exceedingly small" ;)

.

haha im dbdii407 ;)

If Practice Makes Perfect, And No Ones Perfect, Why Practice?
If You Think I'm Weird..... Good :P
Providing Remote Assistance For All! :) (On My Site)
The developer known as dbdii407

Ohhh

Sorry :-(

I didn't know it was you :-P
When did you change?

I usually browse from home with images turned off so I did not see your Avatar/Icon and in a New Topic/Initial Post your signature doesn't show :-(

Well, Welcome to your new identity

Are you David the second (JR) and your son is the third "III",
or are you the second David Dixon in the group :-p

Tim

"The Wheels of John grind slowly, yet they grind exceedingly small" ;)

.

I changed about a week ago...
I asked John in the IRC Chat :P

My Dad Is Sr. Give Ya Any Clues ;) :-?

If Practice Makes Perfect, And No Ones Perfect, Why Practice?
If You Think I'm Weird..... Good :P
Providing Remote Assistance For All! :) (On My Site)
The developer known as dbdii407

Ohhhh

I thought a "II" was a "JR" until there was a "III" then, Senior became "I", "Jr" became "II" and Juniors' kid became "III".

I'm so confused,
you need to have a kid soon so it all makes sense :-P

Tim

"The Wheels of John grind slowly, yet they grind exceedingly small" ;)

.

Well i'm suppose to be jr. but my parents skipped that part

Sr --> Jr --> II

If Practice Makes Perfect, And No Ones Perfect, Why Practice?
If You Think I'm Weird..... Good :P
Providing Remote Assistance For All! :) (On My Site)
The developer known as dbdii407

Ohhhhh

Now if only we could get you to trim you sig file :-P

Tim

"The Wheels of John grind slowly, yet they grind exceedingly small" ;)

usually you

usually you just experiment with things,
such as if you write a NSIS script somewhere in there before the app launches you would put....

System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("APPDATA", "$SETTINGSDIRECTORY").r0'

and you would just change the "APPDATA" to something such as USERPROFILE or ALLUSERPROFILE it is usually harder to know the exact environment variable with freeware apps and easier for open source, because you can just go through the source.

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)

.

U and USERPROFILE just made my day! it worked! your awsome!

If Practice Makes Perfect, And No Ones Perfect, Why Practice?
If You Think I'm Weird..... Good :P
Providing Remote Assistance For All! :) (On My Site)
The developer known as dbdii407

Yes, but that

messes up other apps.

π(pi)=3.14159265358979323...
The other night, I had a nightmare. I dreamt, that.... My dad, no I can't say it, HE INSTALLED VISTA ONTO MY PC!!!!!!!!!!!
Somebody give me a portable video editor... Please!

.

No this doesn't. all my portableapps and apps still save their data in there correct folders.

If Practice Makes Perfect, And No Ones Perfect, Why Practice?
If You Think I'm Weird..... Good :P
Providing Remote Assistance For All! :) (On My Site)
The developer known as dbdii407

no, it doesnt, it only sets

no, it doesnt, it only sets the environment variable for the current app.

The developer formerly known as ZGitRDun8705

How?

It's setting an env var, that would globally change it.
I don't get how it works :?

π(pi)=3.14159265358979323...
The other night, I had a nightmare. I dreamt, that.... My dad, no I can't say it, HE INSTALLED VISTA ONTO MY PC!!!!!!!!!!!
Somebody give me a portable video editor... Please!

It tells the current

It tells the current application to use the new value as the environment variable, it does not actually modify the variable

The developer formerly known as ZGitRDun8705

Just so...

Just so you know, if you go to start-->run and type %ALLUSERPROFILE% it takes you to the alluserprofile and if your app stores data in there, then you would substitute this one for "APPDATA"

An eye for an eye makes the whole world blind.
Mahatma Gandhi,
Indian political and spiritual leader (1869 - 1948)