|
|
Unfortunately I answered the question before going to S&A.
|
|
|
|
|
Can you help us with the error message that you are confronting so that we can assist you further?
|
|
|
|
|
I have an app that is in a folder, which is in the environment path.
When i run the app, at the prompt like so, it runs fine.
> MyApp
If I add a commandline parameter to it, I get nothing:
> MyApp /msg:"test"
I know the command line parameter is valid, because it works when I run it in visual studio.
I've also tried (none of these worked either):
> MyApp /msg:"test"
> MyApp /msg:'test'
> MyApp '/msg:"test"'
> MyApp "/msg:""test"""
I have next to zero knowledge regarding powershell. What am I doing wrong?
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I'm just guessing, but did you try a hyphen instead of the slash?
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
app doesn't recognize hyphens (I wrote the app, so that's how I know).
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
pretty sure you have to use hyphens in powershell at command line also I think it isn't the colon but just a space soo
poershlapp.ps1 -msg1 par1value
To err is human to really elephant it up you need a computer
|
|
|
|
|
I have just run a simple test and my app works fine:
PS C:\Users\rjmac\Documents\VSCode\C++> test /msg:"test"
argc = 2
argv[1] = /msg:test
C++ test result: 0
PS C:\Users\rjmac\Documents\VSCode\C++>
|
|
|
|
|
I have to do this to get it to work:
Start-Process PSMsgBox.exe -ArgumentList "/msg:""This is a test message"""
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Interesting. I wonder if perhaps that colon after msg was the problem? Even though it worked in my test; which is very basic of course.
[edit]
There is a section in about_Special_Characters - PowerShell | Microsoft Docs[^] headed "Stop-parsing token", which may be of interest.
[/edit]
modified 17-Jan-21 6:25am.
|
|
|
|
|
Richard MacCutchan wrote: I wonder if perhaps that colon after msg was the problem? Even though it worked in my test; which is very basic of course.
The colon isn't a special char. I even tried combinations of single/double quotes...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Oh, the wonders of Windows (or PS).
|
|
|
|
|
(Not sure if this is the correct forum. I'll give it a try.)
In my Visual Studio solution I have several projects. (ProjectA, ProjectB and so on...)
My solution also contains a .gitignore-file.
I would like to add all projects´ /bin and /obj folders to the .gitignore file.
These folders, and files in them, always updates when I even the smallest changes.
So when I want commit something in Team Explorer, I always see this folders and the files. I don't care about them.
In other solutions, I have been able to add folders and files to the .gitignore file in the Team Explorer of my choosing. In those cases I have added the /bin and /obj folders.
For this particular solution, this is not possible.
I wonder what I'm doing wrong.
Any suggestions?
|
|
|
|
|
Are they not excluded by default?
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
[Aa][Rr][Mm]/
[Aa][Rr][Mm]64/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I can find the same list of items in my .gitignore.
But still the /bin and /obj folders and files are shown in the changes dialog.
Here are the items I don't want.
Solution folder
/.vs folder, sub folders and files.
Project A
/bin/Debug folder and files.
/obj folder, sub folders and files.
Project B
/bin/Debug folder and files.
/obj folder and files.
Project C
/bin/Debug folder and files.
|
|
|
|
|
Did you add or update the .gitignore file after checking your project in for the first time?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Unfortunately I did not.
Several commits after the first commit I added the .gitgnore-file.
I'm looking for the "Ignore this local item" selection.
Please see the answer in this link from StackOverFlow.
This option only seem to be available before doing the first commit.
I don't understand why.
Is there a solution for me?
|
|
|
|
|
Once you've committed a file to Git, it will be tracked even if you update the .gitignore file to exclude it.
You'll need to delete your local copy of the file, commit your changes, and then restore your local copy.
In this case, try cleaning the solution, committing the changes, and then rebuilding.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thank you for that tip!
I deleted the folders and files.
Commited the deleted stuff.
Now VS will not try to include the /bin and /obj folders and files in every commit.
Thank you!
|
|
|
|
|
Hello guys,
I've been given a chance to work in a company as a web developer, but they want me to use Oracle Apex which I've never heard before.
What do you know of the plataform? Is it worth learning it?
|
|
|
|
|
I don't know much about it; however, since it is a low-code platform you will likely not write much code so it depends on what you want to do in your job.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
Well you have a simple choice: accept the job and learn it, or find a different job.
|
|
|
|
|
Hope you're doing well. I need help with my project, can you help me? please let me know. Thanks
Vikram
|
|
|
|
|
Pick an appropriate forum or go to the quick answers menu and click "Ask a question".
Describe the problem you're having with proper detail.
|
|
|
|
|
cp (articles) search result[^]
Sorting these to obtain off-title items can be done by altering initial settings in the left panel. If you choose an article and go to it's page sometimes you'll get more off-title matches listed in the right panel.
[EDIT]
Sorry, I mispoke, there's no right-panel "Related" stuff in article. That feature is found in Question & Answer. You can always read an article, try it's code to see if it suits your purpose, or better yet recieve an error during compile, and post a general question about that error there. Better yet just ask questions about the code you download through the article right there at the bottom of the article page.
[/EDIT]
|
|
|
|