file tag

99 questions


1 answers
411 views
0
What does .readlines()[:5] mean when File I/O and what does sourcefile/targetfile mean

First, the code is as followsSourceFile = open(example_dir/lipsum/lipsum.txt, r)TargetFile = open(copied.txt, w)for line in SourceFile.readlines()[:5]: TargetFile.write(line)TargetFile.close()SourceF...

1 years ago

1 answers
304 views
0
Want to know how to make multiple directory dependencies

Question detailsRegarding the makefile below, I don't know why the following error occurs.If it's one directory, it's successful, but if there are two, what should I do?I just need to write two variab...

1 years ago

1 answers
525 views
0
I want to know what to do with make [source directory cannot contain spaces or colons.]

The presentation console screen is a Linux kernel downloaded from the following site:I'd like to build this into an ISO file and run it in vmware player, but I don't know how to work with the followin...

1 years ago

1 answers
499 views
0
When you start powerhell from the batch, it opens for a moment and closes immediately.

1.Periodic execution of bat file@powershell-NoProfile-ExecutionPolicy unlimited-Command Start-Process PowerShell.exe-Verb runas C:\********\****.ps12.ps1 starts and performs actions with administrator...


3 answers
415 views
0
I want to do the same thing as "SET PATH" for Windows batch files from Python.

Batch files include:I would like to run test.exe from Python without using this batch file.run.batUse the command-line arguments when executing the exe file.SETLOCALSET PATH = %PATH%;..\..\samples\ext...

1 years ago

1 answers
291 views
0
It's about reading Python file names, but I don't think I can even read them

file_name = input (Enter the file name:)word_name = input (Enter an existing word :)new_word_name = input (Enter a new word: )try : with open(file_name, r) as f: lines = f.readline()exceptionExceptio...

2 years ago

1 answers
496 views
0
C Language Text File [Closed]

Do you want to improve this question?Edit your post to clarify the issue you are trying to resolve by adding details.Closed to 9 months ago9 months agoPlease tell me how to display a specific line fro...

2 years ago

3 answers
100 views
0
I want to use robocopy in the bat file and copy a file with a name that contains spaces.

As the title suggests, I would like to copy the data using robocopy in the bat file.As I want to skip errors and leave logs, I am thinking of using robocopy to copy files.What is currently being doneC...

2 years ago

1 answers
164 views
0
I want to use robocopy in the bat file and print the data copy result to the LOG file.

I am thinking of using robocopy in the bat file and extracting a file name containing one character and copying it to another folder.I also want to copy the file name with blank space, so I wrote the ...

2 years ago

2 answers
174 views
0
I would like to make a program to log and compare on bat every day.

A list of files in a storage is retrieved daily as the file name [yyyymmdd.log] log and Compare today's and yesterday's logs, and create a program that extracts differences that are in the log yesterd...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.