Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploading a file to a host puts file on the C: drive but doesn't put file in specified path on Windows #349

Open
terrancedjones opened this issue May 19, 2023 · 4 comments
Labels
needs triage Needs to be reviewed

Comments

@terrancedjones
Copy link

I am attempting to put a file on windows host.
First I upload a file to the the Cloud
then I use the cd command to cd to path I want to put the file
then I use the put command to put the file on the host
The file is uploaded to the host but it puts in on the c drive no the specified directory
When i do the same action on a Mac system it puts the file in the specified directory without a problem.

@ffalor ffalor added the needs triage Needs to be reviewed label May 19, 2023
@ffalor
Copy link
Collaborator

ffalor commented May 19, 2023

Hey @terrancedjones is this something you are doing with RTR? Could you share what version of the sdk you are using and any relevant code, with sensitive information redacted?

@terrancedjones
Copy link
Author

Hello @ffalor, My apologies for not providing more details initially.
i'm using version Version: v0.2.33
Step 1: i use the RTRCreatePutFiles to put the file on Crowdstrike
Step 2: I use the RTRExecuteAdminCommand to cd to the directory ( cd C:Directory Path)
Basecommad = cd
CommandString = cd C:\PATH
Which completes successfully
Step 3: I use the RTRExecuteAdminCommand to put to the directory (put
BaseCommad = put
CommandString = put Sample.txt
This completes successfully as well. But it just put the file on c versus the path which was specified

I know this is still generic I'm waiting to here back on what of the code i'm able to provide.

@ffalor
Copy link
Collaborator

ffalor commented May 19, 2023

Thank you! I think this is enough information for me to start troubleshooting.

Since your code worked for mac, have you tried this with another sdk or in the console to see if this problem exists there too?

@terrancedjones
Copy link
Author

I updated the latest sdk and got the same issue. I did that previously and I got the same results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Needs to be reviewed
Projects
None yet
Development

No branches or pull requests

2 participants